Create templates/index.html
Browse files- templates/index.html +70 -0
templates/index.html
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 6 |
+
<title>Fortune Teller for Young Coders</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
</head>
|
| 9 |
+
<body class="bg-blue-100 min-h-screen flex items-center justify-center">
|
| 10 |
+
<div class="bg-white p-8 rounded shadow-md w-full max-w-md">
|
| 11 |
+
<h1 class="text-2xl font-bold mb-4 text-center">
|
| 12 |
+
Fortune Teller for Young Coders
|
| 13 |
+
</h1>
|
| 14 |
+
{% if fortune %}
|
| 15 |
+
<div class="bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded mb-4">
|
| 16 |
+
<p class="text-center">{{ fortune }}</p>
|
| 17 |
+
</div>
|
| 18 |
+
{% endif %}
|
| 19 |
+
{% if error %}
|
| 20 |
+
<div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded mb-4">
|
| 21 |
+
<p class="text-center">{{ error }}</p>
|
| 22 |
+
</div>
|
| 23 |
+
{% endif %}
|
| 24 |
+
<form action="/fortune" method="post" class="space-y-4">
|
| 25 |
+
<div>
|
| 26 |
+
<label for="birthday" class="block text-sm font-medium text-gray-700">
|
| 27 |
+
Enter Your Birthday
|
| 28 |
+
</label>
|
| 29 |
+
<input
|
| 30 |
+
type="date"
|
| 31 |
+
name="birthday"
|
| 32 |
+
id="birthday"
|
| 33 |
+
required
|
| 34 |
+
class="mt-1 block w-full px-3 py-2 border border-gray-300 rounded"
|
| 35 |
+
/>
|
| 36 |
+
</div>
|
| 37 |
+
<div>
|
| 38 |
+
<label for="standard" class="block text-sm font-medium text-gray-700">
|
| 39 |
+
Select Your Standard
|
| 40 |
+
</label>
|
| 41 |
+
<select
|
| 42 |
+
name="standard"
|
| 43 |
+
id="standard"
|
| 44 |
+
required
|
| 45 |
+
class="mt-1 block w-full px-3 py-2 border border-gray-300 rounded"
|
| 46 |
+
>
|
| 47 |
+
<option value="1st">1st</option>
|
| 48 |
+
<option value="2nd">2nd</option>
|
| 49 |
+
<option value="3rd">3rd</option>
|
| 50 |
+
<option value="4th">4th</option>
|
| 51 |
+
<option value="5th">5th</option>
|
| 52 |
+
<option value="6th">6th</option>
|
| 53 |
+
<option value="7th">7th</option>
|
| 54 |
+
<option value="8th">8th</option>
|
| 55 |
+
<option value="9th">9th</option>
|
| 56 |
+
<option value="10th">10th</option>
|
| 57 |
+
</select>
|
| 58 |
+
</div>
|
| 59 |
+
<div>
|
| 60 |
+
<button
|
| 61 |
+
type="submit"
|
| 62 |
+
class="w-full bg-blue-500 text-white px-4 py-2 rounded hover:bg-blue-600"
|
| 63 |
+
>
|
| 64 |
+
Reveal Your Fortune
|
| 65 |
+
</button>
|
| 66 |
+
</div>
|
| 67 |
+
</form>
|
| 68 |
+
</div>
|
| 69 |
+
</body>
|
| 70 |
+
</html>
|