generated from nyu-software-engineering/web-app-exercise
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from software-students-spring2024/render-html
Render HTML
- Loading branch information
Showing
7 changed files
with
138 additions
and
206 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
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 |
---|---|---|
@@ -1,31 +1,76 @@ | ||
body { | ||
font-family: sans-serif; | ||
background: #5e4d47; | ||
padding: 48px; | ||
} | ||
|
||
h1 { | ||
color: #e1948d; | ||
text-align: center; | ||
font-size: 115px; | ||
} | ||
|
||
h3 { | ||
color: #e1948d; | ||
text-align: center; | ||
font-size: 55px; | ||
} | ||
|
||
.card { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
margin: auto; | ||
width: 90%; | ||
aspect-ratio: 8 / 5; | ||
border-radius: 7rem; | ||
background: #fafafa; | ||
padding: 10px; | ||
} | ||
|
||
font-family: sans-serif; | ||
background: #5e4d47; | ||
padding: 48px; | ||
} | ||
|
||
h1 { | ||
color: #e1948d; | ||
text-align: center; | ||
font-size: 115px; | ||
} | ||
|
||
h3 { | ||
color: #e1948d; | ||
text-align: center; | ||
font-size: 55px; | ||
} | ||
|
||
.card { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
margin: auto; | ||
width: 90%; | ||
aspect-ratio: 8 / 5; | ||
border-radius: 7rem; | ||
background: #fafafa; | ||
padding: 10px; | ||
margin-bottom: 10%; | ||
} | ||
|
||
.vertical-align { | ||
display: flex; | ||
justify-content: space-between; | ||
flex-direction: column; | ||
align-items: center; | ||
margin: auto; | ||
width: 90%; | ||
aspect-ratio: 9 / 5; | ||
|
||
} | ||
|
||
.button { | ||
width: 100%; | ||
height: 25%; | ||
padding: 20px; | ||
margin: 10px 0; | ||
background-color: #E1948D; | ||
border: 1px solid #E1948D; | ||
border-radius: 4px; | ||
cursor: pointer; | ||
box-sizing: border-box; | ||
font-weight: bold; | ||
color: #FAFAFA; | ||
font-size: 50px; | ||
} | ||
|
||
.user-input { | ||
width: 100%; | ||
height: 20%; | ||
padding: 20px; | ||
margin: 10px 0; | ||
background-color: #fafafa; | ||
border: 1px solid #fafafa; | ||
border-radius: 4px; | ||
box-sizing: border-box; | ||
color: #FAFAFA; | ||
font-size: 40px; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); | ||
} | ||
|
||
.image { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} |
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
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 |
---|---|---|
@@ -1,84 +1,13 @@ | ||
<!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; | ||
} | ||
{% extends 'base.html' %} | ||
|
||
header { | ||
color: #E1948D; | ||
padding: 20px 20px; | ||
text-align: center; | ||
font-size: 25px; | ||
} | ||
{% block container %} | ||
|
||
.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; | ||
} | ||
<div class="card"> | ||
<form class="vertical-align" action={{action}} method="post"> | ||
<input class="user-input" type="username" name="username" placeholder="Username" required> | ||
<input class="user-input" type="password" name="password" placeholder="Password" required> | ||
<input class="button" type="submit" value="Login"> | ||
</form> | ||
</div> | ||
|
||
.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> | ||
{% endblock %} |
This file was deleted.
Oops, something went wrong.
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,14 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block container %} | ||
|
||
<div class="card"> | ||
<form class="vertical-align" action="{{action}}" method="post"> | ||
<input class="user-input" type="username" name="username" placeholder="Username" required> | ||
<input class="user-input" type="password" name="password" placeholder="Password" required> | ||
<input class="user-input" type="confirm-password" name="confirm-password" placeholder="Confirm Password" required> | ||
<input class="button" type="submit" value="Sign Up"> | ||
</form> | ||
</div> | ||
|
||
{% endblock %} |
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,17 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block container %} | ||
|
||
<div class="card"> | ||
<h3>build deeper connections with people.</h3> | ||
</div> | ||
|
||
<div class="card"> | ||
<div class="vertical-align"> | ||
<button class="button" type="submit">Login</button> | ||
<button class="button" type="submit">Sign Up</button> | ||
<button class="button" type="submit">Play As Guest</button> | ||
</div> | ||
</div> | ||
|
||
{% endblock %} |