-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
8 changed files
with
277 additions
and
31 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,3 +1,189 @@ | ||
h1 { | ||
color:blue; | ||
} | ||
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital@0;1&family=Open+Sans&display=swap'); | ||
|
||
:root { | ||
--light-purple:#F6F5FC; | ||
--pale-purple:#B9BDD2; | ||
--dark-purple:#8C8FC0; | ||
--dark-gray:#565656; | ||
} | ||
|
||
|
||
/*** login **/ | ||
|
||
body{ | ||
background-color:var(--light-purple); | ||
width:auto; | ||
margin:0; | ||
} | ||
|
||
|
||
|
||
.login-page { | ||
border-radius:10px; | ||
box-shadow: 0px 11px 35px 2px rgba(0, 0, 0, 0.14); | ||
margin:100px auto auto auto; | ||
padding:40px; | ||
height:auto; | ||
width:250px; | ||
|
||
} | ||
|
||
|
||
.default { | ||
display:flex; | ||
} | ||
|
||
.nav-left { | ||
all:unset; | ||
background-color:white; | ||
height:100vh; | ||
font-family:Open sans; | ||
float:left; | ||
text-align: left; | ||
width:15%; | ||
text-transform: uppercase; | ||
} | ||
|
||
.nav-left a { | ||
text-decoration:none; | ||
display:block; | ||
width:100%; | ||
padding-top:20px; | ||
padding-left:30px; | ||
padding-bottom:20px; | ||
color:var(--dark-purple); | ||
|
||
} | ||
|
||
.content { | ||
justify-content:center; | ||
text-align:center; | ||
padding-top:50px; | ||
margin:0 auto; | ||
|
||
} | ||
|
||
.loggedin { | ||
background-color:white; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
height: 50px; | ||
text-align: right; | ||
font-family:Libre Baskerville; | ||
border-radius:10px; | ||
|
||
} | ||
|
||
.loggedin a { | ||
display:inline-block; | ||
padding:15px; | ||
color:var(--dark-purple); | ||
|
||
} | ||
|
||
.loggedin li { | ||
display:inline; | ||
|
||
} | ||
|
||
a { | ||
text-decoration: none; | ||
} | ||
|
||
|
||
ul { | ||
list-style-type:none; | ||
margin:0; | ||
padding:0; | ||
} | ||
|
||
.default li a { | ||
display: block; | ||
width: 60px; | ||
} | ||
|
||
|
||
.title { | ||
font-family:Libre Baskerville; | ||
color:var(--dark-purple); | ||
} | ||
|
||
.container { | ||
padding-top:200px; | ||
display:flex; | ||
text-align:center; | ||
width:400px; | ||
margin:0 auto 200px auto; | ||
|
||
|
||
} | ||
.box { | ||
font-family:Open sans; | ||
padding:40px; | ||
border-radius:10px; | ||
box-shadow: 0px 11px 25px 2px rgba(0, 0, 0, 0.14); | ||
} | ||
|
||
.search { | ||
all:unset; | ||
width: 76%; | ||
color: var(--dark-purple); | ||
font-weight: 700; | ||
font-size: 14px; | ||
letter-spacing: 1px; | ||
background: rgba(136, 126, 126, 0.04); | ||
padding: 10px 20px; | ||
border: none; | ||
border-radius: 20px; | ||
outline: none; | ||
box-sizing: border-box; | ||
border: 2px solid rgba(0, 0, 0, 0.02); | ||
text-transform:capitalize; | ||
width:90px; | ||
|
||
} | ||
|
||
.register-button { | ||
margin-top:50px; | ||
text-transform:uppercase; | ||
font-family:open sans; | ||
color: var(--dark-purple); | ||
font-weight: 700; | ||
font-size: 14px; | ||
letter-spacing: 1px; | ||
background: rgba(136, 126, 126, 0.04); | ||
padding: 10px 20px; | ||
border: none; | ||
border-radius: 20px; | ||
outline: none; | ||
box-sizing: border-box; | ||
border: 2px solid rgba(0, 0, 0, 0.02); | ||
width:175px; | ||
|
||
|
||
} | ||
|
||
input { | ||
all:unset; | ||
width: 76%; | ||
color: var(--dark-gray); | ||
font-weight: 700; | ||
font-size: 14px; | ||
letter-spacing: 1px; | ||
background: rgba(136, 126, 126, 0.04); | ||
padding: 10px 20px; | ||
border: none; | ||
border-radius: 20px; | ||
outline: none; | ||
box-sizing: border-box; | ||
border: 2px solid rgba(0, 0, 0, 0.02); | ||
width:175px; | ||
|
||
} | ||
|
||
|
||
|
||
|
||
|
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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{% load static %} | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<link rel="stylesheet" href="{% static 'styles/styles.css' %}"> | ||
<script defer src="{% static 'scripts/app.js' %}"></script> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title> | ||
{% block title %} | ||
{% endblock %} | ||
</title> | ||
</head> | ||
<body> | ||
|
||
<div class="content"> | ||
{% block nav %} | ||
{% endblock %} | ||
{% block body %} | ||
{% block content %} | ||
{% endblock %} | ||
{% endblock %} | ||
</body> | ||
</div> | ||
|
||
</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 |
---|---|---|
@@ -1,11 +1,17 @@ | ||
{% extends 'base.html' %} | ||
{% extends 'login-style.html' %} | ||
{% block content %} | ||
|
||
<h1 class="title">Log In</h1> | ||
<form method="post" action="{% url 'login' %}"> | ||
{% csrf_token %} {{ form.as_p }} | ||
<input type="submit" value="login" /> | ||
<input type="hidden" name="next" value="{{ next }}" /> | ||
</form> | ||
|
||
<div class="login-page"> | ||
<h1 class="title">Log In</h1> | ||
<form method="post" action="{% url 'login' %}"> | ||
{% csrf_token %} {{ form.as_p }} | ||
<input type="submit" value="login" /> | ||
<input type="hidden" name="next" value="{{ next }}" /> | ||
</form> | ||
</div> | ||
|
||
<a href="{% url 'signup' %}"><button class="register-button">Register</button></a> | ||
|
||
{% 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% extends 'base.html' %} | ||
{% extends 'login-style.html' %} | ||
|
||
{% block body %} | ||
<h2>Sign up</h2> | ||
|