From e9ef11bc46740960f24fc992d09d646998f1583f Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Sat, 6 Aug 2022 16:17:18 +0300 Subject: [PATCH] Created homepage --- main/views.py | 2 +- static/css/index.css | 5 +++++ static/css/layout.css | 6 +++++- templates/layout.html | 8 +++----- templates/main/index.html | 8 ++++++-- 5 files changed, 20 insertions(+), 9 deletions(-) create mode 100644 static/css/index.css diff --git a/main/views.py b/main/views.py index bfd56a2..b94cd80 100644 --- a/main/views.py +++ b/main/views.py @@ -3,4 +3,4 @@ from django.shortcuts import render def index(request): """Homepage""" - return render(request, 'main/index.html', {'title': 'Homepage'}) + return render(request, 'main/index.html', {'title': 'Kristofers Solo Webpage'}) diff --git a/static/css/index.css b/static/css/index.css new file mode 100644 index 0000000..ec8716e --- /dev/null +++ b/static/css/index.css @@ -0,0 +1,5 @@ +p { + font-size: 20px; + text-align: center; + margin-top: 10px; +} diff --git a/static/css/layout.css b/static/css/layout.css index 2ae4117..d597868 100644 --- a/static/css/layout.css +++ b/static/css/layout.css @@ -120,7 +120,7 @@ li { font-size: 18px; float: left; display: inline-block; - width: 20%; + width: calc(100% / 2); } li a { @@ -160,3 +160,7 @@ footer { justify-content: space-around; padding: 8px 0; } + +footer p { + font-size: 16px; +} diff --git a/templates/layout.html b/templates/layout.html index 3b8d9ad..a7cbfd6 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -8,7 +8,7 @@ content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" /> {% block title %}{% endblock %} - + {% block meta %}{% endblock %} @@ -18,9 +18,7 @@
@@ -28,7 +26,7 @@
{% block content %}{% endblock %}