Update templates/result.html
Browse files- templates/result.html +46 -20
templates/result.html
CHANGED
@@ -1,29 +1,55 @@
|
|
1 |
-
<!
|
2 |
-
<html lang="
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
-
<title
|
7 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
</head>
|
9 |
<body>
|
10 |
<div class="container">
|
11 |
-
<h1
|
12 |
-
<
|
13 |
-
|
14 |
-
<p>正解です!</p>
|
15 |
-
{% else %}
|
16 |
-
<p>不正解です。</p>
|
17 |
-
{% endif %}
|
18 |
-
<p>あなたの解答: {{ user_input }}</p>
|
19 |
-
<p>正解: {{ solution }}</p>
|
20 |
-
</div>
|
21 |
-
<form action="{{ url_for('retry') }}" method="post">
|
22 |
-
<button type="submit">もう一度挑戦する</button>
|
23 |
-
</form>
|
24 |
-
<form action="{{ url_for('new_problem') }}" method="get">
|
25 |
-
<button type="submit">新しい問題を生成する</button>
|
26 |
-
</form>
|
27 |
</div>
|
28 |
</body>
|
29 |
</html>
|
|
|
1 |
+
<!doctype html>
|
2 |
+
<html lang="ja">
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>結果</title>
|
7 |
+
<style>
|
8 |
+
body {
|
9 |
+
font-family: Arial, sans-serif;
|
10 |
+
background-color: #f8f9fa;
|
11 |
+
margin: 0;
|
12 |
+
padding: 0;
|
13 |
+
display: flex;
|
14 |
+
justify-content: center;
|
15 |
+
align-items: center;
|
16 |
+
height: 100vh;
|
17 |
+
}
|
18 |
+
.container {
|
19 |
+
background-color: white;
|
20 |
+
padding: 20px;
|
21 |
+
border-radius: 8px;
|
22 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
23 |
+
max-width: 400px;
|
24 |
+
width: 100%;
|
25 |
+
}
|
26 |
+
h1 {
|
27 |
+
font-size: 24px;
|
28 |
+
margin-bottom: 20px;
|
29 |
+
}
|
30 |
+
p {
|
31 |
+
font-size: 18px;
|
32 |
+
margin-bottom: 20px;
|
33 |
+
}
|
34 |
+
a {
|
35 |
+
display: inline-block;
|
36 |
+
padding: 10px;
|
37 |
+
font-size: 16px;
|
38 |
+
color: white;
|
39 |
+
background-color: #007bff;
|
40 |
+
text-decoration: none;
|
41 |
+
border-radius: 4px;
|
42 |
+
}
|
43 |
+
a:hover {
|
44 |
+
background-color: #0056b3;
|
45 |
+
}
|
46 |
+
</style>
|
47 |
</head>
|
48 |
<body>
|
49 |
<div class="container">
|
50 |
+
<h1>{{ result }}</h1>
|
51 |
+
<p>問題: {{ question }}</p>
|
52 |
+
<a href="{{ url_for('index') }}">もう一度</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
</div>
|
54 |
</body>
|
55 |
</html>
|