Commit d5f12d3e authored by Kyla Martin's avatar Kyla Martin

Add static image, remove unnecessary lines

parent ef6517e9
...@@ -10,6 +10,10 @@ h1{ ...@@ -10,6 +10,10 @@ h1{
text-align: center; text-align: center;
} }
#back{
padding: 2rem 0;
}
#title{ #title{
margin: 20px 0 10px 0; margin: 20px 0 10px 0;
} }
...@@ -19,7 +23,6 @@ h1{ ...@@ -19,7 +23,6 @@ h1{
text-align: center; text-align: center;
} }
.reactions{ .reactions{
background-color:gainsboro; background-color:gainsboro;
padding: 5px; padding: 5px;
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
{% load static %} {% load static %}
{% block styles %} {% block styles %}
<link rel="stylesheet" type="text/css" href="{% static 'Announcements/index.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'Announcements/styles.css' %}"> <link rel="stylesheet" type="text/css" href="{% static 'Announcements/styles.css' %}">
{% endblock %} {% endblock %}
...@@ -13,15 +12,17 @@ ...@@ -13,15 +12,17 @@
{% block content %} {% block content %}
<article> <article>
<div id="back"><a href="/announcements">Back to all announcements</a></div> <div id="back"><a href="/announcements">Back to all announcements</a></div>
<div align="center"><img id="header" src="{% static 'Announcements/header.png' %}" alt="a header"></div>
<h1 id="title">{{ announcement.announcement_title}}</h1> <h1 id="title">{{ announcement.announcement_title}}</h1>
<h4 id="subtitle">by {{ announcement.author.first_name}} {{ announcement.author.last_name }}, {{ announcement.pub_date|date:"d/m/Y" }}</h4> <h4 id="subtitle">by {{ announcement.author.first_name}} {{ announcement.author.last_name }}, {{ announcement.pub_date|date:"d/m/Y" }}</h4>
<p class="body">{{ announcement.announcement_body }}</p> <p class="body">{{ announcement.announcement_body }}</p>
<p class="reactions"> <div id="reactions-container" align="center">
{% for reactions in reaction_sorted %} <p class="reactions">{% for reactions in reaction_sorted %}
<strong>{{ reactions.reaction_name }}</strong>: {{ reactions.tally }} <strong>{{ reactions.reaction_name }}</strong>: {{ reactions.tally }}
{% endfor %} {% endfor %}
</p> </p>
</div>
</article> </article>
{% endblock %} {% endblock %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment