feat: add error styling

master
Aravinth Manivannan 2022-02-23 08:07:37 +05:30
parent 3b6a5938d7
commit fdbd62a0a6
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
2 changed files with 14 additions and 2 deletions

View File

@ -157,6 +157,11 @@ main {
color: #fff;
border: none;
padding: 5px 0;
cursor: pointer;
}
.form__submit:hover {
background-color: #bb486b;
}
footer {
@ -202,3 +207,10 @@ footer {
margin: auto 5px;
height: 20px;
}
.error_container {
text-align: center;
color: #c00;
width: 100%;
margin: 10px 0;
}

View File

@ -1,6 +1,6 @@
{% if error %}
<div class="error_container">
<h1 class="error-title"><.= title .>{{ error.title }}</h1>
<p class="error-message"><.= message .>{{ error.reason }}</p>
<h3 class="error-title">ERROR: {{ error.title }}</h3>
<p class="error-message">{{ error.reason }}</p>
</div>
{% endif %}