Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LOGIN PAGE #45

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions client/src/assets/Line.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions client/src/assets/background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/google.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
81 changes: 81 additions & 0 deletions client/src/login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
.background {
position: absolute;
overflow: hidden;
width: 100%;
height: 100vh;
}
.image {
background-color: black;
width: 150vw;
height: 150vh;
object-fit: cover;
}
.container {
position: absolute;
top: 17%;
display: flex;
flex-direction: column;
align-items: center;
}
.login-text {
font-size: 4.5rem;
font-weight: 700;
line-height: 115px;
letter-spacing: 0.05em;
text-align: left;
color: #40e9f1;
}
.neonText {
text-shadow: 0 0 5px #40e9f1, 0 0 7px #40e8f1aa;
}
.button {
display: flex;
justify-content: center;
color: #ffffff;
height: 50px;
width: 35vw;
min-width: 250px;
max-width: 597px;
border-radius: 15px;
border: 0.5px solid #40e9f1;
font-size: 12px;
font-weight: 400;
line-height: 29px;
align-items: center;
margin-top: 15px;
cursor: pointer;
}
.fill {
background: #0e4f5e;
}
.login {
--notchSize: 10px;
background-color: #40e9f1;
clip-path: polygon(
0% var(--notchSize),
var(--notchSize) 0%,
calc(100% - var(--notchSize)) 0%,
100% var(--notchSize),
100% calc(100% - var(--notchSize)),
calc(100% - var(--notchSize)) 100%,
var(--notchSize) 100%,
0% calc(100% - var(--notchSize))
);
}
.signup {
margin-top: 15px;
display: inline-flex;
font-style: normal;
font-weight: 400;
font-size: 10px;
line-height: 29px;
color: #ffffff;
}

.input {
all: unset;
background-color: #ffffff00;
text-align: center;
width: 80%;
cursor: auto;
}
48 changes: 42 additions & 6 deletions client/src/pages/Login.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,45 @@
import React from 'react';
import React, { useState } from "react";
import '../login.css';
import background from '../assets/background.svg';
import line from '../assets/Line.svg';
import google from '../assets/google.png';

const Login: React.FC = () => {
return (
<div>Login Page</div>
);
function Login() {

const [feilds, setfeilds] = useState({
username: '',
password: ''
});
const handleInput = (e: { target: { name: any; value: any; }; }) =>{
const name = e.target.name;
const value = e.target.value;
setfeilds({...feilds, [name] : value })
}

const handleSubmit = (e: any) => {
e.preventDefault();
console.log(feilds.username);
console.log(feilds.password);

};
return (
<div>
<form action="" onSubmit={handleSubmit}>
<div style={{ display: 'flex', justifyContent: 'center'}}>
<div className="background" ><img className="image" src={background}/></div>
<div className="container">
<div className="login-text neonText">LOGIN</div>
<div className="button fill" style={{marginTop:'70px'}}><img src={google} style={{width:"20px", marginRight:'15px'}}/>Continue with Google</div>
<div className="button"><input className="input" type="email" name="username" placeholder="Your Email" autoComplete="off" value={feilds.username} onChange={handleInput} /></div>
<div className="button"><input className="input" type="password" name="password" placeholder="Password" autoComplete="off" value={feilds.password} onChange={handleInput} /></div>
<button className="button login fill" type="submit" style={{zIndex: 2, borderRadius:'0', width: '10vw',border:'none'}}>
<div className="button login fill" style={{position:"absolute",height:'48px',minWidth:'248px',width:"5vw", margin:'2px' ,borderRadius:'0', border:'none', backgroundColor:'#0e4f5e'}}><img style={{position:'absolute', zIndex:0}} src={line}/><div style={{zIndex:1}}>LOGIN</div></div></button>
<div className="signup">Don’t have an account?<div style={{marginLeft:'10px',color:'#40E9F1'}}>Sign Up.</div></div>
</div>
</div>
</form>
</div>
);
}

export default Login;
export default Login;