fix(login): general cleanup

This commit is contained in:
trashtemp 2021-12-25 20:51:11 +01:00
parent 68e83a4e47
commit b14ea73663
No known key found for this signature in database
GPG key ID: D1F0DB65081B0FC6
2 changed files with 0 additions and 38 deletions

View file

@ -4,7 +4,6 @@
padding: 40px 35px; padding: 40px 35px;
display: flex; display: flex;
user-select: none; user-select: none;
background: url("/src/pages/login/background.jpg"); background: url("/src/pages/login/background.jpg");
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;

View file

@ -2,7 +2,6 @@ import { Twitter, Github, Mastodon } from "@styled-icons/boxicons-logos";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import { Helmet } from "react-helmet"; import { Helmet } from "react-helmet";
import { Route, Switch } from "react-router-dom"; import { Route, Switch } from "react-router-dom";
import { LIBRARY_VERSION } from "revolt.js";
import styles from "./Login.module.scss"; import styles from "./Login.module.scss";
import { Text } from "preact-i18n"; import { Text } from "preact-i18n";
@ -11,10 +10,8 @@ import { useApplicationState } from "../../mobx/State";
import wideSVG from "../../../public/assets/wide.svg"; import wideSVG from "../../../public/assets/wide.svg";
import LocaleSelector from "../../components/common/LocaleSelector"; import LocaleSelector from "../../components/common/LocaleSelector";
import background from "./background.jpg";
import { Titlebar } from "../../components/native/Titlebar"; import { Titlebar } from "../../components/native/Titlebar";
import { APP_VERSION } from "../../version";
import { FormCreate } from "./forms/FormCreate"; import { FormCreate } from "./forms/FormCreate";
import { FormLogin } from "./forms/FormLogin"; import { FormLogin } from "./forms/FormLogin";
import { FormReset, FormSendReset } from "./forms/FormReset"; import { FormReset, FormSendReset } from "./forms/FormReset";
@ -74,7 +71,6 @@ export default observer(() => {
</div> </div>
{/*<div className={styles.loginQR}></div>*/} {/*<div className={styles.loginQR}></div>*/}
{/*</div>*/} {/*</div>*/}
<div className={styles.bottom}> <div className={styles.bottom}>
<div className={styles.links}> <div className={styles.links}>
<div className={styles.socials}> <div className={styles.socials}>
@ -116,7 +112,6 @@ export default observer(() => {
</a> </a>
</div> </div>
</div> </div>
<a <a
className={styles.attribution} className={styles.attribution}
href="https://unsplash.com/@fakurian" href="https://unsplash.com/@fakurian"
@ -125,38 +120,6 @@ export default observer(() => {
unsplash.com unsplash.com
</a> </a>
</div> </div>
{/*<div className={styles.attribution}>
<span>
API: <code>{configuration?.revolt ?? "???"}</code>{" "}
&middot; revolt.js: <code>{LIBRARY_VERSION}</code>{" "}
&middot; App: <code>{APP_VERSION}</code>
</span>
<span>
</span>
</div>
<div className={styles.modal}>
<Switch>
<Route path="/login/create">
<FormCreate />
</Route>
<Route path="/login/resend">
<FormResend />
</Route>
<Route path="/login/verify/:token">
<FormVerify />
</Route>
<Route path="/login/reset/:token">
<FormReset />
</Route>
<Route path="/login/reset">
<FormSendReset />
</Route>
<Route path="/">
<FormLogin />
</Route>
</Switch>
</div>*/}
</div> </div>
</div> </div>
</> </>