From 55eba843c0d2fe55691578ac071407e3321edaeb Mon Sep 17 00:00:00 2001 From: Bobby Date: Sat, 12 Nov 2022 14:14:37 -0500 Subject: changes to the announcement section --- static/css/main.css | 26 ++++++++++++-------------- static/images/gifs/hand.gif | Bin 0 -> 1652 bytes static/images/gifs/megaphone.gif | Bin 0 -> 5836 bytes templates/blog/home.html | 19 ++++++++++++++++--- 4 files changed, 28 insertions(+), 17 deletions(-) create mode 100644 static/images/gifs/hand.gif create mode 100644 static/images/gifs/megaphone.gif diff --git a/static/css/main.css b/static/css/main.css index 62093d11..051465b0 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -32,14 +32,6 @@ h1, h2, h3, h4, h5, h6, p, a, li, span, label, footer, .table { a { color: #8278ed; } -/* -a:visited { - color: #b894dc; -} */ - -/* svg { - filter: invert(1); -} */ fieldset, legend { color: #cecece; @@ -128,6 +120,11 @@ fieldset { color: rgb(255, 81, 81); } +.updates { + width: 80px; + height: 16px; +} + .success { color: green; } @@ -398,14 +395,15 @@ pre { margin: 0; } -.announcements > li::before { - content: '📢'; +.ac { margin-right: 5px; - height: 16px; + height: 12px; + width: 30px; } -.announcements > li.newac::before { - content: url('../images/gifs/new_announcement.gif'); +.ac2 { margin-right: 5px; - height: 16px; + width: 30px; + height: 14px; } + diff --git a/static/images/gifs/hand.gif b/static/images/gifs/hand.gif new file mode 100644 index 00000000..cc12290e Binary files /dev/null and b/static/images/gifs/hand.gif differ diff --git a/static/images/gifs/megaphone.gif b/static/images/gifs/megaphone.gif new file mode 100644 index 00000000..5732ed72 Binary files /dev/null and b/static/images/gifs/megaphone.gif differ diff --git a/templates/blog/home.html b/templates/blog/home.html index c8b0fa4f..cfce7399 100644 --- a/templates/blog/home.html +++ b/templates/blog/home.html @@ -30,13 +30,26 @@ {% if announcements is not None %}
- +
    {% for announcement in announcements %} -
  • - {{ announcement.created_at | date:"M d, Y" }} {{ announcement.content }} +
  • + + + + + +
    + {% if announcement.is_new %} + + {% else %} + + {% endif %} + + {{ announcement.created_at | date:"M d, Y" }} {{ announcement.content }} +
  • {% endfor %}
-- cgit v1.2.3