From c94cbe3722336a1754d9cb355e7117df3a55c281 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Sun, 1 Nov 2020 17:39:10 +0100 Subject: [PATCH] Introduce very basic template extension --- shorturl/templates/base-layout.html | 38 ++++++++++++++++ shorturl/templates/card.html | 24 ++++++++++ shorturl/templates/index.html | 68 +++-------------------------- 3 files changed, 69 insertions(+), 61 deletions(-) create mode 100644 shorturl/templates/base-layout.html create mode 100644 shorturl/templates/card.html diff --git a/shorturl/templates/base-layout.html b/shorturl/templates/base-layout.html new file mode 100644 index 0000000..4d92dbd --- /dev/null +++ b/shorturl/templates/base-layout.html @@ -0,0 +1,38 @@ +{% load static %} + + + + + + Hello World! + + + + + + + + +
+
+
Shorturl service
+ + Sign up +
+
+ +
+ {% block container %} + {% endblock %} +
+ + + + + diff --git a/shorturl/templates/card.html b/shorturl/templates/card.html new file mode 100644 index 0000000..f92512a --- /dev/null +++ b/shorturl/templates/card.html @@ -0,0 +1,24 @@ +{% extends "base-layout.html" %} +{% block container %} + +
+ +
+
+

Huhu

+
+
+

$29 / mo

+
    +
  • 30 users included
  • +
  • 15 GB of storage
  • +
  • Phone and email support
  • +
  • Help center access
  • +
+ +
+
+ +
+ +{% endblock %} diff --git a/shorturl/templates/index.html b/shorturl/templates/index.html index e01a295..c8131a5 100644 --- a/shorturl/templates/index.html +++ b/shorturl/templates/index.html @@ -1,63 +1,9 @@ -{% load static %} - - - - - - Hello World! - - - - - - - +{% extends "base-layout.html" %} +{% block container %} -
-
-
Company name
- - Sign up -
-
+
+

Shorturl Service

+

Get your own shorturl here!

+
-
-

Shorturl Service

-

Get your own shorturl here!

-
- -
-
- -
-
-

Huhu

-
-
-

$29 / mo

-
    -
  • 30 users included
  • -
  • 15 GB of storage
  • -
  • Phone and email support
  • -
  • Help center access
  • -
- -
-
- -
-
- - - - - +{% endblock %}