mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
login mechanism
This commit is contained in:
parent
6168841f78
commit
9528e7f699
27 changed files with 528 additions and 96 deletions
|
@ -2,12 +2,11 @@ import * as React from 'react';
|
|||
import { connect } from 'react-redux';
|
||||
import { bindActionCreators } from 'redux';
|
||||
import { hot } from 'react-hot-loader';
|
||||
import { SomeComponent } from '$components/SomeComponent';
|
||||
import { ConnectedRouter } from "connected-react-router";
|
||||
import { history } from "$redux/store";
|
||||
import { NavLink, Switch, Route } from 'react-router-dom';
|
||||
import { MainLayout } from "$containers/MainLayout";
|
||||
import { FlowLayout } from "$containers/FlowLayout";
|
||||
import { LoginLayout } from "$containers/LoginLayout";
|
||||
|
||||
interface IAppProps {}
|
||||
interface IAppState {}
|
||||
|
@ -24,8 +23,8 @@ class Component extends React.Component<IAppProps, IAppState> {
|
|||
component={FlowLayout}
|
||||
/>
|
||||
<Route
|
||||
path="/somepath"
|
||||
component={SomeComponent}
|
||||
path="/login"
|
||||
component={LoginLayout}
|
||||
/>
|
||||
</Switch>
|
||||
</div>
|
||||
|
|
13
src/containers/LoginLayout/index.tsx
Normal file
13
src/containers/LoginLayout/index.tsx
Normal file
|
@ -0,0 +1,13 @@
|
|||
import * as React from 'react';
|
||||
import { LoginForm } from '$components/login/LoginForm';
|
||||
import { MainLayout } from "$containers/MainLayout";
|
||||
|
||||
const style = require('./style.scss');
|
||||
|
||||
export const LoginLayout: React.FunctionComponent<{}> = () => (
|
||||
<MainLayout>
|
||||
<div className="default_container">
|
||||
<LoginForm />
|
||||
</div>
|
||||
</MainLayout>
|
||||
);
|
15
src/containers/LoginLayout/style.scss
Normal file
15
src/containers/LoginLayout/style.scss
Normal file
|
@ -0,0 +1,15 @@
|
|||
.container {
|
||||
|
||||
}
|
||||
|
||||
.form {
|
||||
width: $content_width;
|
||||
min-height: $cell * 2;
|
||||
box-sizing: border-box;
|
||||
border-radius: $panel_radius;
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
justify-content: stretch;
|
||||
|
||||
//@include outer_shadow();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue