mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-04-12 09:36:16 +00:00
Added logo and background image to the intro screen
This commit is contained in:
@@ -48,10 +48,22 @@ div.ui.errorPopup.message {
|
|||||||
}
|
}
|
||||||
|
|
||||||
div.ui.card.intro {
|
div.ui.card.intro {
|
||||||
width: 600px;
|
width: 770px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.version {
|
.version {
|
||||||
color: #888;
|
color: #888;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.backgroundImage {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-image: url(topola.jpg);
|
||||||
|
background-size: cover;
|
||||||
|
background-position: 0% 20%;
|
||||||
|
position: fixed;
|
||||||
|
z-index: -100;
|
||||||
|
filter: blur(8px) opacity(30%);
|
||||||
|
-webkit-filter: blur(8px) opacity(30%);
|
||||||
|
}
|
||||||
|
|||||||
232
src/intro.tsx
232
src/intro.tsx
@@ -1,6 +1,7 @@
|
|||||||
import * as queryString from 'query-string';
|
import * as queryString from 'query-string';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import {Card} from 'semantic-ui-react';
|
import logo from './topola.jpg';
|
||||||
|
import {Card, Grid, Image} from 'semantic-ui-react';
|
||||||
import {FormattedMessage} from 'react-intl';
|
import {FormattedMessage} from 'react-intl';
|
||||||
import {Link} from 'react-router-dom';
|
import {Link} from 'react-router-dom';
|
||||||
|
|
||||||
@@ -22,111 +23,128 @@ function formatBuildDate(dateString: string) {
|
|||||||
/** The intro page. */
|
/** The intro page. */
|
||||||
export function Intro() {
|
export function Intro() {
|
||||||
return (
|
return (
|
||||||
<Card className="intro">
|
<div id="content">
|
||||||
<Card.Content>
|
<div className="backgroundImage" />
|
||||||
<Card.Header>
|
<Card className="intro">
|
||||||
<FormattedMessage
|
<Card.Content>
|
||||||
id="intro.title"
|
<Card.Header>
|
||||||
defaultMessage="Topola Genealogy Viewer"
|
<FormattedMessage
|
||||||
/>
|
id="intro.title"
|
||||||
</Card.Header>
|
defaultMessage="Topola Genealogy Viewer"
|
||||||
</Card.Content>
|
/>
|
||||||
<Card.Content>
|
</Card.Header>
|
||||||
<p>
|
</Card.Content>
|
||||||
<FormattedMessage
|
<Card.Content>
|
||||||
id="intro.description"
|
<Grid>
|
||||||
defaultMessage={
|
<Grid.Row>
|
||||||
'Topola Genealogy is a genealogy tree viewer that lets you' +
|
<Grid.Column width={5}>
|
||||||
' browse the structure of the family.'
|
<Image src={logo} alt="Topola logo" />
|
||||||
}
|
</Grid.Column>
|
||||||
/>
|
<Grid.Column width={11}>
|
||||||
</p>
|
<p>
|
||||||
<p>
|
<FormattedMessage
|
||||||
<FormattedMessage
|
id="intro.description"
|
||||||
id="intro.instructions"
|
defaultMessage={
|
||||||
defaultMessage={
|
'Topola Genealogy is a genealogy tree viewer that lets you' +
|
||||||
'Use the LOAD FROM URL or LOAD FROM FILE buttons above to load' +
|
' browse the structure of the family.'
|
||||||
' a GEDCOM file. You can export a GEDCOM file from most of the' +
|
}
|
||||||
' existing genealogy programs and web sites.'
|
/>
|
||||||
}
|
</p>
|
||||||
/>
|
<p>
|
||||||
</p>
|
<FormattedMessage
|
||||||
<p>
|
id="intro.instructions"
|
||||||
<FormattedMessage
|
defaultMessage={
|
||||||
id="intro.examples"
|
'Use the LOAD FROM URL or LOAD FROM FILE buttons above to load' +
|
||||||
defaultMessage={
|
' a GEDCOM file. You can export a GEDCOM file from most of the' +
|
||||||
'Here are some examples from the web that you can view:'
|
' existing genealogy programs and web sites.'
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<p>
|
||||||
<li>
|
<FormattedMessage
|
||||||
<GedcomLink
|
id="intro.examples"
|
||||||
url="http://genpol.com/module-Downloads-prep_hand_out-lid-32.html"
|
defaultMessage={
|
||||||
text="Karol Wojtyła"
|
'Here are some examples from the web that you can view:'
|
||||||
/>{' '}
|
}
|
||||||
(<FormattedMessage id="intro.from" defaultMessage="from" />{' '}
|
/>
|
||||||
<a href="http://genpol.com/module-Downloads-display-lid-32.html">
|
</p>
|
||||||
GENPOL
|
<ul>
|
||||||
</a>
|
<li>
|
||||||
)
|
<GedcomLink
|
||||||
</li>
|
url="http://genpol.com/module-Downloads-prep_hand_out-lid-32.html"
|
||||||
<li>
|
text="Karol Wojtyła"
|
||||||
<GedcomLink
|
/>{' '}
|
||||||
url="https://webtreeprint.com/tp_downloader.php?path=famous_gedcoms/shakespeare.ged"
|
(<FormattedMessage id="intro.from" defaultMessage="from" />{' '}
|
||||||
text="Shakespeare"
|
<a href="http://genpol.com/module-Downloads-display-lid-32.html">
|
||||||
/>{' '}
|
GENPOL
|
||||||
(<FormattedMessage id="intro.from" defaultMessage="from" />{' '}
|
</a>
|
||||||
<a href="https://webtreeprint.com/tp_famous_gedcoms.php">
|
)
|
||||||
webtreeprint.com
|
</li>
|
||||||
</a>
|
<li>
|
||||||
)
|
<GedcomLink
|
||||||
</li>
|
url="https://webtreeprint.com/tp_downloader.php?path=famous_gedcoms/shakespeare.ged"
|
||||||
<li>
|
text="Shakespeare"
|
||||||
<GedcomLink
|
/>{' '}
|
||||||
url="http://genealogyoflife.com/tng/gedcom/HarryPotter.ged"
|
(<FormattedMessage id="intro.from" defaultMessage="from" />{' '}
|
||||||
text="Harry Potter"
|
<a href="https://webtreeprint.com/tp_famous_gedcoms.php">
|
||||||
/>{' '}
|
webtreeprint.com
|
||||||
(<FormattedMessage id="intro.from" defaultMessage="from" />{' '}
|
</a>
|
||||||
<a href="http://famousfamilytrees.blogspot.com/">
|
)
|
||||||
Famous Family Trees
|
</li>
|
||||||
</a>
|
<li>
|
||||||
)
|
<GedcomLink
|
||||||
</li>
|
url="http://genealogyoflife.com/tng/gedcom/HarryPotter.ged"
|
||||||
</ul>
|
text="Harry Potter"
|
||||||
<p>
|
/>{' '}
|
||||||
<b>
|
(<FormattedMessage id="intro.from" defaultMessage="from" />{' '}
|
||||||
<FormattedMessage id="intro.privacy" defaultMessage="Privacy" />
|
<a href="http://famousfamilytrees.blogspot.com/">
|
||||||
</b>
|
Famous Family Trees
|
||||||
:
|
</a>
|
||||||
<FormattedMessage
|
)
|
||||||
id="intro.privacy_note"
|
</li>
|
||||||
defaultMessage={
|
</ul>
|
||||||
'When using the "load from file" option, this site does not' +
|
<p>
|
||||||
' send your data anywhere and files loaded from disk do not' +
|
<b>
|
||||||
' leave your computer. When using "load from URL", data is' +
|
<FormattedMessage
|
||||||
' passed through the {link} service to deal with an issue with' +
|
id="intro.privacy"
|
||||||
' cross-site file loading in the browser (CORS).'
|
defaultMessage="Privacy"
|
||||||
}
|
/>
|
||||||
values={{
|
</b>
|
||||||
link: (
|
{': '}
|
||||||
<a href="https://cors-anywhere.herokuapp.com/">cors-anywhere</a>
|
<FormattedMessage
|
||||||
),
|
id="intro.privacy_note"
|
||||||
}}
|
defaultMessage={
|
||||||
/>
|
'When using the "load from file" option, this site does not' +
|
||||||
</p>
|
' send your data anywhere and files loaded from disk do not' +
|
||||||
<p className="ui right aligned version">
|
' leave your computer. When using "load from URL", data is' +
|
||||||
version: {formatBuildDate(process.env.REACT_APP_GIT_TIME!)} (
|
' passed through the {link} service to deal with an issue with' +
|
||||||
<a
|
' cross-site file loading in the browser (CORS).'
|
||||||
href={`https://github.com/PeWu/topola-viewer/commit/${
|
}
|
||||||
process.env.REACT_APP_GIT_SHA
|
values={{
|
||||||
}`}
|
link: (
|
||||||
>
|
<a href="https://cors-anywhere.herokuapp.com/">
|
||||||
{process.env.REACT_APP_GIT_SHA}
|
cors-anywhere
|
||||||
</a>
|
</a>
|
||||||
)
|
),
|
||||||
</p>
|
}}
|
||||||
</Card.Content>
|
/>
|
||||||
</Card>
|
</p>
|
||||||
|
<p className="ui right aligned version">
|
||||||
|
version: {formatBuildDate(process.env.REACT_APP_GIT_TIME!)} (
|
||||||
|
<a
|
||||||
|
href={`https://github.com/PeWu/topola-viewer/commit/${
|
||||||
|
process.env.REACT_APP_GIT_SHA
|
||||||
|
}`}
|
||||||
|
>
|
||||||
|
{process.env.REACT_APP_GIT_SHA}
|
||||||
|
</a>
|
||||||
|
)
|
||||||
|
</p>
|
||||||
|
</Grid.Column>{' '}
|
||||||
|
</Grid.Row>{' '}
|
||||||
|
</Grid>
|
||||||
|
</Card.Content>
|
||||||
|
</Card>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
src/topola.jpg
Normal file
BIN
src/topola.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
Reference in New Issue
Block a user