mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-08-02 17:11:48 +00:00
Initial version
This commit is contained in:
79
src/intro.tsx
Normal file
79
src/intro.tsx
Normal file
@@ -0,0 +1,79 @@
|
||||
import * as queryString from 'query-string';
|
||||
import * as React from 'react';
|
||||
import {Card} from 'semantic-ui-react';
|
||||
import {Link} from 'react-router-dom';
|
||||
|
||||
/** Link that loads a GEDCOM file from URL. */
|
||||
function GedcomLink(props: {url: string; text: string}) {
|
||||
return (
|
||||
<Link
|
||||
to={{pathname: '/view', search: queryString.stringify({url: props.url})}}
|
||||
>
|
||||
{props.text}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
||||
/** The intro page. */
|
||||
export function Intro() {
|
||||
return (
|
||||
<Card className="intro">
|
||||
<Card.Content header="Topola Genealogy Viewer" />
|
||||
<Card.Content>
|
||||
<p>
|
||||
Topola Genealogy is a genealogy tree viewer that lets you browse the
|
||||
structure of the family.
|
||||
</p>
|
||||
<p>
|
||||
Use the LOAD FROM URL or LOAD FROM FILE buttons above to load a GEDCOM
|
||||
file. You can export a GEDCOM file from most of the existing genealogy
|
||||
programs and web sites.
|
||||
</p>
|
||||
<p>Here are some examples from the web that you can view:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<GedcomLink
|
||||
url="http://genpol.com/module-Downloads-prep_hand_out-lid-32.html"
|
||||
text="Karol Wojtyła"
|
||||
/>{' '}
|
||||
(from{' '}
|
||||
<a href="http://genpol.com/module-Downloads-display-lid-32.html">
|
||||
GENPOL
|
||||
</a>
|
||||
)
|
||||
</li>
|
||||
<li>
|
||||
<GedcomLink
|
||||
url="https://webtreeprint.com/tp_downloader.php?path=famous_gedcoms/shakespeare.ged"
|
||||
text="Shakespeare"
|
||||
/>{' '}
|
||||
(from{' '}
|
||||
<a href="https://webtreeprint.com/tp_famous_gedcoms.php">
|
||||
webtreeprint.com
|
||||
</a>
|
||||
)
|
||||
</li>
|
||||
<li>
|
||||
<GedcomLink
|
||||
url="http://genealogyoflife.com/tng/gedcom/HarryPotter.ged"
|
||||
text="Harry Potter"
|
||||
/>{' '}
|
||||
(from{' '}
|
||||
<a href="http://famousfamilytrees.blogspot.com/">
|
||||
Famous Family Trees
|
||||
</a>
|
||||
)
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
<b>Privacy</b>: When using the "load from file" option, this site does
|
||||
not send your data anywhere and files loaded from disk do not leave
|
||||
your computer. When using "load from URL", data is passed through the{' '}
|
||||
<a href="https://cors-anywhere.herokuapp.com/">cors-anywhere</a>{' '}
|
||||
service to deal with an issue with cross-site file loading in the
|
||||
browser.
|
||||
</p>
|
||||
</Card.Content>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user