Spaces:
Paused
Paused
File size: 3,344 Bytes
2a5fe11 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
<!DOCTYPE html>
<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>
|