OzoneAsai commited on
Commit
daeaafe
1 Parent(s): 78ce826

Create result.html

Browse files
Files changed (1) hide show
  1. templates/result.html +29 -0
templates/result.html ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>解答結果</title>
7
+ <link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
8
+ </head>
9
+ <body>
10
+ <div class="container">
11
+ <h1>解答結果</h1>
12
+ <div class="result {% if correct %}correct{% else %}incorrect{% endif %}">
13
+ {% if correct %}
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>