Spaces:
Sleeping
Sleeping
<html> | |
<head> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
margin: 0; | |
padding: 20px; | |
} | |
h1 { | |
text-align: center; | |
} | |
form { | |
max-width: 400px; | |
margin: 0 auto; | |
padding: 20px; | |
border: 1px solid #ccc; | |
border-radius: 5px; | |
background-color: #f5f5f5; | |
} | |
label { | |
display: block; | |
margin-bottom: 10px; | |
} | |
input[type="number"] { | |
width: 100%; | |
padding: 10px; | |
border: 1px solid #ccc; | |
border-radius: 3px; | |
font-size: 16px; | |
} | |
input[type="submit"] { | |
width: 100%; | |
padding: 10px; | |
border: none; | |
border-radius: 3px; | |
background-color: #4CAF50; | |
color: #fff; | |
font-size: 16px; | |
cursor: pointer; | |
} | |
input[type="submit"]:hover { | |
background-color: #45a049; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Welcome</h1> | |
<form action="{{ url_for('advice') }}" method="post"> | |
<label for="age">What is your age? (13+)</label> | |
<input type="number" name="age" id="age" required> | |
<input type="submit" value="Submit"> | |
</form> | |
</body> | |
</html> |