-
Notifications
You must be signed in to change notification settings - Fork 0
/
postslist.html
231 lines (203 loc) · 10.9 KB
/
postslist.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
<!DOCTYPE html>
<html>
<head>
<!-- TODO: Include Font Awesome file here -->
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css'>
<link rel="stylesheet"
href=
"https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<!-- TODO: Include Google Fonts file here -->
<link href="https://fonts.googleapis.com/css?family=Montez&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles/common.css">
<link rel="stylesheet" href="postlist.css">
</head>
<body>
<!-- TODO: Include code for header here -->
<header>
<span class="a">
<button type="button" class="Top-right" data-toggle="modal" data-target="#SignUpCenter"> Sign Up</button>
<button type="button" class="Top-right" data-toggle="modal" data-target="#SignInCenter">Sign In </button>
</span>
</header>
<div id="main-head">
<div class="header">
<p id="head">ScriBBler</p>
<p id="sub-head">Explore, Imagine, Create</p>
</div>
<div id="Top-right-btn">
<!--Sign Up Modal-->
<!--Modal Content-->
<div class="modal fade" id="SignUpCenter" tabindex="-1" role="dialog" aria-labelledby="SignUpCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title" id="SignUpTitle">Get Started</h3>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true"> ×</span>
</button>
</div>
<div class="modal-body">
<label for="name">Name</label>
<input type="text" name="name" id="" placeholder="Enter your name" required>
<label for="username">Username</label>
<input type="text" name="username" id="" placeholder="Enter your username" required>
<label for="password1">Password</label>
<input type="password" name="password1" id="" placeholder="Enter your password" required>
<label for="confirm">Confirm Password</label>
<input type="password" name="confirm" id="" placeholder="Re-enter your password" required>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-success" id="SignUp">Sign Up</button>
</div>
</div>
</div>
</div>
<!--Sign Up Modal ends here-->
<!--Sign In Modal-->
<!--Modal Content 2-->
<div class="modal fade" id="SignInCenter" tabindex="-1" role="dialog" aria-labelledby="SignInCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title" id="SignInTitle">Welcome Back!</h3>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true"> ×</span>
</button>
</div>
<div class="modal-body">
<label for="username">Username</label>
<input type="text" name="username" id="" placeholder="Enter your username">
<label for="password1">Password</label>
<input type="password" name="password1" id="" placeholder="Enter your password">
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-success" id="SignIn">Sign In</button>
<p>Not a member? <span onclick="Call()">Sign Up</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
<!--Sign In Modal ends here-->
<!-- ATTENTION: The HTML code for the list of posts has been given to you. You can feel free to add/delete/modify this code. You need to write the proper CSS and JavaScript code corresponding to this page so that the result looks like the screenshots given to you in the Project Statement. -->
<!-- list of all posts starts here -->
<div class="post-container">
<!-- post 1 starts here -->
<div class="side-container">
<h2>Yash Gupta</h2>
<div class="post-content">
<h4>‘let’ me be a ‘const’(ant), not a ‘var’(iable)!
<span class="cross">
<!-- TODO: Include Font Awesome icon for delete icon here -->
<i class='fa fa-trash' data-toggle="modal" data-target="#CanWeDelete"></i>
</span>
</h4>
<p >Lorem ipsum, dolor sit amet consectetur adipisicing elit. Neque, est quae commodi recusandae placeat debitis nisi pariatur modi et sunt magnam, inventore dolorem nemo quod sed saepe illum ipsa animi.
</p>
<span class="icons">
<!-- TODO: Include Font Awesome icon for horizontal ellipsis icon here -->
<a href="../html/post.html" style="color: black;"> <i class="fa fa-ellipsis-h fa-lg"
id="postDetail"></i></a>
</span>
</div>
</div>
<!-- post 1 ends here -->
<!-- post 2 starts here -->
<div class="side-container">
<h2>Colby Fayock</h2>
<div class="post-content">
<h4>What is linting and how can it save you time?
<span>
<!-- TODO: Include Font Awesome icon for delete icon here -->
<i class='fa fa-trash' data-toggle="modal" data-target="#CanWeDelete"></i>
</span>
</h4>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Reprehenderit, adipisci quisquam. Vero laborum iusto aliquam veniam nulla quidem quisquam facere..</p>
<span class="icons">
<!-- TODO: Include Font Awesome icon for horizontal ellipsis icon here -->
<a href="../html/post.html" style="color:black"> <i class="fa fa-ellipsis-h fa-lg"
id="postDetail"></i></a>
</span>
</div>
</div>
<!-- post 2 ends here -->
<!-- post 3 starts here -->
<div class="side-container">
<h2>Yazeed Bzadough</h2>
<div class="post-content">
<h4>How to Get More Views on Your Tech Blog
<span>
<!-- TODO: Include Font Awesome icon for delete icon here -->
<i class='fa fa-trash' data-toggle="modal" data-target="#CanWeDelete"></i>
</span>
</h4>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Rem consequatur ea est, at illo quae officiis? Placeat reiciendis dolorem officia consequatur, provident, rerum sunt facere suscipit laborum, tempora neque cum?</p>
<span class="icons">
<!-- TODO: Include Font Awesome icon for horizontal ellipsis icon here -->
<a href="../html/post.html" style="color:black"> <i class="fa fa-ellipsis-h fa-lg"
id="postDetail"></i></a>
</span>
</div>
</div>
<!-- post 3 ends here -->
<!-- post 4 starts here -->
<div class="side-container">
<h2>Cedd Burge</h2>
<div class="post-content">
<h4>How to write easily describable code
<span>
<!-- TODO: Include Font Awesome icon for delete icon here -->
<i class='fa fa-trash' data-toggle="modal" data-target="#CanWeDelete"></i>
</span>
</h4>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Omnis hic provident earum blanditiis iusto nostrum quidem iste aspernatur accusantium amet. Minus quas praesentium libero veritatis quod enim? Veniam, molestias minima!</p>
<span class="icons">
<!-- TODO: Include Font Awesome icon for horizontal ellipsis icon here -->
<a href="../html/post.html" style="color:black"> <i class="fa fa-ellipsis-h fa-lg"
id="postDetail"></i></a>
</span>
</div>
</div>
<!-- post 4 ends here -->
<!-- post 5 starts here -->
<div class="side-container">
<h2>Srishti Gupta</h2>
<div class="post-content">
<h4>Everything you should know about ‘module’ & ‘require’ in Node.js
<span>
<!-- TODO: Include Font Awesome icon for delete icon here -->
<i class='fa fa-trash' data-toggle="modal" data-target="#CanWeDelete"></i>
</span>
</h4>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Mollitia laudantium perferendis distinctio fugiat officiis quaerat assumenda reprehenderit ratione reiciendis, tempora eligendi nisi adipisci est quod harum nihil ex asperiores sunt?</p>
<span class="icons">
<!-- TODO: Include Font Awesome icon for horizontal ellipsis icon here -->
<a href="../html/post.html" style="color:black"> <i class="fa fa-ellipsis-h fa-lg"
id="postDetail"></i></a>
</span>
</div>
</div>
<!-- post 5 ends here -->
<!-- TODO: Write code for delete post modal here -->
<div class="modal fade" id="CanWeDelete" tabindex="-1" role="dialog" aria-labelledby="CanWeDeleteTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-body" id="DeleteHeading">
Are you sure you want to delete this post?
<div id="BtnModal">
<button type="reset" class="btn btn-success" id="Yes">Yes</button>
<button type="submit" class="btn btn-danger" id="No" >No</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- list of all posts ends here -->
</body>
</html>