doc: add login class along with login container and registerButton and its style
This commit is contained in:
1 parent
d6cf1b986b
commit
cf0f429a94
2 files changed
+50
-1
No files matched your search
@@ -0,0 +1,16 @@
|
|||||||
|
.login {
|
||||||
|
background-color: white;
|
||||||
|
height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login__logo {
|
||||||
|
margin-top: 20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
object-fit: contain;
|
||||||
|
width: 100px;
|
||||||
|
margin-right: auto;
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
+34
-1
@@ -1,8 +1,41 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
import "./Login.css";
|
import "./Login.css";
|
||||||
|
|
||||||
function Login() {
|
function Login() {
|
||||||
return <section className="login">Login</section>;
|
return (
|
||||||
|
<section className="login">
|
||||||
|
<Link to="/">
|
||||||
|
<img
|
||||||
|
className="login__logo"
|
||||||
|
src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a9/Amazon_logo.svg/1024px-Amazon_logo.svg.png"
|
||||||
|
alt="amazon login logo"
|
||||||
|
/>
|
||||||
|
</Link>
|
||||||
|
|
||||||
|
<article className="login__container">
|
||||||
|
<h1>Sign in</h1>
|
||||||
|
<form>
|
||||||
|
<h5>Email</h5>
|
||||||
|
<input type="email" />
|
||||||
|
<h5>Password</h5>
|
||||||
|
<input type="password" />
|
||||||
|
|
||||||
|
<button>Sign In</button>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
By signing-in you agree to the Amazon's Conditions of Use & Sale.
|
||||||
|
Please see our Privacy Notice, our Cookies Notice and our
|
||||||
|
Interest-Based Ads Notice.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<button className="login__registerButton">
|
||||||
|
Create your Amazon Account
|
||||||
|
</button>
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Login;
|
export default Login;
|
||||||
Reference in new issue
Block a user