-
Notifications
You must be signed in to change notification settings - Fork 190
Expand file tree
/
Copy pathAddBlog.html
More file actions
206 lines (190 loc) · 7.42 KB
/
Copy pathAddBlog.html
File metadata and controls
206 lines (190 loc) · 7.42 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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!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" />
<meta
name="description"
content="DevBlog is the website dedicated only for true developers."
/>
<meta name="keywords" content="DevBlog, Blogs for Developer" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css"
/>
<link rel="icon" type="image/x-icon" href="assets/img/blog.png" />
<title>DevBlog - Blog for Developers</title>
<link rel="stylesheet" href="assets/css/style.css" id="theme-sheet" />
</head>
<body>
<!-- Navbar -->
<nav
class="font2 navbar navbar-expand-lg navbar-light shadow-sm bg-light fixed-top"
>
<div class="container">
<a class="navbar-brand d-flex align-items-center" href="index.html">
<span class="ml-3 font-weight-bold font2">DevBlog</span>
</a>
<button
class="navbar-toggler navbar-toggler-right border-1"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbar4"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbar4">
<ul class="navbar-nav mx-auto pl-lg-4">
<li class="nav-item px-lg-2">
<a class="nav-link" href="index.html"
><span class="d-inline-block d-lg-none icon-width pe-1"
><i class="fa-solid fa-house"></i></span
>Home</a
>
</li>
<li class="nav-item px-lg-2">
<a class="nav-link" href="about.html"
><span class="d-inline-block d-lg-none icon-width pe-1"
><i class="fa-solid fa-user"></i></span
>About</a
>
</li>
<li class="nav-item px-lg-2 active">
<a class="nav-link" href="contact.html"
><span class="d-inline-block d-lg-none icon-width pe-1"
><i class="fa-solid fa-envelope"></i></span
>Contact</a
>
</li>
<li class="nav-item px-lg-2">
<a class="nav-link" href="contributors.html"
><span class="d-inline-block d-lg-none icon-width pe-1"
><i class="fa-solid fa-user-group"></i></span
>Contributors</a
>
</li>
</ul>
<ul class="navbar-nav ml-auto mt-3 mt-lg-0">
<button id="themeBtn" onclick="theme()" class="btn-theme">
<i class="fas fa-sun" id="sun"></i>
<i class="fas fa-moon" id="moon"></i>
</button>
<a class="mx-3 my-1 btn btn-primary" href="AddBlog.html"
>Add Blog</a
>
</ul>
</div>
</div>
</nav>
<div class="container my-5 pt-5">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card shadow-sm">
<div class="card-body p-5">
<h2 class="card-title text-center mb-4">Add New Blog Post</h2>
<form id="contact-form" action="" method="post">
<div class="mb-3">
<label for="name" class="form-label">Blog Title</label>
<input type="text" class="form-control" id="name" placeholder="Enter blog title" required>
</div>
<div class="mb-3">
<label for="author-name" class="form-label">Author Name</label>
<input type="text" class="form-control" id="author-name" placeholder="Enter your name" required>
</div>
<div class="mb-3">
<label for="message" class="form-label">Blog Content</label>
<textarea class="form-control" id="message" rows="5" placeholder="Write your blog here..." required></textarea>
</div>
<div class="mb-3">
<label for="image" class="form-label">Upload Image</label>
<input type="file" class="form-control" id="image" name="image" accept="image/*">
</div>
<div class="d-grid">
<button type="submit" class="btn btn-primary btn-lg">Submit Blog</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- footer -->
<div class="footer-dark">
<footer>
<div class="container-fluid">
<div class="row">
<div class="col-sm-6 col-md-3 item">
<h3>Services</h3>
<ul>
<li><a href="#">Web design</a></li>
<li><a href="#">Development</a></li>
<li><a href="#">Hosting</a></li>
<li><a href="#">Marketing</a></li>
<li><a href="#">Content</a></li>
</ul>
</div>
<div class="col-sm-6 col-md-3 item">
<h3>About</h3>
<ul>
<li><a href="#">Company</a></li>
<li><a href="#">Team</a></li>
<li><a href="#">Careers</a></li>
</ul>
</div>
<div class="col-md-6 item text">
<h3>DevBlog</h3>
<p>
DevBlog is a Blogpost Platform where the Users can Upload their
Articles and Literatures on the Web and the maintainers of the
Website can approve of them and then Publish it onto the Blog.
</p>
</div>
<div class="col item social">
<a href="#"><i class="fab fa-facebook"></i></a
><a href="#"><i class="fab fa-twitter"></i></a
><a href="#"><i class="fab fa-snapchat"></i></a
><a href="#"><i class="fab fa-instagram"></i></a>
</div>
</div>
<p class="copyright">DevBlog © 2025</p>
</div>
</footer>
</div>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script>
<script>
var themeSheet = document.querySelector("#theme-sheet");
var isDarkModeEnabled = localStorage.getItem("isDarkmodeEnabled");
function applyTheme() {
if (isDarkModeEnabled === "true") {
themeSheet.href = "assets/css/darktheme.css";
} else {
themeSheet.href = "assets/css/style.css";
}
}
applyTheme();
function theme() {
if (themeSheet.getAttribute("href") == "assets/css/style.css") {
themeSheet.href = "assets/css/darktheme.css";
localStorage.setItem("isDarkmodeEnabled", true);
} else {
themeSheet.href = "assets/css/style.css";
localStorage.setItem("isDarkmodeEnabled", false);
}
}
</script>
<!-- Fontawesome Script -->
<script
src="https://kit.fontawesome.com/6d2226036d.js"
crossorigin="anonymous"
></script>
</html>