mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
login form alignment
This commit is contained in:
parent
8071a1644c
commit
fae7effeb3
3 changed files with 36 additions and 5 deletions
|
@ -1,13 +1,16 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { LoginForm } from '$components/login/LoginForm';
|
import { LoginForm } from '$components/login/LoginForm';
|
||||||
import { MainLayout } from "$containers/MainLayout";
|
import { Header } from "$components/main/Header";
|
||||||
|
|
||||||
const style = require('./style.scss');
|
const style = require('./style.scss');
|
||||||
|
|
||||||
export const LoginLayout: React.FunctionComponent<{}> = () => (
|
export const LoginLayout: React.FunctionComponent<{}> = () => (
|
||||||
<MainLayout>
|
<div className={style.wrapper}>
|
||||||
<div className="default_container">
|
<div className={style.header}>
|
||||||
|
<Header />
|
||||||
|
</div>
|
||||||
|
<div className={style.container}>
|
||||||
<LoginForm />
|
<LoginForm />
|
||||||
</div>
|
</div>
|
||||||
</MainLayout>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,5 +1,20 @@
|
||||||
.container {
|
.wrapper {
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: stretch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
justify-self: stretch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form {
|
.form {
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
@import "~raleway-cyrillic/raleway.css";
|
@import "~raleway-cyrillic/raleway.css";
|
||||||
|
|
||||||
|
html {
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: $main_bg_color;
|
background: $main_bg_color;
|
||||||
|
min-height: 100vh;
|
||||||
//background: $main_bg_color url("../sprites/dots.svg");
|
//background: $main_bg_color url("../sprites/dots.svg");
|
||||||
background: url("http://vault48.org/pixmaps/texture.jpg");
|
background: url("http://vault48.org/pixmaps/texture.jpg");
|
||||||
//background: #111111;
|
//background: #111111;
|
||||||
|
@ -25,6 +30,14 @@ body {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:global(#app) {
|
||||||
|
min-height: 100vh;
|
||||||
|
|
||||||
|
& > div {
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
:global(.gap) {
|
:global(.gap) {
|
||||||
height: $gap;
|
height: $gap;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue