Skip to content
Merged
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
120 changes: 120 additions & 0 deletions Travelling Website/auth-pages.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
body,
html {
margin: 0;
padding: 0;
height: 100%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Helvetica, Arial, sans-serif;
box-sizing: border-box;
}

*,
*:before,
*:after {
box-sizing: inherit;
}

body {
background-image: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&q=80");
background-size: cover;
background-position: center;
background-repeat: no-repeat;

display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
min-height: 100vh;
padding: 2rem;
}

header {
width: 100%;
text-align: center;
margin-bottom: 2rem;
}

.navbar2 h1 {
color: #ffffff;
font-size: 2.5rem;
font-weight: 700;
text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
margin: 0;
}

.container {
width: 100%;
display: flex;
justify-content: center;
}

.form-box {
background-color: #ffffff;
padding: 2.5rem;
border-radius: 16px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
width: 100%;
max-width: 420px;
text-align: center;
}

.form-box h1 {
font-size: 2rem;
color: #333;
margin-top: 0;
margin-bottom: 2rem;
}

.form {
display: flex;
flex-direction: column;
gap: 1rem;
}

.form input {
width: 100%;
padding: 14px 16px;
border: 1px solid #dcdcdc;
border-radius: 8px;
font-size: 1rem;
color: #333;
}

.form input:focus {
outline: none;
border-color: #4a4a9f;
box-shadow: 0 0 0 2px rgba(74, 74, 159, 0.2);
}

.form button {
background-color: #4a4a9f;
color: white;
padding: 14px;
border: none;
border-radius: 8px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s ease;
margin-top: 0.5rem;
}

.form button:hover {
background-color: #3a3a7f;
}

.form-box p {
margin-top: 1.5rem;
font-size: 0.9rem;
color: #555;
}

.form-box p a {
color: #1f3a5e;
text-decoration: none;
font-weight: 600;
}

.form-box p a:hover {
text-decoration: underline;
}
32 changes: 32 additions & 0 deletions Travelling Website/create_account.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign Up</title>
<link rel="stylesheet" href="auth-pages.css">
</head>
<body>
<header>
<div class="navbar2">
<h1>"Explore More, Worry Less"</h1>
</div>
</header>
<div class="container">
<div class="form-box" id="formBox">
<h1>Sign Up</h1>

<form id="signupForm" class="form">
<input type="text" placeholder="Full Name" required>
<input type="email" placeholder="Email" required>
<input type="password" placeholder="Password" required>
<input type="password" placeholder="Confirm Password" required>
<button type="submit">Sign Up</button>
<p>Already have an account? <a href="./login.html" id="showLogin">Login</a></p>
<a href="./index.html">Go Back to HOME</a>
</form>

</div>
</div>
</body>
</html>
4 changes: 2 additions & 2 deletions Travelling Website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
</ul>

<div class="nav-actions">
<a href="#" class="signin">Sign in</a>
<a href="#" class="account">Create Account</a>
<a href="./login.html" class="signin">Sign in</a>
<a href="./create_account.html" class="account">Create Account</a>
<a href="#"><i class="fa-solid fa-cart-shopping"></i></a>
</div>
</nav>
Expand Down
33 changes: 33 additions & 0 deletions Travelling Website/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>login-form</title>
</head>
<link rel="stylesheet" href="auth-pages.css">

<body>
<header>
<div class="navbar2">
<h1>"Explore More, Worry Less"</h1>
</div>
</header>
<div class="container">
<div class="form-box" id="formBox">
<h1>Login</h1>
<!-- Login Form -->
<form id="loginForm" class="form active">
<input type="email" placeholder="Email" required />
<input type="password" placeholder="Password" required />
<button type="submit">Login</button>
<p>
Don't have an account?
<a href="./create_account.html" id="showSignup">Sign up</a>
</p>
<a href="./index.html">Go Back to HOME</a>
</form>
</div>
</div>
</body>
</html>