From d0cc70333491e846c9db83f72408ecddcc3d42a1 Mon Sep 17 00:00:00 2001 From: Bobby Date: Wed, 3 May 2023 23:15:05 -0400 Subject: Updated welcome header --- static/css/home.css | 17 +++++++++++++++++ static/images/backgrounds/welcome-banner.png | Bin 0 -> 1727378 bytes templates/blog/home.html | 4 ++-- templates/blog/partials/sidebar.html | 2 +- 4 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 static/css/home.css create mode 100644 static/images/backgrounds/welcome-banner.png diff --git a/static/css/home.css b/static/css/home.css new file mode 100644 index 00000000..2b749c03 --- /dev/null +++ b/static/css/home.css @@ -0,0 +1,17 @@ +#welcome { + width: 730px; + height: calc(262px - 40px); + background: url('../images/backgrounds/welcome-banner.png') no-repeat; + background-size: 730px 262px; + margin: auto; + padding: 40px 0px 0px 0px; + border: 0px; + position: relative; + margin-top: 15px; + text-align: justify; +} + +#welcome > p { + width: 500px; + margin: 12px 0px 12px 98px; +} diff --git a/static/images/backgrounds/welcome-banner.png b/static/images/backgrounds/welcome-banner.png new file mode 100644 index 00000000..80d82681 Binary files /dev/null and b/static/images/backgrounds/welcome-banner.png differ diff --git a/templates/blog/home.html b/templates/blog/home.html index c8b012d0..9b8bd953 100644 --- a/templates/blog/home.html +++ b/templates/blog/home.html @@ -1,7 +1,7 @@ {% extends 'blog/partials/base.html' %} {% block content %} {% load static %} +
-

Welcome

Welcome to the home of That Computer Scientist. My name is @bobby, and this is my personal website. I aim to build a retro looking personal website, where I share my thoughts, ideas, and experiences through articles, and will showcase some cool nostalgic features and tools. @@ -12,8 +12,8 @@

Also, To participate around various sections of the site, you will need to register for an account. I hope you enjoy your stay here.

-
+ {% if announcements is not None %}
diff --git a/templates/blog/partials/sidebar.html b/templates/blog/partials/sidebar.html index ec0486b6..9b15eb2f 100644 --- a/templates/blog/partials/sidebar.html +++ b/templates/blog/partials/sidebar.html @@ -39,7 +39,7 @@ {% endif %} {% if user.is_authenticated %} -
+

Hello, {{ user.username }}!

  • -- cgit v1.2.3