From f02ec70ab1bd137bb57d179e2500255c557feb02 Mon Sep 17 00:00:00 2001 From: Dorian Lesbre <dorian.lesbre@gmail.com> Date: Thu, 24 Dec 2020 10:47:55 +0100 Subject: [PATCH] Added basic CSS --- home/static/css/style.css | 15 ++++++++++++++- home/templates/home.html | 7 +++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/home/static/css/style.css b/home/static/css/style.css index d75f6ef..1157666 100644 --- a/home/static/css/style.css +++ b/home/static/css/style.css @@ -15,6 +15,19 @@ a:link { color: rgb(62, 62, 255); } +.header { + background-color: #006809; + margin-top: 0; + padding: 5px 5px 20px 20px; +} + +.header h1, .header h1 a, .header h1 a:visited, .header h1 a:active { + color: #ddd; + font-size: 60px; + text-decoration: none; + text-align: center; +} + section { text-align: justify; } @@ -23,11 +36,11 @@ section > * { max-width: 960px; margin-left: calc(50% - 480px); + margin-right: calc(50% - 480px); padding-left: 60px; padding-right: 60px; } section p { - padding-bottom: 20px; font-size: 1rem; } \ No newline at end of file diff --git a/home/templates/home.html b/home/templates/home.html index a5ffe09..2192992 100644 --- a/home/templates/home.html +++ b/home/templates/home.html @@ -3,11 +3,18 @@ <html lang=fr> <head> <title>Site title</title> + <meta name="description" content="Site description"> + <meta name="keywords" content="Keywords for search"> <meta charset="utf-8"> <link rel="stylesheet" href="{% static 'css/style.css' %}"> </head> <body> + <header> + <div class="header"> + <h1><a href="/">The site's title</a></h1> + </div> + </header> <section> <h1>A Title</h1> <p>a paragraph</p> -- GitLab