-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
306 lines (295 loc) · 10 KB
/
index.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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
<!DOCTYPE html>
<html>
<head>
<title>ScriBBler Project</title>
<!-- CSS files here -->
<link href="./css/index.css" rel="stylesheet" />
<link href="./css/header.css" rel="stylesheet" />
<!-- Bootstrap links here -->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"
></script>
<script
src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
crossorigin="anonymous"
></script>
<!-- Font Awesome file here -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<!-- Google Fonts file here -->
<link
href="https://fonts.googleapis.com/css2?family=Satisfy&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Marck+Script&family=Satisfy&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div class="background">
<!-- Header -->
<header>
<div class="logo-container">
<p class="logo">ScriBBler</p>
<p class="tagline">Explore. Imagine. Create</p>
</div>
<div class="buttons-container">
<button
type="button"
class="btn btn-primary btn-signIn"
data-bs-toggle="modal"
data-bs-target="#SignIn"
>
Sign In
</button>
<button
type="button"
class="btn btn-primary btn-signUp"
data-bs-toggle="modal"
data-bs-target="#SignUp"
>
Sign Up
</button>
<!-- Sign-Up Modal -->
<div
class="modal fade"
id="SignUp"
data-bs-backdrop="static"
data-bs-keyboard="false"
tabindex="-1"
aria-labelledby="staticBackdropLabel"
aria-hidden="true"
>
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">
Get Started
</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<hr style="margin: 0 1.75rem" />
<form>
<div class="modal-body">
<div class="mb-3">
<label for="fullName" class="form-label">Full Name</label>
<input
type="text"
class="form-control"
id="fullName"
placeholder="Enter Full Name"
required
/>
</div>
<div class="mb-3">
<label for="username" class="form-label">Username</label>
<input
type="text"
class="form-control"
id="username"
placeholder="Enter Username"
required
/>
</div>
<div class="mb-3">
<label for="inputPassword1" class="form-label"
>Password</label
>
<input
type="password"
class="form-control"
id="inputPassword1"
placeholder="Enter Password"
required
/>
</div>
<div class="mb-3">
<label for="inputPassword2" class="form-label"
>Confirm Password</label
>
<input
type="password"
class="form-control"
id="inputPassword2"
placeholder="Confirm Password"
required
/>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-success btn-size">
Sign Up
</button>
</div>
</form>
</div>
</div>
</div>
<!-- Sign-Up Modal ends here -->
<!-- Sign-In Modal -->
<div
class="modal fade"
id="SignIn"
data-bs-backdrop="static"
data-bs-keyboard="false"
tabindex="-1"
aria-labelledby="staticBackdropLabel"
aria-hidden="true"
>
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">
Welcome Back!
</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<hr style="margin: 0 1.75rem" />
<form>
<div class="modal-body">
<div class="mb-3">
<label for="username" class="form-label">Username</label>
<input
type="text"
class="form-control"
id="username"
placeholder="Enter Username"
required
/>
</div>
<div class="mb-3">
<label for="inputPassword1" class="form-label"
>Password</label
>
<input
type="password"
class="form-control"
id="inputPassword1"
placeholder="Enter Password"
required
/>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-success btn-size">
Sign In
</button>
<div class="signInFooter">
<span>Not a member?</span>
<a class="signUpLink" onclick="signUpClickHandler()"
>Sign Up</a
>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- Sign-In modal ends here -->
</div>
</header>
<!-- Header ends here -->
<!-- Body starts here -->
<div class="body-outer-container">
<div class="body-inner-container">
<a href="./html/bloglist.html" class="allPosts">
<button type="button" class="btn btn-secondary blogpostsButton">
All Posts
</button>
</a>
<button
type="button"
class="btn btn-secondary blogpostsButton"
data-bs-toggle="modal"
data-bs-target="#CreatePost"
>
Create Post
</button>
</div>
<!-- Create Post Modal -->
<div
class="modal fade"
id="CreatePost"
data-bs-backdrop="static"
data-bs-keyboard="false"
tabindex="-1"
aria-labelledby="staticBackdropLabel"
aria-hidden="true"
>
<div
class="modal-dialog modal-dialog-centered"
style="width: 900px !important"
>
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">
Pen Your Post
</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<hr style="margin: 0 1.75rem" />
<form>
<div class="modal-body">
<div class="mb-3">
<label for="username" class="form-label">Title :</label>
<input
type="text"
class="form-control titleInputField"
id="username"
required
/>
</div>
<div class="mb-3">
<label for="textarea" class="form-label">Content :</label>
<textarea
class="form-control"
id="textarea"
rows="10"
cols="20"
required
></textarea>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-success">Create</button>
</div>
</form>
</div>
</div>
</div>
<!-- Create Post modal ends here -->
</div>
<!-- Body ends here -->
</div>
<!-- Javascript files here -->
<script src="./js/index.js"></script>
<script src="./js/header.js"></script>
</body>
</html>