commit ba979363ee393d9915a10e637d04c7c360a30dec Author: mgeld Date: Mon Jul 13 02:38:11 2026 +0300 Каркас викторины: стартовый экран, стили, разметка трёх экранов diff --git a/README.md b/README.md new file mode 100644 index 0000000..739fc25 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# Викторина + +Небольшая браузерная викторина: 10 вопросов, четыре варианта ответа, счёт в конце. + +Запуск: открыть `index.html` в браузере. + +Проверка данных вопросов: `python check_questions.py` diff --git a/index.html b/index.html new file mode 100644 index 0000000..3a9f71d --- /dev/null +++ b/index.html @@ -0,0 +1,34 @@ + + + + + + Викторина + + + +
+

Викторина

+ +
+

Десять вопросов, четыре варианта ответа. Таймера нет — думайте спокойно.

+ +
+ + + + +
+ + + + + diff --git a/style.css b/style.css new file mode 100644 index 0000000..6b8e816 --- /dev/null +++ b/style.css @@ -0,0 +1,78 @@ +* { + box-sizing: border-box; + margin: 0; + padding: 0; +} + +body { + font-family: "Segoe UI", Arial, sans-serif; + background: #f4f5f7; + color: #222; + min-height: 100vh; + display: flex; + align-items: center; + justify-content: center; +} + +.wrap { + width: 100%; + max-width: 560px; + background: #fff; + border-radius: 12px; + box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); + padding: 32px; + margin: 24px; +} + +h1 { + font-size: 24px; + margin-bottom: 16px; +} + +h2 { + font-size: 19px; + margin-bottom: 16px; + line-height: 1.4; +} + +p { + line-height: 1.5; + margin-bottom: 16px; +} + +button { + font-size: 16px; + padding: 10px 22px; + border: none; + border-radius: 8px; + background: #2f6fed; + color: #fff; + cursor: pointer; +} + +button:hover { + background: #2558c4; +} + +#progress { + font-size: 13px; + color: #888; + margin-bottom: 12px; +} + +#q-options button { + display: block; + width: 100%; + text-align: left; + margin-bottom: 10px; + background: #eef1f6; + color: #222; +} + +#q-options button:hover { + background: #dce3ef; +} + +.hidden { + display: none; +}