Merge branch 'release/0.6.2'
This commit is contained in:
commit
383fdb769f
2
.gitignore
vendored
2
.gitignore
vendored
@ -130,3 +130,5 @@ dmypy.json
|
|||||||
|
|
||||||
# Pyre type checker
|
# Pyre type checker
|
||||||
.pyre/
|
.pyre/
|
||||||
|
|
||||||
|
media/
|
||||||
|
|||||||
@ -1,7 +1,8 @@
|
|||||||
:root {
|
:root {
|
||||||
--fg-color: #34201A;
|
--fg-color: #34201a;
|
||||||
|
--fg-alt-color: #663a2d;
|
||||||
--bg-color: #f5f5f5;
|
--bg-color: #f5f5f5;
|
||||||
--bg-alt-color: #eee5d3;
|
--bg-alt-color: #c8a783;
|
||||||
--gray-color: #9d9d9d;
|
--gray-color: #9d9d9d;
|
||||||
--yellow-color: #f8a911;
|
--yellow-color: #f8a911;
|
||||||
--yellow-alt-color: #ffce6f;
|
--yellow-alt-color: #ffce6f;
|
||||||
@ -233,6 +234,10 @@ img {
|
|||||||
/* ==========================================================================
|
/* ==========================================================================
|
||||||
Base Layout
|
Base Layout
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
main {
|
||||||
|
min-height: calc(100vh - 500px);
|
||||||
|
}
|
||||||
|
|
||||||
.site__header > nav,
|
.site__header > nav,
|
||||||
main > article,
|
main > article,
|
||||||
footer > section {
|
footer > section {
|
||||||
@ -258,6 +263,7 @@ footer > section {
|
|||||||
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
|
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Modal Content/Box */
|
/* Modal Content/Box */
|
||||||
.modal-menu__content {
|
.modal-menu__content {
|
||||||
background-color: var(--bg-color);
|
background-color: var(--bg-color);
|
||||||
@ -267,6 +273,12 @@ footer > section {
|
|||||||
max-width: 40rem;
|
max-width: 40rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 700px) {
|
||||||
|
.modal-menu__content {
|
||||||
|
margin: 4rem auto;
|
||||||
|
border: 1rem solid var(--bg-alt-color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.modal-menu__header {
|
.modal-menu__header {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -501,9 +513,10 @@ article + article {
|
|||||||
/* Products
|
/* Products
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
.product__list {
|
.product__list {
|
||||||
|
margin-top: 8rem;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(2, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
gap: 4rem;
|
gap: 8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.product__item {
|
.product__item {
|
||||||
@ -514,8 +527,15 @@ article + article {
|
|||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.product__item h3 {
|
.product__item h3,
|
||||||
text-decoration: underline;
|
.product__info h1 {
|
||||||
|
/*text-decoration: underline;*/
|
||||||
|
font-family: "Vollkorn", serif;
|
||||||
|
font-weight: 900;
|
||||||
|
}
|
||||||
|
|
||||||
|
.product__item:hover h3 {
|
||||||
|
color: var(--fg-alt-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 900px) {
|
@media screen and (max-width: 900px) {
|
||||||
@ -543,6 +563,7 @@ article + article {
|
|||||||
/* Product Detail
|
/* Product Detail
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
.product__detail {
|
.product__detail {
|
||||||
|
margin-top: 4rem;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 0.25fr 2fr 1fr;
|
grid-template-columns: 0.25fr 2fr 1fr;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
@ -573,15 +594,7 @@ article + article {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 700px) {
|
|
||||||
.product__detail {
|
|
||||||
grid-template-columns: 0.25fr 2fr;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product__info {
|
|
||||||
grid-column: span 2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 700px) {
|
@media screen and (max-width: 700px) {
|
||||||
.product__detail {
|
.product__detail {
|
||||||
|
|||||||
@ -18,7 +18,7 @@ class AddToCartForm(forms.Form):
|
|||||||
STOVETOP_ESPRESSO = 'Stovetop Espresso (Moka Pot)'
|
STOVETOP_ESPRESSO = 'Stovetop Espresso (Moka Pot)'
|
||||||
AEROPRESS = 'AeroPress'
|
AEROPRESS = 'AeroPress'
|
||||||
PERCOLATOR = 'Percolator'
|
PERCOLATOR = 'Percolator'
|
||||||
OTHER = 'Other'
|
CAFE_STYLE = 'BLTC cafe pour over'
|
||||||
GRIND_CHOICES = [
|
GRIND_CHOICES = [
|
||||||
(WHOLE, 'Whole Beans'),
|
(WHOLE, 'Whole Beans'),
|
||||||
(ESPRESSO, 'Espresso'),
|
(ESPRESSO, 'Espresso'),
|
||||||
@ -28,7 +28,7 @@ class AddToCartForm(forms.Form):
|
|||||||
(STOVETOP_ESPRESSO, 'Stovetop Espresso (Moka Pot)'),
|
(STOVETOP_ESPRESSO, 'Stovetop Espresso (Moka Pot)'),
|
||||||
(AEROPRESS, 'AeroPress'),
|
(AEROPRESS, 'AeroPress'),
|
||||||
(PERCOLATOR, 'Percolator'),
|
(PERCOLATOR, 'Percolator'),
|
||||||
(OTHER, 'Other (enter below)')
|
(CAFE_STYLE, 'BLTC cafe pour over')
|
||||||
]
|
]
|
||||||
|
|
||||||
grind = forms.ChoiceField(choices=GRIND_CHOICES)
|
grind = forms.ChoiceField(choices=GRIND_CHOICES)
|
||||||
@ -48,7 +48,7 @@ class AddToSubscriptionForm(forms.Form):
|
|||||||
STOVETOP_ESPRESSO = 'Stovetop Espresso (Moka Pot)'
|
STOVETOP_ESPRESSO = 'Stovetop Espresso (Moka Pot)'
|
||||||
AEROPRESS = 'AeroPress'
|
AEROPRESS = 'AeroPress'
|
||||||
PERCOLATOR = 'Percolator'
|
PERCOLATOR = 'Percolator'
|
||||||
OTHER = 'Other'
|
CAFE_STYLE = 'BLTC cafe pour over'
|
||||||
GRIND_CHOICES = [
|
GRIND_CHOICES = [
|
||||||
(WHOLE, 'Whole Beans'),
|
(WHOLE, 'Whole Beans'),
|
||||||
(ESPRESSO, 'Espresso'),
|
(ESPRESSO, 'Espresso'),
|
||||||
@ -58,7 +58,7 @@ class AddToSubscriptionForm(forms.Form):
|
|||||||
(STOVETOP_ESPRESSO, 'Stovetop Espresso (Moka Pot)'),
|
(STOVETOP_ESPRESSO, 'Stovetop Espresso (Moka Pot)'),
|
||||||
(AEROPRESS, 'AeroPress'),
|
(AEROPRESS, 'AeroPress'),
|
||||||
(PERCOLATOR, 'Percolator'),
|
(PERCOLATOR, 'Percolator'),
|
||||||
(OTHER, 'Other (enter below)')
|
(CAFE_STYLE, 'BLTC cafe pour over')
|
||||||
]
|
]
|
||||||
|
|
||||||
SEVEN_DAYS = 7
|
SEVEN_DAYS = 7
|
||||||
@ -114,11 +114,11 @@ class ContactForm(forms.Form):
|
|||||||
|
|
||||||
REFERAL_CHOICES = [
|
REFERAL_CHOICES = [
|
||||||
(GOOGLE, 'Google Search'),
|
(GOOGLE, 'Google Search'),
|
||||||
(SHOP, 'Better Living Through Coffee coffee shop'),
|
(SHOP, '"Better Living Through Coffee" coffee shop'),
|
||||||
(WOM, 'Friend/Relative'),
|
(WOM, 'Friend/Relative'),
|
||||||
(PRODUCT, 'Our Coffee Bag'),
|
(PRODUCT, 'Our Coffee Bag'),
|
||||||
(STORE, 'PT Food Coop/other store'),
|
(STORE, 'PT Food Coop/other store'),
|
||||||
(OTHER, 'Other (please describe in the Message section below'),
|
(OTHER, 'Other (please describe below)'),
|
||||||
]
|
]
|
||||||
|
|
||||||
first_name = forms.CharField()
|
first_name = forms.CharField()
|
||||||
|
|||||||
@ -4,8 +4,14 @@
|
|||||||
<article>
|
<article>
|
||||||
<header>
|
<header>
|
||||||
<h1>Contact us</h1>
|
<h1>Contact us</h1>
|
||||||
|
<h4>Problem with your online order or have a question?</h4>
|
||||||
|
<p>
|
||||||
|
Please contact us, we’re happy to help you over the phone<br>
|
||||||
|
<a href="tel:+13603855856">(360) 385-5856</a> between 8:00 am and 10:00 pm Pacific Time.
|
||||||
|
</p>
|
||||||
</header>
|
</header>
|
||||||
<section>
|
<section>
|
||||||
|
<p>Or send us a message using the form below and we'll email you back as soon as we can.</p>
|
||||||
<form action="{% url 'storefront:contact' %}" method="post" class="contact-form">
|
<form action="{% url 'storefront:contact' %}" method="post" class="contact-form">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{form.as_p}}
|
{{form.as_p}}
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
<p>{{product.description}}</p>
|
<p>{{product.description}}</p>
|
||||||
<p class="site__ft-stamp"><img class="fair_trade--small" src="{% static 'images/fair_trade_stamp.png' %}" alt="Fair trade"></p>
|
<p class="site__ft-stamp"><img class="fair_trade--small" src="{% static 'images/fair_trade_stamp.png' %}" alt="Fair trade"></p>
|
||||||
<p>$<strong>{{product.price}}</strong></p>
|
<p>$<strong>{{product.price}}</strong></p>
|
||||||
<p>{{product.weight.oz}} oz</p>
|
<p>{{product.weight.oz|floatformat}}oz</p>
|
||||||
<form class="product__form" method="post" action="{% url 'storefront:cart-add' product.pk %}">
|
<form class="product__form" method="post" action="{% url 'storefront:cart-add' product.pk %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form.as_p }}
|
{{ form.as_p }}
|
||||||
|
|||||||
@ -2,9 +2,6 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<article>
|
<article>
|
||||||
<header>
|
|
||||||
<h1>Coffee</h1>
|
|
||||||
</header>
|
|
||||||
<section class="product__list">
|
<section class="product__list">
|
||||||
{% for product in product_list %}
|
{% for product in product_list %}
|
||||||
<a class="product__item" href="{% url 'storefront:product-detail' product.pk %}">
|
<a class="product__item" href="{% url 'storefront:product-detail' product.pk %}">
|
||||||
@ -14,7 +11,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<h3>{{ product.name }}</h3>
|
<h3>{{ product.name }}</h3>
|
||||||
<p>{{product.description|truncatewords:20}}</p>
|
<p>{{product.description|truncatewords:20}}</p>
|
||||||
<p>$<strong>{{product.price}}</strong> | {{product.weight.oz}} oz</p>
|
<p>$<strong>{{product.price}}</strong> | {{product.weight.oz|floatformat}}oz</p>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
34
src/templates/account/email_confirm.html
Normal file
34
src/templates/account/email_confirm.html
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{% extends 'base.html' %}
|
||||||
|
|
||||||
|
{% load i18n %}
|
||||||
|
{% load account %}
|
||||||
|
|
||||||
|
{% block head_title %}{% trans "Confirm E-mail Address" %}{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<article>
|
||||||
|
<h1>{% trans "Confirm E-mail Address" %}</h1>
|
||||||
|
|
||||||
|
{% if confirmation %}
|
||||||
|
|
||||||
|
{% user_display confirmation.email_address.user as user_display %}
|
||||||
|
|
||||||
|
<p>{% blocktrans with confirmation.email_address.email as email %}Please confirm that <a href="mailto:{{ email }}">{{ email }}</a> is an e-mail address for user {{ user_display }}.{% endblocktrans %}</p>
|
||||||
|
|
||||||
|
<form method="post" action="{% url 'account_confirm_email' confirmation.key %}">
|
||||||
|
{% csrf_token %}
|
||||||
|
<p>
|
||||||
|
<button type="submit">{% trans 'Confirm' %}</button>
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
{% url 'account_email' as email_url %}
|
||||||
|
|
||||||
|
<p>{% blocktrans %}This e-mail confirmation link expired or is invalid. Please <a href="{{ email_url }}">issue a new e-mail confirmation request</a>.{% endblocktrans %}</p>
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
</article>
|
||||||
|
{% endblock %}
|
||||||
@ -1,7 +1,7 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<article class="panel">
|
<article>
|
||||||
<h1>Sign up</h1>
|
<h1>Sign up</h1>
|
||||||
|
|
||||||
<form method="post" action="{% url 'account_signup' %}">
|
<form method="post" action="{% url 'account_signup' %}">
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Eczar:wght@400;700&family=Inter:wght@100;400;700&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Vollkorn:wght@900&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
{% compress css %}
|
{% compress css %}
|
||||||
<link rel="stylesheet" type="text/css" href="{% static "styles/normalize.css" %}">
|
<link rel="stylesheet" type="text/css" href="{% static "styles/normalize.css" %}">
|
||||||
@ -79,8 +79,16 @@
|
|||||||
<section>
|
<section>
|
||||||
<p><button class="show-modal">Subscribe to our newsletter</button></p>
|
<p><button class="show-modal">Subscribe to our newsletter</button></p>
|
||||||
<p>
|
<p>
|
||||||
<small>Copyright © 2016-{% now "Y" %} Better Living Food Company Inc.</small><br>
|
<strong>Problem with your online order or have a question?</strong><br>
|
||||||
<small>Fair Trade | Organic | Port Townsend, WA 98368</small><br><br>
|
Please contact us, we’re happy to help you over the phone<br>
|
||||||
|
<a href="tel:+13603855856">(360) 385-5856</a> between 8:00 am and 10:00 pm Pacific Time.<br>
|
||||||
|
<address>100 Tyler St, Port Townsend, WA 98368</address>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<small>Copyright © 2016-{% now "Y" %} Better Living Food Company Inc.<br>
|
||||||
|
<a href="{% url 'storefront:contact' %}">Contact</a> | Fair Trade | Organic
|
||||||
|
</small>
|
||||||
|
<br><br>
|
||||||
<img class="site__ft-stamp" src="{% static 'images/fair_trade_stamp.png' %}" alt="Fair trade">
|
<img class="site__ft-stamp" src="{% static 'images/fair_trade_stamp.png' %}" alt="Fair trade">
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user