Spaces:
Build error
Build error
Commit
Β·
56d3d56
1
Parent(s):
a3db44b
update
Browse files- templates/index.html +15 -0
templates/index.html
CHANGED
|
@@ -13,6 +13,15 @@
|
|
| 13 |
height: 100vh;
|
| 14 |
margin: 0;
|
| 15 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
.container {
|
| 17 |
text-align: center;
|
| 18 |
background-color: #ffffff;
|
|
@@ -187,6 +196,12 @@
|
|
| 187 |
</div>
|
| 188 |
</div>
|
| 189 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 190 |
<form id="method-form" action="{{ url_for('index') }}" method="post" onsubmit="return validateForm();">
|
| 191 |
<label for="username">Hi there πππ ! What is your name?</label>
|
| 192 |
<input type="text" id="username" name="username" required>
|
|
|
|
| 13 |
height: 100vh;
|
| 14 |
margin: 0;
|
| 15 |
}
|
| 16 |
+
.error-message {
|
| 17 |
+
background-color: #ffebee;
|
| 18 |
+
color: #c62828;
|
| 19 |
+
padding: 10px;
|
| 20 |
+
border-radius: 5px;
|
| 21 |
+
margin-bottom: 20px;
|
| 22 |
+
text-align: left;
|
| 23 |
+
font-size: 16px;
|
| 24 |
+
}
|
| 25 |
.container {
|
| 26 |
text-align: center;
|
| 27 |
background-color: #ffffff;
|
|
|
|
| 196 |
</div>
|
| 197 |
</div>
|
| 198 |
|
| 199 |
+
{% if error %}
|
| 200 |
+
<div class="error-message">
|
| 201 |
+
{{ error }}
|
| 202 |
+
</div>
|
| 203 |
+
{% endif %}
|
| 204 |
+
|
| 205 |
<form id="method-form" action="{{ url_for('index') }}" method="post" onsubmit="return validateForm();">
|
| 206 |
<label for="username">Hi there πππ ! What is your name?</label>
|
| 207 |
<input type="text" id="username" name="username" required>
|