forked from Aditya-269/BloggingSite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblog.html
More file actions
50 lines (41 loc) · 1.9 KB
/
blog.html
File metadata and controls
50 lines (41 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Add Post</title>
<script src="https://kit.fontawesome.com/0c9f2a40ff.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="blog.css">
<!-- Quill.js CSS -->
<link href="https://cdn.jsdelivr.net/npm/quill@2/dist/quill.snow.css" rel="stylesheet"/>
<script src="https://cdn.jsdelivr.net/npm/quill@2/dist/quill.js"></script>
</head>
<body>
<header></header>
<div class="page-wrapper">
<div class="content clearfix">
<div class="main-content">
<h1>Add Post</h1>
<form id="postForm">
<input type="hidden" id="editIndex" value="">
<input type="hidden" id="userId" value="">
<label for="title">Title</label>
<input type="text" id="title" placeholder="Enter Title" required>
<label for="image">Image URL</label>
<input type="text" id="image" placeholder="Enter Image URL (optional)">
<label for="description">Description</label>
<textarea id="description" placeholder="Enter Short Description" required></textarea>
<!-- New Date Input Field -->
<label for="postDate">Post Date</label>
<input type="date" id="postDate" required>
<label for="blog-body">Content</label>
<div id="blog-body" style="height: 200px;"></div> <!-- Quill Editor replaces this -->
<button type="submit" id="submitBtn">Save Post</button>
</form>
</div>
</div>
</div>
<script src="blog.js"></script>
</body>
</html>