diff options
| author | Bobby <[email protected]> | 2023-05-04 01:50:04 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-05-04 01:50:04 -0400 |
| commit | 0bb872c7e9bcd5528b8b0577907206aecc3e60ff (patch) | |
| tree | 43aa012b9cc8fa460625a19412a17e7d91552682 | |
| parent | 1683c5b80e299a7034083d3cd7040c94a49a9954 (diff) | |
| download | thatcomputerscientist-0bb872c7e9bcd5528b8b0577907206aecc3e60ff.tar.xz thatcomputerscientist-0bb872c7e9bcd5528b8b0577907206aecc3e60ff.zip | |
Announcements section update
| -rw-r--r-- | static/css/home.css | 33 | ||||
| -rw-r--r-- | static/images/backgrounds/announcements.png | bin | 0 -> 401476 bytes | |||
| -rw-r--r-- | static/images/backgrounds/announcements_border.png | bin | 0 -> 175090 bytes | |||
| -rw-r--r-- | static/images/backgrounds/futaba_main.png | bin | 232071 -> 0 bytes | |||
| -rw-r--r-- | static/images/backgrounds/futaba_mike.png | bin | 130944 -> 0 bytes | |||
| -rw-r--r-- | templates/blog/home.html | 17 |
6 files changed, 42 insertions, 8 deletions
diff --git a/static/css/home.css b/static/css/home.css index ef9b77d1..48462903 100644 --- a/static/css/home.css +++ b/static/css/home.css @@ -15,3 +15,36 @@ width: 550px; margin: 12px 0px 12px 140px; } + +#announcements { + background: url('../images/backgrounds/announcements.png') no-repeat; + background-size: 730px 300px; + position: relative; + margin-top: 15px; + width: 730px; + height: 300px; +} + +#update-gif { + height: 14px; + display: block; + position: relative; + left: 68px; + top: 11px; +} + +marquee { + border: 15px solid transparent; + border-radius: 4px; + padding: 15px; + border-image: url('../images/backgrounds/announcements_border.png') 50 round; + width: 480px; + height: 180px; + position: relative; + left: 70px; + top: 23px; +} + +marquee > ul { + text-align: justify; +} diff --git a/static/images/backgrounds/announcements.png b/static/images/backgrounds/announcements.png Binary files differnew file mode 100644 index 00000000..065da0de --- /dev/null +++ b/static/images/backgrounds/announcements.png diff --git a/static/images/backgrounds/announcements_border.png b/static/images/backgrounds/announcements_border.png Binary files differnew file mode 100644 index 00000000..92cc03a6 --- /dev/null +++ b/static/images/backgrounds/announcements_border.png diff --git a/static/images/backgrounds/futaba_main.png b/static/images/backgrounds/futaba_main.png Binary files differdeleted file mode 100644 index 739329d0..00000000 --- a/static/images/backgrounds/futaba_main.png +++ /dev/null diff --git a/static/images/backgrounds/futaba_mike.png b/static/images/backgrounds/futaba_mike.png Binary files differdeleted file mode 100644 index baacebf5..00000000 --- a/static/images/backgrounds/futaba_mike.png +++ /dev/null diff --git a/templates/blog/home.html b/templates/blog/home.html index 571eb2bb..7252736c 100644 --- a/templates/blog/home.html +++ b/templates/blog/home.html @@ -13,13 +13,12 @@ Also, To participate around various sections of the site, you will need to <a href="{% url 'blog:register' %}">register</a> for an account. I hope you enjoy your stay here. </p> </div> -<img src="{% static 'images/gifs/construction.gif' %}" style="width: 720px;"> - -{% if announcements is not None %} -<div id="announcements" class="mtctitem"> - <h2><img src = "{% static 'images/gifs/update.gif' %}" style="height: 14px;"></h2> - <marquee behavior="scroll" direction="up" height="250" width="720" scrollamount="2" scrolldelay="20" onmouseover="this.stop()" onmouseout="this.start()"> - <ul style="width: 720px;"> +<img src="{% static 'images/gifs/construction.gif' %}" style="width: 730px;"> +<div id="announcements"> + <img src = "{% static 'images/gifs/update.gif' %}" style="height: 14px;" id="update-gif"> + {% if announcements is not None %} + <marquee behavior="scroll" direction="up" scrollamount="2" scrolldelay="20" onmouseover="this.stop()" onmouseout="this.start()"> + <ul> {% for announcement in announcements %} <li> <span> @@ -37,8 +36,10 @@ {% endfor %} </ul> </marquee> + {% endif %} </div> -{% endif %} + +{% comment %} {% endcomment %} <div id="fake-banner-ad" class="mtctitem"> {% comment %} <h2>Advertisement</h2> {% endcomment %} {% load ad %} |
