Skip to content

Commit

Permalink
ft(register):user registration
Browse files Browse the repository at this point in the history
- create registration-template
[Delivers #166840878]
  • Loading branch information
olorunwalawrence committed Aug 5, 2019
1 parent d2cd98b commit 55fc410
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
testPathIgnorePatterns: ['/node_modules/'],
transformIgnorePatterns: ['<rootDir>/node_modules/'],
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|css)$':
'<rootDir>/__mocks__/fileMock.js',
'\\.(css|less)$': '<rootDir>/__mocks__/styleMock.js'
},
Expand Down
Binary file modified src/.DS_Store
Binary file not shown.
Binary file added src/assets/images/auth-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions src/components/user.register/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.form-card{
background: grey;
height:100vh;
}
.bg-color{
background: #3DBFB7;
}
.height{
height: 80%;
}

.auth-bg {
background-image: url('../../assets/images/auth-bg.png');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
/* height:632px; */
}
14 changes: 14 additions & 0 deletions src/components/user.register/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react';
import './index.css';

export default function UserRegidtration() {
return (
<div className="flex justify-center items-center bg-gray-200 h-screen">
<div className="md:flex max-w-lg w-7/12 bg-color height items-center auth-bg hidden md:block rounded-l-lg ">
<p className="px-5 text-center text-white text-3xl">
Welcome, Signup to share, recomend and bookmark
</p>
</div>
</div>
);
}
2 changes: 2 additions & 0 deletions src/routes/AppRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ import React from 'react';
import { Route, Switch } from 'react-router-dom';
import LandingPage from '../pages/loginPage';
import Homepage from '../pages/hompage';
import User from '../components/user.register/index';

const Routes = () => (
<Switch>
<Route path="/" exact component={Homepage} />
<Route path="/login" exact component={LandingPage} />
<Route path="/user" exact component={User} />
</Switch>
);

Expand Down
5 changes: 5 additions & 0 deletions tests/__snapshots__/App.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,10 @@ exports[`Application test should work fine on Routes 1`] = `
exact={true}
path="/login"
/>
<Route
component={[Function]}
exact={true}
path="/user"
/>
</Switch>
`;

0 comments on commit 55fc410

Please sign in to comment.