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

Set up login page front-end #34

Merged
merged 5 commits into from
Feb 24, 2024
Merged
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
84 changes: 84 additions & 0 deletions templates/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login</title>
<link rel="stylesheet" href="/static/css/style.css">
<style>
body {
margin: 0;
padding: 0;
background-color: #5E4D47;
display: flex;
/*justify-content: center;
align-items: center;*/
flex-direction: column;
height: 80vh;
}

header {
color: #E1948D;
padding: 20px 20px;
text-align: center;
font-size: 25px;
}

.login-container {
background-color: #FAFAFA;
padding: 35px;
border-radius: 50px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
max-width: 300px;
width: 90%;
text-align: center;
margin: auto;
}

.login-container input[type="username"],
.login-container input[type="password"] {
width: 100%;
padding: 15px;
margin: 10px 0;
border: 1px solid #FAFAFA;
border-radius: 4px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
box-sizing: border-box;
}

.login-container input[type="username"]::placeholder,
.login-container input[type="password"]::placeholder {
color: #B05E57;
}

.login-container input[type="submit"] {
width: 100%;
padding: 20px;
margin: 10px 0;
background-color: #E1948D;
border: 1px solid #E1948D;
border-radius: 4px;
color: #FAFAFA;
cursor: pointer;
box-sizing: border-box;
font-weight: bold;
}

.login-container input[type="submit"]:hover {
background-color: #B05E57;
border: 1px solid #B05E57;
}

</style>
</head>
<body>
<header> <h1>DIVE DEEPER</h1> </header>
<div class="login-container">
<form action={{action}} method="post">
<input type="username" name="username" placeholder="Username" required>
<input type="password" name="password" placeholder="Password" required>
<input type="submit" value="Login">
</form>
</div>
</body>
</html>
Loading