aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-11-12 14:14:37 -0500
committerBobby <[email protected]>2022-11-12 14:14:37 -0500
commit55eba843c0d2fe55691578ac071407e3321edaeb (patch)
tree1acc69f8ba6235f1bfaee37db016a4dc54e948a5
parent80cde1427254ce4bab2f868ea9f79cf0cec93fe4 (diff)
downloadthatcomputerscientist-55eba843c0d2fe55691578ac071407e3321edaeb.tar.xz
thatcomputerscientist-55eba843c0d2fe55691578ac071407e3321edaeb.zip
changes to the announcement section
-rw-r--r--static/css/main.css26
-rw-r--r--static/images/gifs/hand.gifbin0 -> 1652 bytes
-rw-r--r--static/images/gifs/megaphone.gifbin0 -> 5836 bytes
-rw-r--r--templates/blog/home.html19
4 files changed, 28 insertions, 17 deletions
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
--- /dev/null
+++ b/static/images/gifs/hand.gif
Binary files differ
diff --git a/static/images/gifs/megaphone.gif b/static/images/gifs/megaphone.gif
new file mode 100644
index 00000000..5732ed72
--- /dev/null
+++ b/static/images/gifs/megaphone.gif
Binary files 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 %}
<fieldset>
<legend>
- <img src = "{% static 'images/gifs/update.gif' %}" height="16px">
+ <img src = "{% static 'images/gifs/update.gif' %}" height="16px" width="80px" class="updates">
</legend>
<marquee behavior="scroll" direction="up" height="250" scrollamount="2" scrolldelay="10" onmouseover="this.stop()" onmouseout="this.start()">
<ul class="announcements">
{% for announcement in announcements %}
- <li {% if announcement.is_new %}class="newac"{% endif %}>
- <b>{{ announcement.created_at | date:"M d, Y" }}</b> {{ announcement.content }}
+ <li style="margin-bottom: 20px;">
+ <table>
+ <tr>
+ <td width="30px">
+ {% if announcement.is_new %}
+ <img class="ac" src="{% static 'images/gifs/new_announcement.gif' %}"/>
+ {% else %}
+ <img class="ac2" src="{% static 'images/gifs/hand.gif' %}"/>
+ {% endif %}
+ </td>
+ <td style="color: white;">
+ <b>{{ announcement.created_at | date:"M d, Y" }}</b> {{ announcement.content }}
+ </td>
+ </tr>
+ </table>
</li>
{% endfor %}
</ul>