-
Notifications
You must be signed in to change notification settings - Fork 0
/
writeBlog.html
190 lines (183 loc) · 7.18 KB
/
writeBlog.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Write Blog</title>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk"
crossorigin="anonymous"
/>
<link href="css/basic.css" rel="stylesheet" />
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<style>
.input-title {
width: 100%;
height: 70px;
font-size: 40px;
border: none;
outline: none;
padding-left: 10px;
color: #292929;
font-family: "Times New Roman", Times, serif;
}
.input-body {
width: 100%;
height: 500px;
font-size: 23px;
border: none;
outline: none;
padding-left: 10px;
color: #292929;
font-family: "Times New Roman", Times, serif;
}
::placeholder {
color: #7d7976;
}
</style>
</head>
<body>
<div
class="modal fade"
id="alert"
tabindex="-1"
role="dialog"
aria-hidden="true"
>
<div class="modal-dialog modal-md">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel"></h5>
<a
type="button"
class="close"
aria-label="Close"
href="index.html"
>
<span aria-hidden="true">×</span>
</a>
</div>
<div class="modal-body">
You are not logged in..Please login first
</div>
<div class="modal-footer">
<a
type="button"
class="btn btn-primary"
href="loginRegistration.html"
>Sign In</a
>
</div>
</div>
</div>
</div>
<div class="modal fade" id="tags" tabindex="-1" role="dialog">
<div class="modal-dialog modal-md">
<div class="modal-content">
<div class="modal-body">
<div class="container">
<div class="row">
<div class="col-12">
<h6 class="text-dark-custom">
Add or change tags (up to 5)<br />
so readers know what your story is
about.
</h6>
<textarea
class="input-title"
style="border-bottom: 1px solid black"
id="tagsList"
></textarea>
<a
class="btn btn-lg big-button text-white background-success-custom align-center small-button mt-3"
id="publishBtn"
>Publish</a
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div
class="fixed-top navbar-collapse justify-content-end pb-4 pb-md-0"
id="navbar"
>
<a
href="index.html"
class="navbar-brand font-weight-bold mr-auto font-heading-custom"
>Medium Clone</a
>
<ul class="nav navbar-nav mt-2 mt-lg-0">
<li class="nav-item">
<button
class="btn btn-lg big-button text-white background-success-custom align-center small-button mt-3 mt-md-0"
data-toggle="modal"
data-target="#tags"
type="button"
>
Publish
</button>
</li>
<li class="d-flex align-items-baseline" id="navbarRight">
<a
class="nav-link text-dark mr-4"
href="loginRegistration.html"
>Sign in</a
>
<a
class="btn btn-lg big-button text-white background-success-custom align-center small-button mt-3 mt-md-0"
href="loginRegistration.html"
>Get Started</a
>
</li>
</ul>
</div>
</nav>
<div id="dummyDivForMargin"></div>
<div class="container">
<div class="row">
<div class="col-10 offset-1">
<input
class="input-title"
type="text"
placeholder="Title"
id="title"
/>
</div>
<div class="col-10 offset-1">
<textarea
class="input-body"
type="textarea"
placeholder="Tell your story..."
autofocus="true"
id="content"
></textarea>
</div>
</div>
</div>
<script type="module" src="./js/writeBlog.js"></script>
<script
src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI"
crossorigin="anonymous"
></script>
</body>
</html>