69 lines
1.8 KiB
HTML
69 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Would You Rather</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
</head>
|
|
<body>
|
|
|
|
<header class="app-header">
|
|
<a class="brand" href="{{ url_for('public.home') }}">wyr</a>
|
|
<nav class="site-nav">
|
|
<a href="{{ url_for('admin.dashboard') }}">Admin</a>
|
|
</nav>
|
|
</header>
|
|
|
|
<main class="page">
|
|
{% if question %}
|
|
<section class="main-card vote-panel">
|
|
<p class="eyebrow">Daily question</p>
|
|
<h1 class="question-title">{{ question.question }}</h1>
|
|
|
|
<form class="vote-form" action="{{ url_for('public.vote') }}" method="POST">
|
|
|
|
<input
|
|
type="hidden"
|
|
name="qid"
|
|
value="{{ question.id }}"
|
|
>
|
|
|
|
<button
|
|
class="vote-button"
|
|
type="submit"
|
|
name="vote"
|
|
value="A"
|
|
>
|
|
<span>Option A</span>
|
|
{{ question.option_a }}
|
|
</button>
|
|
|
|
<button
|
|
class="vote-button"
|
|
type="submit"
|
|
name="vote"
|
|
value="B"
|
|
>
|
|
<span>Option B</span>
|
|
{{ question.option_b }}
|
|
</button>
|
|
|
|
</form>
|
|
</section>
|
|
{% else %}
|
|
<section class="main-card empty-state">
|
|
<p class="eyebrow">Daily question</p>
|
|
<h1 class="question-title">No question is scheduled yet.</h1>
|
|
<p>Check back soon.</p>
|
|
</section>
|
|
{% endif %}
|
|
</main>
|
|
|
|
<footer class="app-footer">
|
|
<span>one vote</span>
|
|
<span>per question</span>
|
|
</footer>
|
|
|
|
</body>
|
|
</html>
|