OzoneAsai commited on
Commit
7918852
1 Parent(s): 6194752

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +59 -11
templates/index.html CHANGED
@@ -1,20 +1,68 @@
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
- <h2>{{ problem_statement }}</h2>
13
- <form method="post">
14
- <label for="user_input">解答を入力してください:</label>
15
- <input type="number" step="0.001" name="user_input" id="user_input" required>
16
- <input type="hidden" name="solution" value="{{ solution }}">
17
- <button type="submit">提出</button>
18
  </form>
19
  </div>
20
  </body>
 
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
+ form {
31
+ display: flex;
32
+ flex-direction: column;
33
+ }
34
+ label {
35
+ font-size: 18px;
36
+ margin-bottom: 10px;
37
+ }
38
+ input[type="text"] {
39
+ padding: 10px;
40
+ font-size: 16px;
41
+ margin-bottom: 20px;
42
+ border: 1px solid #ced4da;
43
+ border-radius: 4px;
44
+ }
45
+ input[type="submit"] {
46
+ padding: 10px;
47
+ font-size: 16px;
48
+ color: white;
49
+ background-color: #007bff;
50
+ border: none;
51
+ border-radius: 4px;
52
+ cursor: pointer;
53
+ }
54
+ input[type="submit"]:hover {
55
+ background-color: #0056b3;
56
+ }
57
+ </style>
58
  </head>
59
  <body>
60
  <div class="container">
61
+ <h1>{{ question }}</h1>
62
+ <form action="{{ url_for('check') }}" method="post">
63
+ <label for="answer">答え:</label>
64
+ <input type="text" id="answer" name="answer" required>
65
+ <input type="submit" value="送信">
 
 
66
  </form>
67
  </div>
68
  </body>