Skip to content

Commit

Permalink
Merge pull request #197 from Ashu-tosh1/new-webpage
Browse files Browse the repository at this point in the history
User-registration-form
  • Loading branch information
shreyamalogi authored Oct 18, 2024
2 parents 04186d9 + 4d0671a commit 193cd4d
Show file tree
Hide file tree
Showing 2 changed files with 171 additions and 0 deletions.
37 changes: 37 additions & 0 deletions web/pages/user.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>User Login</title>
<link rel="stylesheet" href="../stylesheet/user.css">
</head>
<body>
<div class="container">
<div class="logo">
<h1>MyApp</h1>
</div>
<div class="login-box">
<h2>Login</h2>
<form>
<div class="input-box">
<input type="text" id="username" required>
<label for="username">Username</label>
</div>
<div class="input-box">
<input type="password" id="password" required>
<label for="password">Password</label>
</div>
<div class="options">
<a href="#" class="forgot">Forgot Password?</a>
</div>
<button type="submit" class="btn">Sign In</button>
<p>or sign in with</p>
<div class="social-login">
<button class="google-btn">Sign in with Google</button>
</div>
</form>
</div>
</div>
</body>
</html>
134 changes: 134 additions & 0 deletions web/stylesheet/user.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Arial', sans-serif;
background-color: white;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}

.container {
position: relative;
width: 100%;
max-width: 400px;
}

.logo {
position: absolute;
top: 20px;
left: 20px;
}

.logo h1 {
font-size: 24px;
color: black;
}

.login-box {
background-color: #e0f7fa;
border-radius: 10px;
padding: 40px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: center;
}

.login-box h2 {
font-size: 24px;
color: black;
margin-bottom: 20px;
}

.input-box {
position: relative;
margin-bottom: 20px;
}

.input-box input {
width: 100%;
padding: 10px;
font-size: 16px;
background-color: #fff;
border: none;
border-radius: 5px;
outline: none;
transition: all 0.3s ease;
}

.input-box label {
position: absolute;
top: 50%;
left: 10px;
transform: translateY(-50%);
font-size: 16px;
color: #666;
pointer-events: none;
transition: all 0.3s ease;
}

.input-box input:focus + label,
.input-box input:not(:placeholder-shown) + label {
top: 5px;
font-size: 12px;
color: black;
}

.input-box input:focus {
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.options {
text-align: right;
margin-bottom: 20px;
}

.forgot {
color: black;
text-decoration: none;
transition: color 0.3s ease;
}

.forgot:hover {
color: gray;
}

.btn {
width: 100%;
padding: 10px;
background-color: black;
color: white;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}

.btn:hover {
background-color: gray;
}

.social-login {
margin-top: 20px;
}

.google-btn {
width: 100%;
padding: 10px;
background-color: white;
border: 1px solid black;
border-radius: 5px;
color: black;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}

.google-btn:hover {
background-color: lightgray;
}

0 comments on commit 193cd4d

Please sign in to comment.