-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd-post.html
106 lines (98 loc) · 3.48 KB
/
add-post.html
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Web Project</title>
<!--Style-->
<link rel="stylesheet" href="style.css" />
<link
rel="stylesheet"
href="https://unicons.iconscout.com/release/v4.0.0/css/line.css"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap"
rel="stylesheet"
/>
<script
src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
crossorigin="anonymous"
></script>
<link
href="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-lite.min.css"
rel="stylesheet"
/>
<script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-lite.min.js"></script>
<!--End Of Style-->
</head>
<body>
<!--Navbar-->
<nav>
<div class="container nav_container">
<a href="index.html" class="nav_logo">Web</a>
<ul class="nav_items">
<li><a href="blog.html">Blog</a></li>
<li><a href="about.html">About</a></li>
<li><a href="services.html">Services</a></li>
<li><a href="contact.html">Contact</a></li>
<!-- <li><a href="signin.html">Sign In</a></li> -->
<li class="nav_profile">
<div class="avatar">
<img src="./images/avatar1.jpg" alt="Image not found" />
</div>
<ul>
<li><a href="dashboard.html">Dashboard</a></li>
<li><a href="logout.html">Log Out</a></li>
</ul>
</li>
</ul>
<button id="open_nav-btn"><i class="uil uil-bars"></i></button>
<button id="close_nav-btn"><i class="uil uil-multiply"></i></button>
</div>
</nav>
<!--End Of Navbar-->
<section class="form_section">
<div class="container form_section-container">
<h2>Add Post</h2>
<div class="alert_message error">
<p>This is an error message</p>
</div>
<form action="" enctype="multipart/form-data">
<input type="text" placeholder="Title" />
<select>
<option value="1">Wild Life</option>
<option value="2">Travel</option>
<option value="3">Art</option>
</select>
<textarea rows="10" id="summernote" placeholder="body"></textarea>
<div class="form_control inline">
<input type="checkbox" id="is_featured" checked />
<label for="is_featured">Featured</label>
</div>
<div class="form_control">
<label for="thumbnail">Add Photo</label>
<input type="file" id="thumbnail" />
</div>
<button class="btn" type="submit">Add Post</button>
</form>
</div>
</section>
<script>
$('#summernote').summernote({
tabsize: 2,
height: 120,
toolbar: [
['font', ['bold', 'underline', 'clear']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
],
});
$('#summernote').summernote('foreColor', 'white');
</script>
<script src="main.js"></script>
</body>
</html>