mirror of https://github.com/realaravinth/gitpad
feat: add error styling
parent
3b6a5938d7
commit
fdbd62a0a6
|
@ -157,6 +157,11 @@ main {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border: none;
|
border: none;
|
||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form__submit:hover {
|
||||||
|
background-color: #bb486b;
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
|
@ -202,3 +207,10 @@ footer {
|
||||||
margin: auto 5px;
|
margin: auto 5px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.error_container {
|
||||||
|
text-align: center;
|
||||||
|
color: #c00;
|
||||||
|
width: 100%;
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{% if error %}
|
{% if error %}
|
||||||
<div class="error_container">
|
<div class="error_container">
|
||||||
<h1 class="error-title"><.= title .>{{ error.title }}</h1>
|
<h3 class="error-title">ERROR: {{ error.title }}</h3>
|
||||||
<p class="error-message"><.= message .>{{ error.reason }}</p>
|
<p class="error-message">{{ error.reason }}</p>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue