-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
211 lines (201 loc) · 7.68 KB
/
index.html
File metadata and controls
211 lines (201 loc) · 7.68 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link
href="https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,600;0,800;1,300;1,400&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="https://necolas.github.io/normalize.css/8.0.1/normalize.css">
<style>
/*
* Global styling
*/
* {
box-sizing: border-box;
}
html {
min-height: 100%;
background-color: #fefefe;
font-family: 'Raleway', sans-serif;
font-weight: 300;
}
.container {
max-width: 900px;
margin: 0 auto;
background-color: #f4f4f4;
}
img {
max-width: 100%;
height: auto;
}
/*
* Articles (demo)
*/
.articles {
display: flex;
flex-wrap: wrap;
margin-left: -5px;
margin-right: -5px;
}
.articles__above {
padding: 10px;
}
.articles__article {
padding-left: 5px;
padding-right: 5px;
width: 33.333%;
margin-bottom: 10px;
}
.articles__above h1 {
margin-top: 0;
}
.articles__article.is-hidden {
display: none;
}
.article {
padding: 10px;
border: 2px solid #fff;
height: 100%;
}
.container--examples {
max-width: 900px;
margin: 0 auto;
background-color: #f4f4f4;
}
</style>
</head>
<body>
<div class="container container--articles">
<div class="articles__above">
<h1>Articles</h1>
<div class="search">
<input type="text" placeholder="zoeken.." id="js-articles-search">
</div>
</div>
<div class="articles" id="js-articles">
<article class="articles__article">
<div class="article">
<div class="article__type">
Type 1
</div>
<div class="article__head">
<h2 class="article__title">
Title
</h2>
</div>
<div class="article__media">
<img src="https://via.placeholder.com/500x250/000000/FFFFFF/?text=Placeholder" alt="alt1">
</div>
<div class="article__summary">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut.
</p>
</div>
</div>
</article>
<article class="articles__article">
<div class="article">
<div class="article__type">
Type 2
</div>
<div class="article__head">
<h2 class="article__title">
Title 2
</h2>
</div>
<div class="article__media">
<img src="https://via.placeholder.com/500x250/000000/FFFFFF/?text=Placeholder" alt="alt2">
</div>
<div class="article__summary">
<p>
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque
laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi
architecto beatae vitae dicta sunt explicabo
</p>
</div>
</div>
</article>
<article class="articles__article">
<div class="article">
<div class="article__type">
Type 3
</div>
<div class="article__head">
<h2 class="article__title">
Title 3
</h2>
</div>
<div class="article__media">
<img src="https://via.placeholder.com/500x250/000000/FFFFFF/?text=Placeholder" alt="alt3">
</div>
<div class="article__summary">
<p>
But I must explain to you how all this mistaken idea of denouncing pleasure and praising
pain was born and I will give you a complete account of the system, and expound the actual
teachings of the great explorer of the truth, the master-builder of human happiness.
</p>
</div>
</div>
</article>
<article class="articles__article">
<div class="article">
<div class="article__type">
Type 4
</div>
<div class="article__head">
<h2 class="article__title">
Title 4
</h2>
</div>
<div class="article__media">
<img src="https://via.placeholder.com/500x250/000000/FFFFFF/?text=Placeholder" alt="alt4">
</div>
<div class="article__summary">
<p>
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium
voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati
cupiditate non provident.
</p>
</div>
</div>
</article>
<article class="articles__article">
<div class="article">
<div class="article__type">
Type 5
</div>
<div class="article__head">
<h2 class="article__title">
Title 5
</h2>
</div>
<div class="article__media">
<img src="https://via.placeholder.com/500x250/000000/FFFFFF/?text=Placeholder" alt="alt5">
</div>
<div class="article__summary">
<p>
On the other hand, we denounce with righteous indignation and dislike men who are so
beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that
they cannot foresee the pain and trouble that are bound to ensue.
</p>
</div>
</div>
</article>
</div>
</div>
<script src="/articleSearch.js"></script>
<script>
// Init articleSearch
articleSearch.init({
container: document.getElementById('js-articles'),
searchInput: document.getElementById('js-articles-search'),
});
</script>
</body>
</html>