diff --git a/core/static/core/css/logged-in.css b/core/static/core/css/logged-in.css new file mode 100644 index 0000000..cda90ae --- /dev/null +++ b/core/static/core/css/logged-in.css @@ -0,0 +1,8 @@ +table { + border-collapse: collapse; +} +td, th { + padding: 20px; + border: 1px solid black; + margin: 0px; +} diff --git a/core/static/core/css/style.css b/core/static/core/css/style.css new file mode 100644 index 0000000..fe6db91 --- /dev/null +++ b/core/static/core/css/style.css @@ -0,0 +1,41 @@ +body { + background-color: #f2f2f2; +} +h1, h2, h3, h4, h5, h6 { + text-transform: capitalize; + line-height: initial; +} +#wrapper { + width: 80%; + margin: auto; + color: #333; + font-size: 1.1em; + line-height: 1.5em; +} +.two-col-grid { + display: grid; + width: 100%; + grid-template-columns: 50% 50%; +} +.two-col-grid > * { + text-align: center; +} + +nav { + background-color: lightgrey; +} +a { + color: #47a; + padding: 12px; + display: block; +} +a:visited { + color: #941452; +} +nav > a { + display: inline-block; +} + +input { + font-size: 32px; +} \ No newline at end of file diff --git a/core/templates/core/links.html b/core/templates/core/links.html index 834569f..02adcdb 100644 --- a/core/templates/core/links.html +++ b/core/templates/core/links.html @@ -1,8 +1,31 @@ {% extends 'common/master.html' %} {% block body %} - {% if user.is_authenticated %} - Upload - View Downloads - {% endif %} - Download +
+
+

Download a quote

+

Download a quote from {{ company }}. Have it sent right to your inbox.

+ Download a quote +
+ {% if user.is_authenticated %} +
+

Upload quotes

+

Upload quotes for {{ company }}.

+ Upload +
+
+

View Download Attempts

+

View all download attempts, what IP the request originated from, what quote was requested, if the email was sent correctly and more!

+ View Downloads +
+ {% endif %} +
+ {% if user.is_authenticated %} +

Logout

+ Logout + {% else %} +

Login

+ Login + {% endif %} +
+
{% endblock %} diff --git a/download/__pycache__/forms.cpython-38.pyc b/download/__pycache__/forms.cpython-38.pyc index 15f259e..d8278ac 100644 Binary files a/download/__pycache__/forms.cpython-38.pyc and b/download/__pycache__/forms.cpython-38.pyc differ diff --git a/download/forms.py b/download/forms.py index 35785d8..9cc2b69 100644 --- a/download/forms.py +++ b/download/forms.py @@ -1,5 +1,11 @@ from django import forms class CodeForm(forms.Form): - code = forms.CharField(label='Code', max_length=8, required=True) - email = forms.EmailField(label='Email', max_length=32, required=True) + code = forms.CharField(label='Code', max_length=8, required=True, + widget=forms.TextInput( + attrs={'placeholder': '123A56'} + )) + email = forms.EmailField(label='Email', max_length=32, required=True, + widget=forms.TextInput( + attrs={'placeholder': 'jane@joe.com'} + )) \ No newline at end of file diff --git a/download/templates/common/master.html b/download/templates/common/master.html index cbc928b..7fbea36 100644 --- a/download/templates/common/master.html +++ b/download/templates/common/master.html @@ -1,19 +1,19 @@ +{% load static %} {% block title %}{% endblock %} - + + {% if user.is_authenticated %} + + {% endif %} - {% include 'common/navbar.html' %} - {% block body %} - {% endblock %} +
+ {% include 'common/navbar.html' %} + {% block body %} + {% endblock %} +
diff --git a/download/templates/download/code-form.html b/download/templates/download/code-form.html index b95b2cc..f80aab6 100644 --- a/download/templates/download/code-form.html +++ b/download/templates/download/code-form.html @@ -1,3 +1,4 @@ +{% extends 'common/master.html' %} {% block body %}

Type In Your Code

diff --git a/download/templates/download/download-page.html b/download/templates/download/download-page.html index bbc50f5..7297b98 100644 --- a/download/templates/download/download-page.html +++ b/download/templates/download/download-page.html @@ -1,8 +1,8 @@ {% extends 'common/master.html' %} {% block body %}

Download Your Quote

- - + +