diff --git a/static/images/coffee_sunrise.jpg b/static/images/coffee_sunrise.jpg new file mode 100644 index 0000000..4fa3c1f Binary files /dev/null and b/static/images/coffee_sunrise.jpg differ diff --git a/storefront/templates/storefront/subscription/ad.html b/storefront/templates/storefront/subscription/ad.html new file mode 100644 index 0000000..1016fbe --- /dev/null +++ b/storefront/templates/storefront/subscription/ad.html @@ -0,0 +1,110 @@ + + + + + Subscribe and save + + + + + + +
+
+

+ Better than an alarm clock,
+ and just as reliable. +

+
+
+

SAVE 10%

+

COFFEE SUBSCRIPTIONS ARE HERE →

+

Never run out of coffee with automatic delivery

+
+
Every:
+
7 days
14 days
30 days
+
+
+
+ + diff --git a/storefront/urls.py b/storefront/urls.py index 5508bcd..4608e35 100644 --- a/storefront/urls.py +++ b/storefront/urls.py @@ -107,6 +107,7 @@ urlpatterns = [ ), # Subscriptions path('subscriptions/', include([ + path('', views.SubscriptionAdView.as_view(), name='subscription-ad'), path( 'form/', views.SubscriptionFormView.as_view(), diff --git a/storefront/views.py b/storefront/views.py index 3c43e7b..174a4e9 100644 --- a/storefront/views.py +++ b/storefront/views.py @@ -555,6 +555,10 @@ class ReviewListView(TemplateView): template_name = 'storefront/reviews.html' +class SubscriptionAdView(TemplateView): + template_name = 'storefront/subscription/ad.html' + + class SubscriptionFormView(FormView): template_name = 'storefront/subscription/form.html' form_class = SubscriptionForm