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

Adding Login #23

Closed
wants to merge 5 commits into from
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
Binary file added .DS_Store
Binary file not shown.
28 changes: 28 additions & 0 deletions Login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login - Pageturners</title>
<!-- External CSS Link -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="wrapper login">
<h1>Welcome Back!</h1>
<p>We're excited to see you again!</p>
<form>
<input type="text" placeholder="Enter your username" required>
<input type="password" placeholder="Enter your password" required>
<p class="recover">
<a href="#">Forgot your password?</a>
</p>
</form>
<button type="submit" class="login">Sign in</button>

<div class="not-member">
Not a member yet? <a href="register.html">Register now</a>
</div>
</div>
</body>
</html>
34 changes: 18 additions & 16 deletions register.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Register</title>
<link rel="stylesheet" href="styles.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Register - Pageturners</title>
<!-- External CSS Link -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Create an Account</h1>
<form action="TBD" method="TBD">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>

<label for="email">Email:</label>
<input type="email" id="email" name="email" required>

<label for="password">Password:</label>
<input type="password" id="password" name="password" required>

<button type="submit">Register</button>
<div class="wrapper register">
<h1>Join Pageturners!</h1>
<p>Sign up and be a part of our book-loving community!</p>
<form>
<input type="text" placeholder="Enter your username" required>
<input type="email" placeholder="Enter your email" required>
<input type="password" placeholder="Create a password" required>
</form>
<button type="submit" class="register">Register</button>

<div class="not-member">
Already a member? <a href="login.html">Login here</a>
</div>
</div>
</body>
</html>
129 changes: 129 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

/* Body Styling */
body {
font-family: 'Poppins', sans-serif;
background-color: #fff;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}


.wrapper {
padding: 40px;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
text-align: center;
width: 100%;
max-width: 400px;
}


h1 {
font-size: 28px;
margin-bottom: 10px;
color: #ffae66; /* Light orange for headings */
}


p {
font-size: 16px;
margin-bottom: 20px;
color: #666666; /* Light gray for paragraph text */
}

/* Form Inputs */
input[type="text"], input[type="email"], input[type="password"] {
width: 100%;
padding: 10px;
margin: 10px 0;
border: none;
border-radius: 5px;
background-color: #fff;
color: #666666;
font-size: 16px;
border: 1px solid #ffae66; /* Light orange border */
}

input:focus {
outline: none;
background-color: #fff8f0; /* Light orange background on focus */
}

/* Button Styling */
button {
padding: 12px;
width: 100%;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s;
background-color: #ffae66; /* Light orange button background */
color: #fff; /* White text */
}

button:hover {
background-color: #e09457; /* Darker light orange on hover */
}

/* Links and Hover Effects */
.recover a, .not-member a {
color: #ffae66;
text-decoration: none;
}

.recover a:hover, .not-member a:hover {
text-decoration: underline;
}

/* Specific Colors and Backgrounds */
.wrapper.register {
background-color: #fff8f0; /* Light orange background for register page */
color: #ffae66;
}

.wrapper.login {
background-color: #fff; /* White background for login page */
color: #ffae66;
}

button.register {
background-color: #ffae66; /* Light orange button for register */
}

button.login {
background-color: #fff; /* White button for login */
color: #ffae66; /* Light orange text for login button */
}

p.recover {
margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 600px) {
.wrapper {
padding: 30px;
}
h1 {
font-size: 24px;
}
p {
font-size: 14px;
}
}