60 lines
1.4 KiB
Plaintext
60 lines
1.4 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Blog Setup</title>
|
|
<style>
|
|
body {
|
|
font-family: -apple-system, system-ui, sans-serif;
|
|
max-width: 400px;
|
|
margin: 0 auto;
|
|
padding: 2rem;
|
|
}
|
|
.form-group {
|
|
margin-bottom: 1rem;
|
|
}
|
|
label {
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
input {
|
|
width: 100%;
|
|
padding: 0.5rem;
|
|
font-size: 1rem;
|
|
}
|
|
.error {
|
|
color: red;
|
|
margin-bottom: 1rem;
|
|
}
|
|
button {
|
|
width: 100%;
|
|
padding: 0.5rem;
|
|
background: #007bff;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Initial Setup</h1>
|
|
<% if (typeof error !== 'undefined') { %>
|
|
<div class="error"><%= error %></div>
|
|
<% } %>
|
|
<form action="/admin/setup" method="POST">
|
|
<div class="form-group">
|
|
<label>Username:</label>
|
|
<input type="text" name="username" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label>Password:</label>
|
|
<input type="password" name="password" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label>Email:</label>
|
|
<input type="email" name="email" required>
|
|
</div>
|
|
<button type="submit">Complete Setup</button>
|
|
</form>
|
|
</body>
|
|
</html> |