<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>計算問題</title> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
background-color: #f8f9fa; | |
margin: 0; | |
padding: 0; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
height: 100vh; | |
} | |
.container { | |
background-color: white; | |
padding: 20px; | |
border-radius: 8px; | |
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | |
max-width: 400px; | |
width: 100%; | |
} | |
h1 { | |
font-size: 24px; | |
margin-bottom: 20px; | |
} | |
form { | |
display: flex; | |
flex-direction: column; | |
} | |
label { | |
font-size: 18px; | |
margin-bottom: 10px; | |
} | |
input[type="text"] { | |
padding: 10px; | |
font-size: 16px; | |
margin-bottom: 20px; | |
border: 1px solid #ced4da; | |
border-radius: 4px; | |
} | |
input[type="submit"] { | |
padding: 10px; | |
font-size: 16px; | |
color: white; | |
background-color: #007bff; | |
border: none; | |
border-radius: 4px; | |
cursor: pointer; | |
} | |
input[type="submit"]:hover { | |
background-color: #0056b3; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<h1>{{ question }}</h1> | |
<form action="{{ url_for('check') }}" method="post"> | |
<label for="answer">答え:</label> | |
<input type="text" id="answer" name="answer" required> | |
<input type="submit" value="送信"> | |
</form> | |
</div> | |
</body> | |
</html> | |