39 lines
978 B
Plaintext
39 lines
978 B
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>New Post</title>
|
|
<style>
|
|
body {
|
|
font-family: -apple-system, system-ui, sans-serif;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 2rem;
|
|
}
|
|
form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
input, textarea {
|
|
padding: 0.5rem;
|
|
font-size: 1rem;
|
|
}
|
|
button {
|
|
padding: 0.5rem 1rem;
|
|
background: #007bff;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>New Blog Post</h1>
|
|
<form action="/posts" method="POST">
|
|
<input type="text" name="title" placeholder="Title" required>
|
|
<textarea name="content" rows="10" placeholder="Content (Markdown supported)" required></textarea>
|
|
<button type="submit">Publish</button>
|
|
</form>
|
|
</body>
|
|
</html> |