Skip to content

Commit

Permalink
styled login page (#83)
Browse files Browse the repository at this point in the history
added css and upated login.html
  • Loading branch information
fbhatti97 authored Nov 20, 2023
1 parent d3b5d18 commit 481ac3f
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 16 deletions.
85 changes: 77 additions & 8 deletions neo_dolfin/static/css/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ body {
}
.display_left
{
width: 800px;
width: 50%;
}
.display_right
{
width: 1000px;
width: 50%;
}
.Title_login {
width: 300px;
Expand All @@ -23,12 +23,78 @@ body {
margin-left: 150px;
margin-top: 100px;
}
.input_area
{
.input_area {
position: absolute;
top: 400px;
left: 300px;
top: 310px;
left: 280px;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
padding: 20px;
margin-top: 20px;
}

.input_area form {
display: flex;
flex-direction: column;
align-items: center;
}

.input_area input[type="text"],
.input_area input[type="password"] {
font-family: 'Anybody', sans-serif;
width: 95%; /* Adjust the width as needed */
padding: 10px;
margin: 25px 0; /* Creates gap between inputs */
border: 1px solid #ddd;
border-radius: 30px; /* Increased border-radius for rounded effect */
}

.input_area input[type="submit"] {
width: 40%; /* Adjust the width as needed */
padding: 10px;
margin-top: 20px; /* Spacing above the button */
margin-right: 10px;
border: none;
border-radius: 30px; /* Increased border-radius for rounded effect */
background-color: #382727;
color: white;
cursor: pointer;
align-self: flex-end;
}

.auth-link {
font-family: 'Anybody', sans-serif;
font-weight: bold;
color: white; /* Adjust the color as needed */
text-decoration: none; /* Removes underline */
cursor: pointer;
font-size: 0.5em;
margin: 0 5px; /* Adjust for spacing around the links */
}

.link-container .auth-link:first-child {
margin-right: 100px; /* Pushes it more to the left */
}

/* Target the second .auth-link (Forgot Password?) */
.link-container .auth-link:last-child {
margin-left: auto; /* Pushes it more to the right */
}D


.auth-link:hover {
text-decoration: underline; /* Adds underline on hover */
}

.link-container {
display: flex;
justify-content: center;
align-items: center;
margin-top: -10px; /* Adjust as needed */
}

.text_bg
{
position: absolute;
Expand All @@ -41,11 +107,13 @@ body {
backdrop-filter: blur(15px);
border-radius: 20px;
}

.container_left
{
position: relative;
max-width: 800px;
margin: 0 auto;
margin: 0 auto;
text-align: center;
}
.container_right
{
Expand Down Expand Up @@ -126,4 +194,5 @@ font-style: normal;
font-weight: 600;
line-height: 146.88%;
letter-spacing: -0.8px;
}
}

22 changes: 14 additions & 8 deletions neo_dolfin/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<script src="../static/js/bootstrap.min.js"></script>
<script src="../static/"></script>
<link rel="stylesheet" href="../static/css/login.css">
<title>Login</title>
Expand All @@ -21,13 +21,19 @@
<img src="../static/img/title.png" alt="Title_login" class="Title_login">
<img src="../static/img/style.png" alt="style" class="style">
<div class="input_area">
<form method="POST" action="/login">
<label for="username">Username:</label>
<input type="text" name="username" required>
<br>
<label for="password">Password:</label>
<input type="password" name="password" required>
<form method="POST" action="/login">
<input type="text" name="username" placeholder="Username" required>
<br>
<input type="password" name="password" placeholder="Password" required>
<br>
<div class="link-container">
<a href="./register" class="auth-link">
<div>New to DolFin?</div>
<div>Register Here</div>
</a>

<a href="#" class="auth-link">Forgot Password?</a>
</div>
<input type="submit" value="Login">
</form>

Expand Down

0 comments on commit 481ac3f

Please sign in to comment.