Skip to content
Open
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
82 changes: 80 additions & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
"preview": "vite preview"
},
"dependencies": {
"react": "^19.2.0",
"react-dom": "^19.2.0"
"lucide-react": "^0.577.0",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-router-dom": "^7.13.1"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
Expand Down
26 changes: 21 additions & 5 deletions frontend/src/pages/Login.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
import React from 'react'
import "./Login.css";

const Login = () => {
function Login() {
return (
<div>Login</div>
)
<div className="container">
<form className="login-form">

<h2>Login</h2>

<label>Email</label>
<input type="email" placeholder="Enter email" />

<label>Password</label>
<input type="password" placeholder="Enter password" />

<button type="submit">Login</button>

<p>Don't have an account? <a href="#">Create Account</a></p>

</form>
</div>
);
}

export default Login
export default Login;
56 changes: 56 additions & 0 deletions frontend/src/pages/login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
.container{
display:flex;
justify-content:center;
align-items:center;
height:100vh;
background:aliceblue;
}

.login-form{
background:white;
padding:25px;
width:300px;
border:1px solid #ccc;
border-radius:10px;
}

.login-form h2{
text-align:center;
margin-bottom:20px;
font-family:'Times New Roman', Times, serif;
}

.login-form label{
display:block;
margin-top:10px;
font-weight: 500;
}

.login-form input{
width:100%;
padding:8px;
margin-top:5px;
border:1px solid #ccc;
border-radius:20px;
}

.login-form button{
width:100%;
margin-top:15px;
padding:8px;
background:blue;
color:white;
border:none;
border-radius:20px;
cursor:pointer;
}

.login-form button:hover{
background:blue;
}

.login-form p{
text-align:center;
margin-top:10px;
font-size:14px;
}