From 7b89b8420b6fc384149f5c1d4d5545c0654e3055 Mon Sep 17 00:00:00 2001 From: grgr Date: Fri, 21 Oct 2022 18:43:06 +0200 Subject: [PATCH] index template --- static/css/style.css | 7 +++++++ templates/base.html | 16 ++++++++++++++++ templates/index.html | 8 +++++++- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 static/css/style.css create mode 100644 templates/base.html diff --git a/static/css/style.css b/static/css/style.css new file mode 100644 index 0000000..d1da9c6 --- /dev/null +++ b/static/css/style.css @@ -0,0 +1,7 @@ +:root { + --red : rgb(238, 77, 48); +} + +body{ + color: var(--red); +} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..b29bd1c --- /dev/null +++ b/templates/base.html @@ -0,0 +1,16 @@ + + + + + + + + Crunch + + +
+

{% block title %}{% endblock %}

+
+ {% block content %}{% endblock %} + + \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 653deba..8101671 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1 +1,7 @@ -

hello

\ No newline at end of file +{% extends 'base.html' %} + +{% block title %} Critical evaluation of crunchiness {% endblock %} + +{% block content %} + +{% endblock %} \ No newline at end of file