26 lines
1.2 KiB
HTML
26 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<meta charset="UTF-8">
|
|
<link href="https://fonts.googleapis.com/css2?family=Comfortaa:wght@300&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
|
|
<link rel="icon" href="{{ url_for('static', filename='artberry.ico') }}" type="image/x-icon">
|
|
<title>🫐 Upload Post - Artberry 🫐</title>
|
|
</head>
|
|
<body>
|
|
<h2>Create New Post</h2>
|
|
<form method="POST" action="{{ url_for('upload_post') }}" enctype="multipart/form-data">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
|
|
<label for="post_text">Post Text:</label><br>
|
|
<textarea id="post_text" name="post_text" class="input-field" placeholder="Write your post..." maxlength="128" required></textarea><br>
|
|
|
|
<label for="post_media">Upload Media (Image/GIF):</label><br>
|
|
<input type="file" id="post_media" name="post_media" accept="image/*,image/gif"><br>
|
|
|
|
<button type="submit" class="button">Publish Post</button>
|
|
</form>
|
|
</body>
|
|
</html>
|