mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-04-13 10:06:15 +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%);
|
||||||
|
}
|
||||||
|
|||||||
@@ -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,6 +23,8 @@ function formatBuildDate(dateString: string) {
|
|||||||
/** The intro page. */
|
/** The intro page. */
|
||||||
export function Intro() {
|
export function Intro() {
|
||||||
return (
|
return (
|
||||||
|
<div id="content">
|
||||||
|
<div className="backgroundImage" />
|
||||||
<Card className="intro">
|
<Card className="intro">
|
||||||
<Card.Content>
|
<Card.Content>
|
||||||
<Card.Header>
|
<Card.Header>
|
||||||
@@ -32,6 +35,12 @@ export function Intro() {
|
|||||||
</Card.Header>
|
</Card.Header>
|
||||||
</Card.Content>
|
</Card.Content>
|
||||||
<Card.Content>
|
<Card.Content>
|
||||||
|
<Grid>
|
||||||
|
<Grid.Row>
|
||||||
|
<Grid.Column width={5}>
|
||||||
|
<Image src={logo} alt="Topola logo" />
|
||||||
|
</Grid.Column>
|
||||||
|
<Grid.Column width={11}>
|
||||||
<p>
|
<p>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id="intro.description"
|
id="intro.description"
|
||||||
@@ -96,9 +105,12 @@ export function Intro() {
|
|||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
<b>
|
<b>
|
||||||
<FormattedMessage id="intro.privacy" defaultMessage="Privacy" />
|
<FormattedMessage
|
||||||
|
id="intro.privacy"
|
||||||
|
defaultMessage="Privacy"
|
||||||
|
/>
|
||||||
</b>
|
</b>
|
||||||
:
|
{': '}
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id="intro.privacy_note"
|
id="intro.privacy_note"
|
||||||
defaultMessage={
|
defaultMessage={
|
||||||
@@ -110,7 +122,9 @@ export function Intro() {
|
|||||||
}
|
}
|
||||||
values={{
|
values={{
|
||||||
link: (
|
link: (
|
||||||
<a href="https://cors-anywhere.herokuapp.com/">cors-anywhere</a>
|
<a href="https://cors-anywhere.herokuapp.com/">
|
||||||
|
cors-anywhere
|
||||||
|
</a>
|
||||||
),
|
),
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
@@ -126,7 +140,11 @@ export function Intro() {
|
|||||||
</a>
|
</a>
|
||||||
)
|
)
|
||||||
</p>
|
</p>
|
||||||
|
</Grid.Column>{' '}
|
||||||
|
</Grid.Row>{' '}
|
||||||
|
</Grid>
|
||||||
</Card.Content>
|
</Card.Content>
|
||||||
</Card>
|
</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