Commit decc474c authored by Alia Lawraine Olay's avatar Alia Lawraine Olay

Edited CSS files for formatting

parent 46a9f2ba
h1 {
color: #33415c;
border-bottom: solid;
font-family: 'Tahoma';
font-size: 40pt;
}
h4 a{
background-color: #dae8ea;
padding: 15px;
text-decoration: none;
border-style: solid;
}
body {
background-color: #fefefe;
font-family: 'Trebuchet MS';
font-size: 12pt;
padding: 20pt;
}
p{
padding-left: 15pt;
color: #8e574c;
}
a:link {
color: #33415c;
text-decoration: none;
}
a:visited {
color: #5c677d
}
\ No newline at end of file
h1 { h1 {
color: #393d3f; color: #fefefe;
background-color: #6c7a84;
font-family: 'Tahoma'; font-family: 'Tahoma';
font-size: 35pt; font-size: 35pt;
line-height: 10px; line-height: 70pt;
padding-left: 10pt;
} }
h2 { h2{
color: #546a7b; color: #4f5b63;
font-family: 'Tahoma'; font-size: 25pt;
font-size: 20pt; line-height: 0pt;
padding-left: 10pt;
} }
h3 { h3 {
color: #546a7b; color: #8e574c;
font-family: 'Trebuchet MS';
font-size: 16pt;
font-style: italic; font-style: italic;
font-family: 'Trebuchet MS';
font-size: 18pt;
line-height: 0pt;
padding-left: 15pt;
}
h4 a{
background-color: #d4d9da;
padding: 15px;
text-decoration: none;
border-style: solid;
} }
body { body {
color: #393d3f; background-color: #fefefe;
font-family: 'Trebuchet MS'; font-family: 'Trebuchet MS';
font-size: 12pt; font-size: 12pt;
line-height: 15px;
} }
img { p{
height: 2cm; padding-left: 20pt;
color: rgb(51, 53, 53);
}
a:link {
color: #33415c;
text-decoration: none;
}
a:visited {
color: #5c677d
}
img{
height: 80px;
float: left;
padding-left: 10pt;
padding-right: 10pt;
padding-top: 5pt;
} }
\ No newline at end of file
h1 { h1 {
color: #22223b; color: #454545;
background-color: #93b7be;
font-family: 'Tahoma'; font-family: 'Tahoma';
font-size: 38pt; font-size: 45pt;
line-height: 80pt;
text-align: center;
} }
h3 { h3 {
color: #4a4e69; color: #4a4e69;
font-family: 'Trebuchet MS'; font-family: 'Trebuchet MS';
font-size: 18pt; font-size: 25pt;
line-height: 10pt;
}
h4 a{
background-color: #dae8ea;
padding: 15px;
text-decoration: none;
border-style: solid;
} }
body { body {
color: #4a4e69; background-color: #fefefe;
font-family: 'Trebuchet MS'; font-family: 'Trebuchet MS';
font-size: 12pt; font-size: 12pt;
} }
a:visited { ul{
margin-left: 15px;
line-height: 30px;
}
a:link {
color: #33415c;
text-decoration: none;
}
a:hover {
color: #723d46; color: #723d46;
}
a:visited {
color: #5c677d
} }
\ No newline at end of file
...@@ -21,12 +21,14 @@ ...@@ -21,12 +21,14 @@
<h2> <h2>
by {{ announcement.author.first_name }} {{ announcement.author.last_name }}, {{ announcement.pub_date|date:'d/m/Y' }} by {{ announcement.author.first_name }} {{ announcement.author.last_name }}, {{ announcement.pub_date|date:'d/m/Y' }}
</h2> </h2>
{{ announcement.announcement_body }} <p>{{ announcement.announcement_body }}</p>
<h3>Reactions:</h3> <br><h3>Reactions</h3>
<p>
Like: {{ count_like }}<br> Like: {{ count_like }}<br>
Love: {{ count_love }}<br> Love: {{ count_love }}<br>
Angry: {{ count_angry }} Angry: {{ count_angry }}
</p>
<br><br><br> <br><br><br>
<a href="{% url 'announcementboard:announcement-list' %}">Back to Announcement Board</a> <h4><a href="{% url 'announcementboard:announcement-list' %}">Back to Announcement Board</a></h4>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -4,22 +4,23 @@ ...@@ -4,22 +4,23 @@
{% block title %}Create Announcement{% endblock %} {% block title %}Create Announcement{% endblock %}
{% block styles %} {% block styles %}
<link rel="stylesheet" href="{% static 'announcementboard/css/detail_styles.css' %}"> <link rel="stylesheet" href="{% static 'announcementboard/css/create_styles.css' %}">
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<h1>New Announcement</h1> <h1>New Announcement</h1>
<p>
<form method="POST"> <form method="POST">
{% csrf_token %} {% csrf_token %}
<label for="{{ form.announcement_title.id_for_label }}">Announcement Title</label><br> <label for="{{ form.announcement_title.id_for_label }}">Announcement Title</label><br>
{{ form.announcement_title }}<br><br><br> {{ form.announcement_title }}<br><br>
<label for="{{ form.announcement_body.id_for_label }}">Announcement Body</label><br> <label for="{{ form.announcement_body.id_for_label }}">Announcement Body</label><br>
{{ form.announcement_body }}<br><br><br> {{ form.announcement_body }}<br><br>
<label for="{{ form.authot.id_for_label }}">Author</label><br> <label for="{{ form.authot.id_for_label }}">Author</label><br>
{{ form.author }}<br><br> {{ form.author }}<br><br>
<input type="submit" value="Save Announcement"> <input type="submit" value="Save Announcement">
</form> </form>
</p>
<a href="{% url 'announcementboard:announcement-list' %}">Back to Announcement Board</a> <br><h4><a href="{% url 'announcementboard:announcement-list' %}">Back to Announcement Board</a></h4>
{% endblock %} {% endblock %}
...@@ -11,13 +11,15 @@ ...@@ -11,13 +11,15 @@
{% block content %} {% block content %}
<h1>Announcement Board</h1> <h1>Announcement Board</h1>
<h3>Important announcements:</h3> <h3>Important announcements:</h3>
{% for object in object_list %} <ul>
<li> {% for object in object_list %}
<a href="{% url 'announcementboard:announcement-detail' pk=object.pk %}"> <li>
{{ object.announcement_title }} by {{ object.author.first_name }} {{ object.author.last_name }} dated {{ object.pub_date|date:"d/m/Y" }} <a href="{% url 'announcementboard:announcement-detail' pk=object.pk %}">
</a> {{ object.announcement_title }} by {{ object.author.first_name }} {{ object.author.last_name }} dated {{ object.pub_date|date:"d/m/Y" }}
</li> </a>
{% endfor %} </li>
<br><br><br> {% endfor %}
<a href="{% url 'announcementboard:announcement-create' %}">Add New Announcement</a> </ul>
<br>
<h4><a href="{% url 'announcementboard:announcement-create' %}">Add New Announcement</a></h4>
{% endblock %} {% endblock %}
<html lang="en"> <html lang="en">
<head> <head>
<link rel="stylesheet" href="styles.css">
<title>{% block title %}{% endblock %}</title> <title>{% block title %}{% endblock %}</title>
{% block styles %}{% endblock %} {% block styles %}{% endblock %}
</head> </head>
......
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