78 lines
2.0 KiB
HTML
78 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Register</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
text-align: center;
|
|
background-color: #f0f0f0;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
h1 {
|
|
color: #333;
|
|
margin-top: 50px;
|
|
}
|
|
.container {
|
|
margin-top: 30px;
|
|
width: 100%;
|
|
max-width: 400px;
|
|
margin: 50px auto;
|
|
padding: 20px;
|
|
background-color: white;
|
|
border-radius: 8px;
|
|
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
|
|
}
|
|
.form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
.form-group input {
|
|
width: 100%;
|
|
padding: 10px;
|
|
font-size: 16px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 5px;
|
|
}
|
|
.form-group button {
|
|
width: 100%;
|
|
padding: 10px;
|
|
font-size: 16px;
|
|
color: white;
|
|
background-color: #007bff;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
}
|
|
.form-group button:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
.error {
|
|
color: red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Register</h1>
|
|
<div class="container">
|
|
<form method="POST" action="/register">
|
|
<div class="form-group">
|
|
<input type="text" name="username" placeholder="Username" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<input type="password" name="password" placeholder="Password" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<button type="submit">Register</button>
|
|
</div>
|
|
<div class="form-group">
|
|
<p class="error">{{ error }}</p>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|