From 6464703381a46bbd6ec90d4ca43d6abed7ddb53c Mon Sep 17 00:00:00 2001 From: jmsgrogan Date: Sun, 18 Feb 2024 09:57:34 +0000 Subject: [PATCH] Add image upload and fix css --- wedding_site/primary/static/primary/style.css | 42 ++++++++----------- .../primary/templates/page_header.html | 4 +- wedding_site/primary/urls.py | 3 +- wedding_site/primary/utils.py | 32 +++++++++++++- wedding_site/primary/views.py | 13 +++--- 5 files changed, 57 insertions(+), 37 deletions(-) diff --git a/wedding_site/primary/static/primary/style.css b/wedding_site/primary/static/primary/style.css index 8e17fb4..8384158 100755 --- a/wedding_site/primary/static/primary/style.css +++ b/wedding_site/primary/static/primary/style.css @@ -31,6 +31,16 @@ body { url('images/Background.png'); } +img { + margin:0 auto; + width: 100%; + display: flex; + justify-content: center; + max-height:300px; + border-radius: 8px; + box-shadow: 0 4px 8px 0; + } + .site-tagline{ text-align: center; margin-top: 140px; @@ -53,14 +63,14 @@ body { bottom: -30px; } -ul { +.nav-ul { list-style-type: none; margin: 0 auto; padding: 0; overflow: hidden; } -li { +.nav-li { display: inline; float: left; } @@ -80,29 +90,21 @@ li { text-decoration: none; font-size: 24px; font-family: GlacialIndifference; + font-style: normal; } -.standard-a { +a { color: black; text-decoration: none; font-style: italic; } -.standard-a:hover { +a:hover { text-decoration: underline; } -.biglink-a { - color: black; - text-decoration: none; -} - -.biglink-a:hover { - text-decoration: underline; -} - -li a:hover { - text-decoration: underline; +ul { + list-style-position: inside; } .login-input{ @@ -146,16 +148,6 @@ input[type=submit] { font-family: GlacialIndifference; } -.jumbo-image { - margin:0 auto; - width: 100%; - display: flex; - justify-content: center; - max-height:300px; - border-radius: 8px; - box-shadow: 0 4px 8px 0; - } - .signature{ font-family: Emitha-Script; font-size: 50px; diff --git a/wedding_site/primary/templates/page_header.html b/wedding_site/primary/templates/page_header.html index ae3975d..116e68f 100644 --- a/wedding_site/primary/templates/page_header.html +++ b/wedding_site/primary/templates/page_header.html @@ -1,8 +1,8 @@