From ca54cfa436a4a2113917bac2e2425600878e2d8e Mon Sep 17 00:00:00 2001 From: Bobby Date: Fri, 18 Nov 2022 12:22:34 -0500 Subject: major UI change --- static/css/main.css | 78 +++++++++++--- static/css/old_ports.css | 10 ++ static/images/gifs/construction.gif | Bin 26873 -> 3581 bytes static/images/gifs/search.gif | Bin 0 -> 1239946 bytes static/images/gifs/search_32px.gif | Bin 0 -> 40824 bytes static/images/gifs/search_static.jpg | Bin 0 -> 24235 bytes static/images/gifs/search_static_32px.jpg | Bin 0 -> 1276 bytes static/images/site/icons/research.png | Bin 0 -> 2172 bytes templates/blog/home.html | 165 ++++++++++++++++-------------- templates/blog/partials/base.html | 88 ++++++++-------- templates/blog/partials/sidebar.html | 22 ++-- 11 files changed, 216 insertions(+), 147 deletions(-) create mode 100644 static/css/old_ports.css create mode 100644 static/images/gifs/search.gif create mode 100644 static/images/gifs/search_32px.gif create mode 100644 static/images/gifs/search_static.jpg create mode 100644 static/images/gifs/search_static_32px.jpg create mode 100644 static/images/site/icons/research.png diff --git a/static/css/main.css b/static/css/main.css index 6182d6e9..0fa669e9 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -4,7 +4,7 @@ body { background-attachment: fixed; background-position: center; background-size: cover; - font-family: 'Times New Roman', Times, serif; + /* font-family: 'Times New Roman', Times, serif; */ padding: 0; margin: 0; min-height: calc(100vh); @@ -39,10 +39,14 @@ h2 { font-size: 24px; } +a { + color: #636eb0; +} + .anavdef { - font-size: 16px; text-decoration: none; - color: #8278ed; + font-size: 14px; + font-family: 'TopNavbar', serif; } .anavdef:hover { @@ -62,21 +66,23 @@ fieldset { } .titlebar { - background: #160e32; padding: 8px 0px; padding-left: 10px; margin-bottom: 0px; margin-top: 0px; - text-transform: uppercase; - font-size: 12px; - color: #cecece; - font-weight: bold; - font-family: Arial, Helvetica, sans-serif; + font-size: 14px; + color: #fff; + background: #06022c; + background-image: linear-gradient(to right, #06022c 0%, black 100%); + text-transform: capitalize; } .area-content { padding: 10px; - background: #06080d; +} + +.area-bg { + background: #0c0c18; } .content { @@ -86,7 +92,7 @@ fieldset { } .alert { - background-color: #0c1221; + background-color: #06080d; padding: 20px; *padding: 20px; _padding: 20px; @@ -285,13 +291,12 @@ summary { .navitem { display: inline-block; - margin-left: 10px; - background: #0000FF; + background: #016dfe; color: #FFFFFF; - border-top: 2px solid #6666FF; - border-left: 2px solid #6666FF; - border-right: 2px solid #00007C; - border-bottom: 2px solid #00007C; + border-top: 2px solid #4d99ff; + border-left: 2px solid #4d99ff; + border-right: 2px solid #004eb6; + border-bottom: 2px solid #004eb6; position: relative; padding: 5px 10px 5px 10px; text-align: center; @@ -319,6 +324,45 @@ summary { padding: 4px 8px; } +.sbox { + display: inline-block; + background: #050b0f; + padding: 5px 10px; + font-size: 12px; + font-family: 'TopNavbar', serif; + border-bottom: 3px solid #848484; + border-right: 3px solid #848484; + border-left: 3px solid #424242; + border-top: 3px solid #424242; + margin: 0px; +} + +.sbox:focus { + outline: none; +} + +.sbtn { + outline: 0; + background: #016dfe; + cursor: pointer; + background-image: url('../images/gifs/search_static.jpg'); + background-repeat: no-repeat; + background-position: center; + background-size: contain; + height: 27px; + width: 48px; + display: inline-block; + vertical-align: middle; + border-top: 2px solid #4d99ff; + border-left: 2px solid #4d99ff; + border-right: 2px solid #004eb6; + border-bottom: 2px solid #004eb6; +} + +.sbtn:hover { + background-image: url('../images/gifs/search.gif'); +} + .ad { border: solid 1px #cecece; padding: 10px; diff --git a/static/css/old_ports.css b/static/css/old_ports.css new file mode 100644 index 00000000..054cb461 --- /dev/null +++ b/static/css/old_ports.css @@ -0,0 +1,10 @@ +.sbtn { + background-image: url('../images/gifs/search_static_32px.jpg'); +} +.sbtn:hover { + background-image: url('../images/gifs/search_32px.gif'); +} +.searchtable { + position: relative; + top: 8px; +} \ No newline at end of file diff --git a/static/images/gifs/construction.gif b/static/images/gifs/construction.gif index 3556ac01..715ed9cc 100644 Binary files a/static/images/gifs/construction.gif and b/static/images/gifs/construction.gif differ diff --git a/static/images/gifs/search.gif b/static/images/gifs/search.gif new file mode 100644 index 00000000..fa84a87b Binary files /dev/null and b/static/images/gifs/search.gif differ diff --git a/static/images/gifs/search_32px.gif b/static/images/gifs/search_32px.gif new file mode 100644 index 00000000..0b8b0b24 Binary files /dev/null and b/static/images/gifs/search_32px.gif differ diff --git a/static/images/gifs/search_static.jpg b/static/images/gifs/search_static.jpg new file mode 100644 index 00000000..fd7052db Binary files /dev/null and b/static/images/gifs/search_static.jpg differ diff --git a/static/images/gifs/search_static_32px.jpg b/static/images/gifs/search_static_32px.jpg new file mode 100644 index 00000000..37401d12 Binary files /dev/null and b/static/images/gifs/search_static_32px.jpg differ diff --git a/static/images/site/icons/research.png b/static/images/site/icons/research.png new file mode 100644 index 00000000..68bcaede Binary files /dev/null and b/static/images/site/icons/research.png differ diff --git a/templates/blog/home.html b/templates/blog/home.html index fea37ce0..eb823b18 100644 --- a/templates/blog/home.html +++ b/templates/blog/home.html @@ -1,92 +1,101 @@ {% extends 'blog/partials/base.html' %} {% block content %} {% load static %}
-
-

- Welcome to the home of That Computer Scientist. This is my personal - website where I share all of my thoughts, ideas, and experiences. To know - more about me, please visit my About page. If you - would like to connect with me, please visit my - Contact page. Please use the sidebar to navigate - the site. -

-

- This website is a work in progress. I am currently working on adding more - features to this website. I aim to build a retro looking personal website, - where I will share my articles and Ideas, which will be built entirely - around the idea of "collaborative writing" — where anyone can write new - articles or edit existing ones. -

+ +
+

Welcome

+
+

+ Welcome to the home of That Computer Scientist. This is my personal + website where I share all of my thoughts, ideas, and experiences. To know + more about me, please visit my About page. If you + would like to connect with me, please visit my + Contact page. Please use the sidebar to navigate + the site. +

+

+ This website is a work in progress. I am currently working on adding more + features to this website. I aim to build a retro looking personal website, + where I will share my articles and Ideas, which will be built entirely + around the idea of "collaborative writing" — where anyone can write new + articles or edit existing ones. +

+
+
- {% if announcements is not None %} -
- - - - -
    - {% for announcement in announcements %} -
  • - - - - - -
    - {% if announcement.is_new %} - - {% else %} - - {% endif %} - - {{ announcement.created_at | date:"M d, Y" }} -
    - {{ announcement.content }} -
    -
  • - {% endfor %} -
-
-
+ + {% load ad %} +
+ Ad +
+
- {% endif %} +
+
- {% load ad %} -
- Ad -
- {% if recent_posts %} -

Recent Posts

-
-
    - {% for post in recent_posts %} -
  • -

    - {{ post.title }} -

    -

    - Posted on {{ post.date | date:"M d, Y" }} by - {{ post.author }} in - {{ post.category }} -

    -
    -

    {{ post.excerpt | safe }}

    + + + {% if announcements is not None %} +
    +

    +
    + +
      + {% for announcement in announcements %} +
    • + + + + + +
      + {% if announcement.is_new %} + + {% else %} + + {% endif %} + + {{ announcement.created_at | date:"M d, Y" }} +
      + {{ announcement.content }} +
      +
    • + {% endfor %} +
    +
    -

    - Click here to continue - reading... -

    -
  • - {% endfor %} -
+
+
+ {% endif %} + + + {% if recent_posts %} +
+

Recent Posts

+
+ {% for post in recent_posts %} +

+ {{ post.title }} +

+

+ Posted on {{ post.date | date:"M d, Y" }} by + {{ post.author }} in + {{ post.category }} +

+
+

{{ post.excerpt | safe }}

+
+

+ Click here to continue reading... +

+ {% endfor %} +
+
{% endif %} +
{% endblock %} diff --git a/templates/blog/partials/base.html b/templates/blog/partials/base.html index 5fc4afbc..18f33d4c 100644 --- a/templates/blog/partials/base.html +++ b/templates/blog/partials/base.html @@ -5,54 +5,60 @@ - + That Computer Scientist - {{ title }} - - - - + {% if request.old_browser %} + + {% endif %} + + + +
- {% if not request.onclick or not request.old_browser %} - - Source Code - - {% else %} - - {% endif %} - {% if user.is_authenticated %} - {% if not request.onclick or not request.old_browser %} - Logout - {% else %} - - {% endif %} - {% endif %} + + + + + + +
+
+ + + + + +
+ + + +
+
+
+ {% if not request.onclick or not request.old_browser %} + + Source Code + + {% else %} + + {% endif %} + + {% if user.is_authenticated %} + {% if not request.onclick or not request.old_browser %} + Logout + {% else %} + + {% endif %} + {% endif %} +
+
diff --git a/templates/blog/partials/sidebar.html b/templates/blog/partials/sidebar.html index b3d8d4f1..dc036d3f 100644 --- a/templates/blog/partials/sidebar.html +++ b/templates/blog/partials/sidebar.html @@ -4,7 +4,7 @@ {% if not user.is_authenticated %}

Login

-
+
{% csrf_token %} @@ -32,7 +32,6 @@ {% endif %}
- {% comment %} Navigation Area {% endcomment %}
{% if user.is_authenticated %} @@ -40,7 +39,7 @@ {% else %}

Navigation

{% endif %} -
+
{% include 'blog/partials/sidebar.html' %}
{% block content %} {% endblock %}
@@ -86,19 +85,20 @@
{% comment %} Load Fake Ad {% endcomment %} - -
- {% load ad %} - Advertisement +
+

Advertisement

+
+ {% load ad %} + Advertisement +

- {% comment %} Archives {% endcomment %}

Archives

-
+
{% for archive in archives %} @@ -118,7 +118,7 @@

Categories

-
+
{% for category in categories %} @@ -138,7 +138,7 @@

Admin

-
+
{% if user.is_superuser %} -- cgit v1.2.3