diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-02-12 09:34:09 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-12 09:34:09 -0600 |
| commit | a899da7655b1e7097b0c06f75512eb3e65541bae (patch) | |
| tree | 4ce620598cfd6c6cf2964574eb82043e0ef4f406 /src/web | |
| parent | a3328e8db42a63c85db0004645253984e3e71e16 (diff) | |
| parent | ccee85f6ad9cff9275d19e8db78e60431c442857 (diff) | |
| download | slskd-a899da7655b1e7097b0c06f75512eb3e65541bae.tar.gz | |
Merge pull request #354 from slskd/logo
Update login logo
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/src/components/LoginForm.js | 12 | ||||
| -rw-r--r-- | src/web/src/components/Shared/Logo.js | 17 |
2 files changed, 27 insertions, 2 deletions
diff --git a/src/web/src/components/LoginForm.js b/src/web/src/components/LoginForm.js index 82af0195..6704c498 100644 --- a/src/web/src/components/LoginForm.js +++ b/src/web/src/components/LoginForm.js @@ -1,6 +1,8 @@ import React, { Component } from 'react' import { Button, Form, Grid, Header, Icon, Segment, Checkbox, Message } from 'semantic-ui-react' +import Logos from './Shared/Logo'; + const initialState = { username: '', password: '', @@ -31,8 +33,14 @@ class LoginForm extends Component { <> <Grid textAlign='center' style={{ height: '100vh' }} verticalAlign='middle'> <Grid.Column style={{ maxWidth: 372 }}> - <Header as='h2' textAlign='center'> - slsk<strong>d</strong> + <Header as='h2' textAlign='center' style={{ + whiteSpace: 'pre', + fontFamily: 'monospace', + lineHeight: 1.1, + fontSize: 'inherit', + letterSpacing: -1 + }}> + {Logos[Math.floor(Math.random() * Logos.length)]} </Header> <Form size='large'> <Segment loading={loading}> diff --git a/src/web/src/components/Shared/Logo.js b/src/web/src/components/Shared/Logo.js new file mode 100644 index 00000000..c366925a --- /dev/null +++ b/src/web/src/components/Shared/Logo.js @@ -0,0 +1,17 @@ +const Logo = ` + ▄▄▄▄ ▄▄▄▄ ▄▄▄▄ +▄▄▄▄▄▄█ █▄▄▄▄▄█ █▄▄▄▄▄█ █ +█__ --█ █__ --█ ◄█ - █ +█▄▄▄▄▄█▄▄█▄▄▄▄▄█▄▄█▄▄█▄▄▄▄▄█ +`; + +const Logo2 = ` + ▄▄▄▄ ▄▄▄▄ ▄▄▄▄ +▄▄▄▄▄▄▄ █ █ ▄▄▄▄▄▄▄ █ █▄▄▄ ▄▄▄█ █ +█__ --█ █ █ █__ --█ █ ◄█ █ - █ +█▄▄▄▄▄█ █▄▄█ █▄▄▄▄▄█ █▄▄█▄▄█ █▄▄▄▄▄█ +`; + +const Logos = [Logo, Logo2]; + +export default Logos;
\ No newline at end of file |
