-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_blog.html
268 lines (266 loc) · 7.68 KB
/
add_blog.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
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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
<!--
<!DOCTYPE html>
<html>
<head>
<title>My Blog</title>
<style>
@font-face {
font-family: 'Belanosima';
src: url('/static/fonts/belanosima.woff2') format('woff2'),
url('/static/fonts/belanosima.woff') format('woff');
/* Add more font formats if available */
}
body {
font-family: 'Arial', sans-serif;
background-color: #f2f2f2;
margin: 0;
padding: 0;
}
.container {
padding: 0px;
height: 72px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
h1 {
font-family: 'Belanosima', monospace;
color: #FFFFFF;
margin: 10px 200px;
padding: 17px 0;
position: relative;
top: 20px;
}
.head_container h1:hover {
color: #00008B;
font-size: 34px;
transition: color 0.09s ease;
transition: font-size 0.09s ease;
}
.post {
margin-bottom: 40px;
padding-bottom: 20px;
border-bottom: 1px solid #ddd;
background-color: #F4F4F4; /* Add this line to set the background color */
}
.post h2 {
color: #333;
margin-top: 0;
margin-bottom: 10px;
}
.post p {
color: #777;
margin-top: 0;
}
.post-content {
color: #333;
line-height: 1.6;
font-family: 'Belanosima', monospace;
}
.post-link {
display: inline-block;
background-color: #333;
color: #fff;
padding: 8px 12px;
text-decoration: none;
margin-top: 10px;
}
.post-link:hover {
background-color: #555;
}
.head_container{
background-color: #009dff;
color: #333;
margin-top: 40px;
}
.head_container .p1 {
font-family: 'Belanosima', monospace;
margin-top: 30px;
margin-left: 200px;
margin-bottom: 40px;
color: #FFFFFF;
font-size: 18px;
padding-bottom: 42px;
}
ul {
display: flex;
margin-left: 715px;
position: relative;
bottom: 23px;
}
ul li {
list-style: none;
margin-left: 40px;
font-size: 17px;
}
ul a:hover {
color: #f5f5f5;
font-size: 19px;
transition: font-size 0.1s ease;
}
a {
text-decoration: none;
color: #000000;
font-family: 'Belanosima', monospace;
}
.container-fluid {
height: 15px;
}
.mx-3 {
background-color: #808080;
}
.navbar-brand {
font-size: 34px;
font-weight: bold;
position: relative;
top: 20px;
left: 30px
}
.btn-outline-success, .form-control {
position: relative;
left: 1222px;
bottom: 69px;
padding: 10px 14px;
}
.btn-outline-success {
color: #28a745;
border-color: #28a745;
border-radius: 4px;
}
.form-control {
width: 140px;
border-radius: 4px;
}
.container_1 {
margin: 10px 50px;
background-color: #fff;
width: 800px;
margin-left: 110px;
padding: 20px 17px;
box-shadow: 2px 2px 4px #e0e0e0;
}
.post-link {
background-color: #009dff;
border-radius: 4px;
}
.post-link:hover {
background-color: #555;
}
nav {
position: static;
}
.add_blog {
color: #009dff;
position: relative;
top: 70px;
right: 169px;
}
hr{
position: relative;
top: 50px;
}
.form_1{
position: relative;
top: 80px;
}
label {
position: relative;
left: 30px;
font-size: 20px;
font-family: 'Belanosima', monospace;
}
.slug {
position: relative;
top: 20px;
}
.content {
position: relative;
bottom: 247px;
}
#title {
position: relative;
top: 32px;
right: 40px;
width: 800px;
height: 30px;
}
#slug {
position: relative;
top: 51px;
right: 30px;
width: 800px;
height: 30px;
}
#content {
position: relative;
top: 69px;
right: 62px;
width: 800px;
height: 300px;
}
.add_btn {
position: relative;
top: 75px;
left: 30px;
padding: 7px 13px;
border-radius: 4px;
font-family: 'Belanosima', monospace;
color: #28a745;
border-color: #28a745;
font-weight: bold;
font-size: 14px;
}
.add_btn:hover {
background-color: #28a745;
color: #FFFFFF;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<div class="container mx-3">
<a class="navbar-brand" href="#">Gurmehar Blogs</a>
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link {% block homeactive %} {% endblock homeactive %}" aria-current="page" href="/">Home</a>
</li>
{% if user.is_authenticated %}
<li class="nav-item">
<a href="{% url 'add_blog' %}">Add Blogs</a>
</li>
<li class="nav-item">
<a class="nav-link {% block profileactive %} {% endblock profileactive %}" href="https://gursv.github.io/CV/" target="_blank">Profile</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://github.com/GURSV" target="_blank">Github</a>
</li>
{% else %}
{% endif %}
</ul>
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success" type="submit">Search</button>
</div>
<form class="d-flex">
</form>
</div>
</div>
</nav>
<h1 class="add_blog">Add Blog</h1>
<hr>
<form method="post" class="form_1">
{% csrf_token %}
<label for="title">Title:</label>
<input type="text" name="title" id="title" required>
<br><br>
<label for="slug" class="slug">Slug:</label>
<input type="text" name="slug" id="slug" required>
<br><br>
<label for="content" class="content">Content:</label>
<textarea name="content" id="content" rows="5" required></textarea>
<br><br>
<input type="submit" value="Add Blog" class="add_btn">
</form>
</body>
</html>
-->