Commit 653d6958 authored by Titia de Castro's avatar Titia de Castro

added styles to announcement form

parent 7bf84245
...@@ -9,12 +9,11 @@ ...@@ -9,12 +9,11 @@
{% block content %} {% block content %}
<h1 class="announcement-heading">New Announcement</h1> <h1 class="announcement-heading">New Announcement</h1>
<form action="{% url 'announcements:new-announcement' %}" method="POST"> <form action="{% url 'announcements:new-announcement' %}" method="POST" class="announcement-form">
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<button class="announcement-button" type="submit">Save Announcement</button> <button class="announcement-button save-button" type="submit">Save Announcement</button>
<button class="announcement-button back-button" type="button"><a href="/announcements">Back to Announcements</a></button>
</form> </form>
<button class="announcement-button" type="submit"><a href="/announcements">Back to Announcements</a></button>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -20,5 +20,5 @@ ...@@ -20,5 +20,5 @@
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
<a href="/announcements/add" class="new-announcement">New Announcement</a> <a href="/announcements/add" class="announcement-button">New Announcement</a>
{% endblock %} {% endblock %}
\ No newline at end of file
No preview for this file type
...@@ -26,7 +26,8 @@ ...@@ -26,7 +26,8 @@
margin-bottom: 24px; margin-bottom: 24px;
} }
.new-announcement { .announcement-button {
background-color: transparent;
text-decoration: none; text-decoration: none;
color: black; color: black;
font-weight: 600; font-weight: 600;
...@@ -35,6 +36,20 @@ ...@@ -35,6 +36,20 @@
padding: 8px 24px; padding: 8px 24px;
} }
.announcement-button a {
text-decoration: none;
color: black;
}
.save-button {
margin-top: 32px;
}
.back-button {
margin-top: 32px;
margin-left: 24px;
}
.announcement-image { .announcement-image {
width: 20%; width: 20%;
} }
...@@ -66,3 +81,7 @@ ...@@ -66,3 +81,7 @@
.announcement-reactions p:last-child { .announcement-reactions p:last-child {
color: #B72A3F; color: #B72A3F;
} }
.announcement-form {
text-align: center;
}
\ 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