-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8f1995
commit 68832bd
Showing
15 changed files
with
2,837 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Forgot Password</title> | ||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet"> | ||
<style> | ||
body { | ||
font-family: 'Roboto', sans-serif; | ||
margin: 0; | ||
padding: 0; | ||
overflow-x: hidden; /* Hide horizontal scrollbar */ | ||
background-color: #f8f9fa; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
} | ||
.container { | ||
width: 350px; | ||
padding: 30px; | ||
background-color: #ffffff; | ||
border-radius: 10px; | ||
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1); | ||
text-align: center; | ||
transition: background-color 0.3s ease; /* Added transition */ | ||
} | ||
.container.dark { | ||
background-color: #343a40; /* Dark background color */ | ||
color: #ffffff; /* Light text color */ | ||
} | ||
.container.light { | ||
background-color: #ffffff; /* Light background color */ | ||
color: #343a40; /* Dark text color */ | ||
} | ||
.container h1 { | ||
font-size: 32px; | ||
margin-bottom: 20px; | ||
color: #343a40; /* Bold color for headings */ | ||
} | ||
.container form { | ||
margin-top: 20px; | ||
} | ||
.form-group { | ||
margin-bottom: 20px; | ||
} | ||
.form-group label { | ||
display: block; | ||
font-weight: 700; | ||
margin-bottom: 5px; | ||
color: #495057; | ||
} | ||
.form-group input { | ||
width: 100%; | ||
padding: 10px; | ||
border: 1px solid #ced4da; | ||
border-radius: 5px; | ||
outline: none; | ||
} | ||
.form-group input[type="submit"] { | ||
background-color: #343a40; | ||
color: #ffffff; | ||
border: none; | ||
padding: 10px 20px; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
transition: background-color 0.3s ease; | ||
} | ||
.form-group input[type="submit"]:hover { | ||
background-color: #343a40; | ||
} | ||
.btn-group button { | ||
margin-right: 10px; | ||
background-color: #6c757d; | ||
color: #ffffff; | ||
border: none; | ||
padding: 10px 20px; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
transition: background-color 0.3s ease; | ||
} | ||
.btn-group button:hover { | ||
background-color: #5a6268; | ||
} | ||
|
||
|
||
|
||
|
||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h1>Forgot Password</h1> | ||
<form action="/postRforgotpassword/" method="post"> | ||
{% csrf_token %} | ||
<div class="form-group"> | ||
<label for="email">Email:</label> | ||
<input type="email" id="email" name="email" required> | ||
</div> | ||
<div class="form-group"> | ||
<input type="submit" value="Submit Email"> | ||
</div> | ||
</form> | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Sign In - CareerSwipe</title> | ||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet"> | ||
<style> | ||
body { | ||
font-family: 'Roboto', sans-serif; | ||
margin: 0; | ||
padding: 0; | ||
overflow-x: hidden; | ||
background-color: #f8f9fa; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
} | ||
|
||
.container { | ||
width: 350px; | ||
padding: 30px; | ||
background-color: #ffffff; | ||
border-radius: 10px; | ||
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1); | ||
text-align: center; | ||
transition: background-color 0.3s ease; | ||
} | ||
|
||
.container.dark { | ||
background-color: #343a40; | ||
color: #ffffff; | ||
} | ||
|
||
.container.light { | ||
background-color: #ffffff; | ||
color: #343a40; | ||
} | ||
|
||
.container h1 { | ||
font-size: 32px; | ||
margin-bottom: 20px; | ||
color: #343a40; | ||
} | ||
|
||
.container form { | ||
margin-top: 20px; | ||
} | ||
|
||
.form-group { | ||
margin-bottom: 20px; | ||
} | ||
|
||
.form-group label { | ||
display: block; | ||
font-weight: 800; | ||
margin-bottom: 5px; | ||
color: #495057; | ||
} | ||
|
||
.form-group input { | ||
width: 100%; | ||
padding: 10px; | ||
border: 1px solid #ced4da; | ||
border-radius: 5px; | ||
outline: none; | ||
} | ||
|
||
.form-group input[type="submit"] { | ||
background-color: #007bff; | ||
color: #ffffff; | ||
border: none; | ||
padding: 10px 20px; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
transition: background-color 0.3s ease; | ||
} | ||
|
||
.form-group input[type="submit"]:hover { | ||
background-color: #0056b3; | ||
} | ||
|
||
.btn-group button { | ||
margin-right: 10px; | ||
background-color: #6c757d; | ||
color: #ffffff; | ||
border: none; | ||
padding: 10px 20px; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
transition: background-color 0.3s ease; | ||
} | ||
|
||
.btn-group button:hover { | ||
background-color: #5a6268; | ||
} | ||
|
||
/* Added for background strip */ | ||
.background-strip { | ||
position: absolute; | ||
top: 0; | ||
left: -33.33%; /* Initially off-screen to the left */ | ||
width: 133.33%; /* Extend beyond the screen width for animation */ | ||
height: 100%; | ||
z-index: -1; | ||
background-color: #5a6268; | ||
animation: moveBackground 30s ease-in-out infinite; /* Adjust timing as needed */ | ||
} | ||
|
||
@keyframes moveBackground { | ||
0% { | ||
transform: translateX(-100%); /* Start position (off-screen to the left) */ | ||
} | ||
50% { | ||
transform: translateX(100%); /* Midway, move to the right */ | ||
} | ||
100% { | ||
transform: translateX(-100%); /* End position (off-screen to the left) */ | ||
} | ||
} | ||
|
||
/* Text color animation */ | ||
@keyframes changeTextColor { | ||
0%, 100% { | ||
color: #343a40; /* Dark text color */ | ||
} | ||
50% { | ||
color: #ffffff; /* Light text color */ | ||
} | ||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h1>Welcome to CareerSwipe - Recruiter</h1> | ||
{% if message %} | ||
<script> | ||
alert('{{ message }}'); | ||
</script> | ||
{% endif %} | ||
<form action="/postRsignin/" method="post"> | ||
{% csrf_token %} | ||
<div class="form-group"> | ||
<label for="email">Email:</label> | ||
<input type="email" id="email" name="email" required> | ||
</div> | ||
<div class="form-group"> | ||
<label for="password">Password:</label> | ||
<input type="password" id="password" name="password" required> | ||
</div> | ||
<div class="form-group"> | ||
<input type="submit" value="Sign In"> | ||
</div> | ||
</form> | ||
<div class="btn-group"> | ||
<button onclick="location.href='{% url 'Rsignup' %}'">Sign Up</button> | ||
<button onclick="location.href='{% url 'Rforgotpassword' %}'">Forgot Password</button> | ||
</div> | ||
</div> | ||
<div class="background-strip"></div> <!-- Added for background strip --> | ||
<script> | ||
// JavaScript to toggle container class when the background strip moves over it | ||
setInterval(function() { | ||
var container = document.querySelector('.container'); | ||
var rect = container.getBoundingClientRect(); | ||
var strip = document.querySelector('.background-strip'); | ||
var stripRect = strip.getBoundingClientRect(); | ||
|
||
if (stripRect.left >= rect.left && stripRect.right <= rect.right) { | ||
container.classList.remove('light'); | ||
container.classList.add('dark'); | ||
} else { | ||
container.classList.remove('dark'); | ||
container.classList.add('light'); | ||
} | ||
|
||
// Change text color based on strip color | ||
var textColor = strip.style.backgroundColor === 'black' ? '#ffffff' : '#343a40'; | ||
container.style.color = textColor; | ||
}, 5000); // Check every 100 milliseconds | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.