Skip to content

Commit

Permalink
Finished login page
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumittripathi07 committed May 8, 2022
1 parent ecaa5b0 commit c6b2969
Show file tree
Hide file tree
Showing 7 changed files with 417 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import Product from './components/Product';
import Footer from './components/Footer';
import Cart from './components/Cart';
import Contact from './components/Contact';
import Regester from './components/Regester';
import Login from './components/Login';

function App() {
return (
Expand All @@ -17,6 +19,8 @@ function App() {
<Route exact path='/' element={<Home/>} />
<Route exact path='/products' element={<Products/>}/>
<Route exact path='/contact' element={<Contact/>}/>
<Route exact path='/login' element={<Login/>}/>
<Route exact path='/regester' element={<Regester/>}/>
<Route exact path='/cart' element={<Cart/>}/>
<Route exact path='/products/:id' element={<Product/>}/>

Expand Down
184 changes: 184 additions & 0 deletions src/Style/login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
.form-container{
background-color: #fff;
font-family: 'Poppins', sans-serif;
font-size: 0;
box-shadow: 0 0 25px -15px rgba(0,0,0,0.3);
}
.form-container .left-content{
background-color: #2E323B;
font-family: 'Oswald', sans-serif;
width: 40%;
padding: 66px 50px;
display: inline-block;
vertical-align: top;
}
.form-container .left-content .title{
color: #FF97A8;
font-size: 20px;
font-weight: 300;
letter-spacing: 2px;
text-transform: uppercase;
margin: 0 0 55px;
}
.form-container .left-content .sub-title{
color: #fff;
font-size: 60px;
font-weight: 300;
text-transform: uppercase;
margin: 0;
}
.form-container .right-content{
text-align: center;
width: 60%;
padding: 30px 50px;
display: inline-block;
}
.form-container .right-content .form-title{
color: #888;
font-family: 'Oswald', sans-serif;
font-size: 40px;
font-weight: 400;
text-align: left;
text-transform: uppercase;
padding: 0 0 2px;
margin: 0 0 30px;
border-bottom: 2px solid #FF97A8;
}
.form-container .right-content .form-horizontal {
color: #999;
font-size: 14px;
text-align: left;
margin: 0 0 15px;
}
.form-container .form-horizontal .form-group{ margin: 0 0 20px; }
.form-container .form-horizontal .form-group:nth-of-type(2){ margin-bottom: 35px; }
.form-container .form-horizontal .form-group label{ font-weight: 500; }
.form-container .form-horizontal .form-control{
color: #888;
background: #f9f9f9;
font-weight: 400;
letter-spacing: 1px;
height: 40px;
padding: 6px 12px;
border-radius: 5px;
border: none;
box-shadow: none;
}
.form-container .form-horizontal .form-control:focus{ box-shadow: 0 0 5px #FF97A8; }
.form-container .form-horizontal .signin{
color: #fff;
background: linear-gradient(to right, #FF638E, #FF97A8);
font-size: 15px;
font-weight: 500;
letter-spacing: 0.5px;
text-transform: capitalize;
width: 100%;
padding: 9px 11px;
margin: 0 0 20px;
border-radius: 50px;
transition: all 0.3s ease 0s;
}
.form-container .form-horizontal .btn:hover,
.form-container .form-horizontal .btn:focus{
box-shadow: 0 0 10px #FF97A8;
outline: none;
}
.form-container .form-horizontal .remember-me{
width: calc(100% - 105px);
display: inline-block;
}
.form-container .form-horizontal .remember-me .check-label{
color: #999;
font-size: 12px;
font-weight: 400;
vertical-align: top;
display: inline-block;
}
.form-container .form-horizontal .remember-me .checkbox{
height: 17px;
width: 17px;
min-height: auto;
margin: 0 1px 0 0;
border: 2px solid #FF97A8;
border-radius: 5px;
cursor: pointer;
display: inline-block;
position: relative;
appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
transition: all 0.3s ease 0s;
}
.form-container .form-horizontal .remember-me .checkbox:before{
content: '';
height: 5px;
width: 10px;
border-bottom: 2px solid #fff;
border-left: 2px solid #fff;
transform: rotate(-45deg);
position: absolute;
left: 2px;
top: 2.5px;
transition: all 0.3s ease;
}
.form-container .form-horizontal .remember-me .checkbox:checked{ background-color: #FF97A8; }
.form-container .form-horizontal .remember-me .checkbox:checked:before{ opacity: 1; }
.form-container .form-horizontal .remember-me .checkbox:not(:checked):before{ opacity: 0; }
.form-container .form-horizontal .remember-me .checkbox:focus{ outline: none; }
.form-container .form-horizontal .forgot{
color: #999;
font-size: 12px;
text-align: right;
width: 100px;
vertical-align: top;
display: inline-block;
transition: all 0.3s ease 0s;
}
.form-container .form-horizontal .forgot:hover{ text-decoration: underline; }
.form-container .right-content .separator{
color: #999;
font-size: 15px;
text-align: center;
margin: 0 0 15px;
display: block;
}
.form-container .right-content .social-links{
text-align: center;
padding: 0;
margin: 0 0 25px;
list-style: none;
}
.form-container .right-content .social-links li{
margin: 0 2px 5px;
display: inline-block;
}
.form-container .right-content .social-links li a{
color: #fff;
background-color: #F16262;
font-size: 12px;
padding: 9px 12px;
border-radius: 5px;
display: block;
transition: all 0.3s ease 0s;
}
.form-container .right-content .social-links li:nth-child(2) a{ background-color: #3B5897; }
.form-container .right-content .social-links li a i{ margin-right: 10px; }
.form-container .right-content .social-links li a:hover{ box-shadow: 0 0 5px rgba(0,0,0,0.5); }
.form-container .right-content .signup-link{
color: #999;
font-size: 13px;
}
.form-container .right-content .signup-link a{
color: #F16262;
transition: all 0.3s ease 0s;
}
.form-container .right-content .signup-link a:hover{ text-decoration: underline; }
@media only screen and (max-width:767px){
.form-container .left-content,
.form-container .right-content{
width: 100%;
padding: 30px;
}
.form-container .left-content .title{ margin: 0 0 20px; }
.form-container .left-content .sub-title{ font-size: 40px; }
}
60 changes: 60 additions & 0 deletions src/Style/regester.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
.background-radial-gradient {
background-color: hsl(218, 41%, 15%);
background-image: radial-gradient(650px circle at 0% 0%,
hsl(218, 41%, 35%) 15%,
hsl(218, 41%, 30%) 35%,
hsl(218, 41%, 20%) 75%,
hsl(218, 41%, 19%) 80%,
transparent 100%),
radial-gradient(1250px circle at 100% 100%,
hsl(218, 41%, 45%) 15%,
hsl(218, 41%, 30%) 35%,
hsl(218, 41%, 20%) 75%,
hsl(218, 41%, 19%) 80%,
transparent 100%);
}

#radius-shape-1 {
height: 220px;
width: 220px;
top: -60px;
left: -130px;
background: radial-gradient(#44006b, #ad1fff);
overflow: hidden;
}

#radius-shape-2 {
border-radius: 38% 62% 63% 37% / 70% 33% 67% 30%;
bottom: -60px;
right: -110px;
width: 300px;
height: 300px;
background: radial-gradient(#44006b, #ad1fff);
overflow: hidden;
}

.bg-glass {
background-color: hsla(0, 0%, 100%, 0.9) !important;
backdrop-filter: saturate(200%) blur(25px);
}


.footer-icons{
margin-top: 25px;
}
.footer-icons a{
display: inline-block;
width: 35px;
height: 35px;
cursor: pointer;
background-color: #33383b;
border-radius: 2px;

font-size: 20px;
color: #ffffff;
text-align: center;
line-height: 35px;

margin-right: 3px;
margin-bottom: 5px;
}
2 changes: 1 addition & 1 deletion src/components/Contact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Contact = () => {
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossOrigin="anonymous" />
<section className="jumbotron text-center" style={{"marginTop": "5rem"}}>
<section className="jumbotron text-center">
<div className="container">
<h1 className="jumbotron-heading">CONTACT US</h1>
</div>
Expand Down
58 changes: 58 additions & 0 deletions src/components/Login.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import React from 'react'
import "../Style/login.css"

const Login = () => {
return (
<>
{/* <link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"/>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossOrigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.2.0/css/material-design-iconic-font.min.css" integrity="sha256-3sPp8BkKUE7QyPSl6VfBByBroQbKxKG7tsusY2mhbVY=" crossorigin="anonymous" /> */}


<div className="form-bg">
<div className="container">
<div className="row">
<div className="col-md-offset-4 col-md-4 col-sm-offset-3 col-sm-6 my-5" style={{"width": "auto"}}>
<div className="form-container">
<div className="left-content">
<h3 className="title">R.N Traders</h3>
<h4 className="sub-title">Login to get latest product updates.</h4>
</div>
<div className="right-content">
<h3 className="form-title">Login</h3>
<form className="form-horizontal">
<div className="form-group">
<label>Username / Email</label>
<input type="email" className="form-control"/>
</div>
<div className="form-group">
<label>Password</label>
<input type="password" className="form-control"/>
</div>
<button className="btn signin">Login</button>
<div className="remember-me">
<input type="checkbox" className="checkbox"/>
<span className="check-label">Remember Me</span>
</div>
<a href="/" className="forgot">Forgot Password</a>
</form>
<span className="separator">OR</span>
<ul className="social-links">
<li><a href="/"><i className="fab fa-google"></i> Login with Google</a></li>
<li><a href="/"><i className="fab fa-facebook-f"></i> Login with Facebook</a></li>
</ul>
<span className="signup-link">Don't have an account? Sign up <a href="/regester">here</a></span>
</div>
</div>
</div>
</div>
</div>
</div>
<div className="open_grepper_editor" title="Edit & Save To Grepper"></div>
</>
)
}

export default Login
2 changes: 1 addition & 1 deletion src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const Navbar = () => {
<NavLink to="/login" className="btn btn-outline-dark">
<i className="fa fa-sign-in me-1">Login</i>
</NavLink>
<NavLink to="register" className="btn btn-outline-dark ms-2">
<NavLink to="/regester" className="btn btn-outline-dark ms-2">
<i className="fa fa-user-plus me-1">Register</i>
</NavLink>
<NavLink to="/cart" className="btn btn-outline-dark ms-2">
Expand Down
Loading

0 comments on commit c6b2969

Please sign in to comment.