-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
214 lines (196 loc) · 7.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Posts UI</title>
<link rel="shortcut icon" href="images/favicon.png" type="image/png" />
<!-- Bootstrap CSS -->
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"
/>
<!-- Font awesome -->
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"
integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay"
crossorigin="anonymous"
/>
<!-- Use font Rubik -->
<link href="https://fonts.googleapis.com/css?family=Rubik&display=swap" rel="stylesheet" />
<!-- Internal CSS -->
<link rel="stylesheet" href="/styles/main.css" />
<link rel="stylesheet" href="/styles/home.css" />
</head>
<body>
<!-- This is a template HTML for a post item -->
<template id="postTemplate">
<li class="col-12 col-md-6 col-lg-4">
<div class="post-item mb-4">
<div class="card">
<img data-id="thumbnail" src="images/recipe.jpg" class="card-img-top" alt="recipe" />
<div class="card-body">
<h5 data-id="title" class="card-title">Card title</h5>
<p data-id="description" class="card-text">
This is a wider card with supporting text below as a natural lead-in to additional
content. This content is a little bit longer.
</p>
<p class="card-text">
<small class="text-muted">by</small>
<small data-id="author" class="text-muted font-weight-bold"> Hau Nguyen </small>
<small data-id="timeSpan" class="text-muted"> - 3 mins ago </small>
</p>
</div>
</div>
<div class="post-item-menu">
<div data-id="edit" class="menu-item rounded-circle" role="button">
<i class="fas fa-pen"></i>
</div>
<div data-id="remove" class="remove-button menu-item rounded-circle" role="button">
<i class="fas fa-trash"></i>
</div>
</div>
</div>
</li>
</template>
<header>
<!-- Navigation
- Please note that we use an empty item to make sure that we always have 3 flex-items
so logo is at centered, and the left and the right item can be optional by leaving it empty
-->
<nav class="top-nav shadow-sm py-3">
<div class="container">
<ul class="nav justify-content-between align-items-center">
<li class="nav-item">
<a class="nav__link" href="">
<img class="nav__logo" src="images/logo.svg" alt="Logo Nordic Coder" />
</a>
</li>
<li class="nav-item">
<a class="nav__link" href="add-edit-post.html"
><i class="fas fa-plus-circle mr-1"></i>Add new post</a
>
</li>
</ul>
</div>
</nav>
</header>
<main>
<div id="carouselExampleCaptions" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-indicators">
<button
type="button"
data-bs-target="#carouselExampleCaptions"
data-bs-slide-to="0"
class="active"
aria-current="true"
aria-label="Slide 1"
></button>
<button
type="button"
data-bs-target="#carouselExampleCaptions"
data-bs-slide-to="1"
aria-label="Slide 2"
></button>
<button
type="button"
data-bs-target="#carouselExampleCaptions"
data-bs-slide-to="2"
aria-label="Slide 3"
></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="https://picsum.photos/id/1005/1378/400" class="d-block w-100" alt="cover" />
<div class="carousel-caption d-none d-md-block">
<h5>First slide label</h5>
<p>Some representative placeholder content for the first slide.</p>
</div>
</div>
<div class="carousel-item">
<img src="https://picsum.photos/id/101/1378/400" class="d-block w-100" alt="cover" />
<div class="carousel-caption d-none d-md-block">
<h5>Second slide label</h5>
<p>Some representative placeholder content for the second slide.</p>
</div>
</div>
<div class="carousel-item">
<img src="https://picsum.photos/id/1011/1378/400" class="d-block w-100" alt="cover" />
<div class="carousel-caption d-none d-md-block">
<h5>Third slide label</h5>
<p>Some representative placeholder content for the third slide.</p>
</div>
</div>
</div>
<button
class="carousel-control-prev"
type="button"
data-bs-target="#carouselExampleCaptions"
data-bs-slide="prev"
>
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button
class="carousel-control-next"
type="button"
data-bs-target="#carouselExampleCaptions"
data-bs-slide="next"
>
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
<section class="posts-section">
<div class="container">
<h1 class="with-underline text-center">Latest posts</h1>
<!-- searchbox -->
<div class="input-group mb-3">
<span class="input-group-text" id="search">Search</span>
<input
id="searchInput"
type="text"
class="form-control"
placeholder="search by post title"
/>
</div>
<!-- Post list -->
<ul id="postList" class="row posts-list justify-content-center ps-0"></ul>
<!-- Posts pagination -->
<nav class="posts-nav" aria-label="Posts navigation">
<ul id="pagination" class="pagination justify-content-center">
<li class="page-item">
<a class="page-link" href="#" aria-label="Previous">
<span aria-hidden="true">« Prev</span>
</a>
</li>
<!-- <li class="page-item"><a class="page-link" href="#">1</a></li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
<li class="page-item"><a class="page-link" href="#">3</a></li> -->
<li class="page-item">
<a class="page-link" href="#" aria-label="Next">
<span aria-hidden="true">Next »</span>
</a>
</li>
</ul>
</nav>
</div>
</section>
</main>
<footer class="text-center text-muted py-3">
<small>Created by Po with <i class="fas fa-heart"></i></small>
</footer>
<!-- Bootstrap -->
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"
></script>
<!-- Scripts should be placed here to prevent blocking render UI -->
<script type="module" src="/js/home.js"></script>
</body>
</html>