Skip to content

Commit

Permalink
added registration form and link it
Browse files Browse the repository at this point in the history
  • Loading branch information
Ansh101112 committed Jul 29, 2024
1 parent 877221d commit 15074f3
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 1 deletion.
37 changes: 37 additions & 0 deletions auth/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flipkart Registration Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<form class="registration-form">
<h2>Create an account</h2>
<div class="form-group">
<label for="username">Name</label>
<input type="text" id="username" name="username" required>
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" id="email" name="email" required>
</div>
<div class="form-group">
<label for="phone">Phone Number</label>
<input type="tel" id="phone" name="phone" required>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" id="password" name="password" required>
</div>
<div class="form-group">
<label for="confirm-password">Confirm Password</label>
<input type="password" id="confirm-password" name="confirm-password" required>
</div>
<button type="submit" class="btn">Register</button>
</form>
</div>
</body>
</html>
65 changes: 65 additions & 0 deletions auth/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}

.container {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 400px;
}

.registration-form h2 {
margin-bottom: 20px;
font-size: 24px;
color: #333;
text-align: center;
}

.form-group {
margin-bottom: 15px;
}

.form-group label {
display: block;
margin-bottom: 5px;
color: #333;
}

.form-group input {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
box-sizing: border-box;
}

.form-group input:focus {
border-color: #2874f0;
outline: none;
}

.btn {
display: inline-block;
width: 100%;
padding: 10px;
background-color: #2874f0;
color: #fff;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
text-align: center;
}

.btn:hover {
background-color: #0056b3;
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ <h4>Login</h4>
<button class="QqFHMw twnTnD _7Pd1Fp">Request OTP</button>
</div>
<div class="ZJ3AS1 d-flex justify-content-center mt-4">
<a class="azBkHf" href="#" id="buttonA">New to Flipkart? Create an account</a>
<a class="azBkHf" href="https://flipkart-clone-seven-azure.vercel.app/auth/index.html" id="buttonA">New to Flipkart? Create an account</a>
</div>
</form>
</div>
Expand Down

0 comments on commit 15074f3

Please sign in to comment.