aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-02-12 09:34:09 -0600
committerGitHub <noreply@github.com>2022-02-12 09:34:09 -0600
commita899da7655b1e7097b0c06f75512eb3e65541bae (patch)
tree4ce620598cfd6c6cf2964574eb82043e0ef4f406
parenta3328e8db42a63c85db0004645253984e3e71e16 (diff)
parentccee85f6ad9cff9275d19e8db78e60431c442857 (diff)
downloadslskd-a899da7655b1e7097b0c06f75512eb3e65541bae.tar.gz
Merge pull request #354 from slskd/logo
Update login logo
-rw-r--r--src/web/src/components/LoginForm.js12
-rw-r--r--src/web/src/components/Shared/Logo.js17
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