Spaces:
Paused
Paused
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Generated Questions</title> | |
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet"> | |
<style> | |
body { | |
font-family: 'Roboto', sans-serif; | |
background-color: #f4f4f9; | |
margin: 0; | |
padding: 0; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
} | |
.container { | |
background-color: white; | |
padding: 2rem; | |
border-radius: 12px; | |
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); | |
max-width: 450px; | |
text-align: left; | |
transition: box-shadow 0.3s ease; | |
} | |
.container:hover { | |
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2); | |
} | |
h1 { | |
margin-bottom: 1.5rem; | |
font-weight: 500; | |
font-size: 1.75rem; | |
color: #333; | |
} | |
ul { | |
list-style: none; | |
padding: 0; | |
margin: 0; | |
} | |
ul li { | |
background-color: #e9e9e9; | |
padding: 1rem; | |
border-radius: 6px; | |
margin-bottom: 0.75rem; | |
font-size: 1rem; | |
color: #555; | |
transition: background-color 0.3s ease; | |
} | |
ul li:hover { | |
background-color: #d1d1d1; | |
} | |
a { | |
display: inline-block; | |
margin-top: 1.5rem; | |
text-decoration: none; | |
color: #5cb85c; | |
font-weight: bold; | |
font-size: 1rem; | |
padding: 0.75rem 1.5rem; | |
border: 2px solid #5cb85c; | |
border-radius: 6px; | |
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; | |
} | |
a:hover { | |
background-color: #5cb85c; | |
color: white; | |
border-color: #5cb85c; | |
} | |
@media (max-width: 480px) { | |
.container { | |
padding: 1.5rem; | |
max-width: 100%; | |
} | |
h1 { | |
font-size: 1.5rem; | |
} | |
ul li { | |
font-size: 0.9rem; | |
padding: 0.8rem; | |
} | |
a { | |
font-size: 0.9rem; | |
padding: 0.6rem 1.2rem; | |
} | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<h1>Generated Questions (seed: {{ seed }}) </h1> | |
<ul> | |
{% for question in questions %} | |
<li><strong>Question:</strong> {{ question["question"] }}</li> | |
{% if question["options"] %} | |
<li><strong>Options:</strong> | |
{% for option in question["options"].keys() %} | |
<br> | |
{{option}}: {{question["options"][option]}} | |
{% endfor %} | |
</li> | |
{% endif %} | |
<li><strong>Answer:</strong> {{ question["answer"] }}</li> | |
{% if question["correction"] %} | |
<li><strong>Correction:</strong> {{ question["correction"] }}</li> | |
{% endif %} | |
{% endfor %} | |
</ul> | |
<a href="/">Back to Home</a> | |
</div> | |
</body> | |
</html> | |