home.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!DOCTYPE html>
  2. <html lang="en" x-data="{zacalqiz: false}">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
  7. <title>Kvíz: Který učitel na GJS jsi ty?</title>
  8. <script src="https://cdn.tailwindcss.com"></script>
  9. <script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
  10. <style>
  11. body { background-color: #f0f4f8; }
  12. .gjs-blue { background-color: #0055a4; }
  13. .card { border-radius: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
  14. </style>
  15. </head>
  16. <body>
  17. <template x-if="!zacalqiz">
  18. <div>
  19. <div >
  20. <h1>silly_qiz</h1>
  21. <h3 class="rainbow">toto bude mega giga silly qiz, aby jste mohli zjistit který z učítelů gimjs jste :3</h3>
  22. <a href="{{ url_for('questions.index') }}">Začít kvíz</a>
  23. </div>
  24. </div>
  25. </template>
  26. <template x-if="zacalqiz">
  27. <div class="flex flex-col items-center justify-center min-h-screen p-4">
  28. <div class="card bg-white w-full max-w-lg p-6 border-t-8 border-blue-700">
  29. <h1 class="text-2xl font-bold text-center text-gray-800 mb-8">
  30. Který učitel na GJS jsi ty?
  31. </h1>
  32. <div class="mb-8">
  33. <p class="text-lg font-semibold text-gray-700 mb-4 text-center">
  34. Lorem ipsum dolor sit amet, consectetur?
  35. </p>
  36. <div class="space-y-3">
  37. <label class="block p-3 border rounded-lg cursor-pointer hover:bg-blue-50 transition">
  38. <input type="radio" name="q1" class="mr-2"> Lorem ipsum dolor
  39. </label>
  40. <label class="block p-3 border rounded-lg cursor-pointer hover:bg-blue-50 transition">
  41. <input type="radio" name="q1" class="mr-2"> Sit amet consectetur
  42. </label>
  43. <label class="block p-3 border rounded-lg cursor-pointer hover:bg-blue-50 transition">
  44. <input type="radio" name="q1" class="mr-2"> Adipiscing elit
  45. </label>
  46. <label class="block p-3 border rounded-lg cursor-pointer hover:bg-blue-50 transition">
  47. <input type="radio" name="q1" class="mr-2"> Sed do eiusmod
  48. </label>
  49. </div>
  50. </div>
  51. <div class="flex justify-between mt-10">
  52. <button class="px-6 py-2 bg-gray-200 text-gray-700 rounded font-bold hover:bg-gray-300 transition">
  53. Předchozí
  54. </button>
  55. <button class="px-6 py-2 gjs-blue text-white rounded font-bold hover:opacity-90 transition">
  56. Další
  57. </button>
  58. </div>
  59. </div>
  60. </div>
  61. </template>
  62. <button @click="zacalqiz = ! zacalqiz">Toggle Content</button>
  63. </body>
  64. </html>