-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.html
More file actions
331 lines (321 loc) · 17 KB
/
index.html
File metadata and controls
331 lines (321 loc) · 17 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
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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
---
layout: default
---
<div class="grid grid-cols-1 sm:grid-cols-12 gap-4 sm:gap-6 pt-16 h-auto min-h-[30vh] p-10">
<div class="col-span-12 flex flex-col sm:flex-row items-center justify-center rounded-lg pt-0 pb-2 sm:pb-5 gap-4 sm:gap-8">
<div class="w-full sm:w-auto flex justify-center">
<dotlottie-player class="h-auto w-[50%] sm:w-[200px] sm:height-[200px]" src="{{ "/images/animation/logo-animation.json" | relative_url
}}" background="transparent" speed="1" direction="1" playMode="normal" loop autoplay></dotlottie-player>
</div>
<div class="relative h-full flex justify-center items-center">
<div class="relative">
<span class="inline-block text-[#384a72] font-black text-4xl transition-transform duration-100">Blog de SCIAM</span>
</p>
<p class="mt-2 sm:mt-1 text-2xl font-bold text-navysciam fadeInUp2">Tendances Tech, Insights et Innovations</p>
</div>
</div>
</div>
</div>
<div class="px-3 lg:px-28 mt-6">
<div class="grid grid-cols-1 tablet:grid-cols-6 lg:grid-cols-6 md:gap-4 gap-6">
<div class="col-span-1 md:col-span-4 tablet:col-span-4 lg:col-span-4 flex flex-col h-full rounded-xl overflow-hidden shadow-xl bg-white">
<div class="flex flex-col h-full bg-white">
{% for post in site.posts limit:1 %}
<div class="flex flex-col h-full">
<div class="h-60 w-full bg-contain bg-no-repeat bg-center rounded-xl"
style="background-image: url('{{ '/images/vignettes/' | append: post.vignette | relative_url }}');">
</div>
<hr class="bg-zince-50 opacity-50" />
<div class="rounded-b overflow-hidden flex-grow">
<div class="flex flex-col justify-between h-full px-12 py-6">
<div>
<div>
{% if post.auteurs and post.auteurs.size > 1 %}
<div class="text-sm text-gray-500 mb-4">
<strong>
{% for auteur in post.auteurs %}
{% assign author = site.data.authors[auteur] %}
{% if author.name %}
{% if forloop.first %}
{% elsif forloop.last %}
et
{% else %}
,
{% endif %}
{% if author.picture %}
<img class="rounded-full w-6 h-6 inline"
src="{{ '/images/authors/' | append: author.picture | relative_url }}" alt="{{ author.name }}">
{% endif %}
<span class="text-base text-navysciam">
<a href="{{ '/author/' | append: auteur | append: '/index.html' | relative_url }}">{{
author.name }}</a>
</span>
{% endif %}
{% endfor %}
</strong>
</div>
{% elsif post.author %}
{% assign author = site.data.authors[post.author] %}
{% if author.name %}
<div class="flex text-sm text-gray-500 mb-4">
{% if author.picture %}
<img class="rounded-full w-11 h-11 inline"
src="{{ '/images/authors/' | append: author.picture | relative_url }}" alt="{{ author.name }}">
{% endif %}
<div class="flex flex-col pl-4">
<span class="text-base font-bold text-navysciam"><a
href="{{ '/author/' | append: post.author | append: '/index.html' | relative_url }}">{{
author.name }}</a></span>
<div class="flex">
<span class="text-base font-normal text-navysciam">{{ post.date | date: "%d/%m/%Y" }}</span>
<p class="text-navysciam pl-2">• {{ post.content | reading_time | pluralize: "min" }} de lecture
</p>
</div>
</div>
</div>
{% endif %}
{% endif %}
</div>
<div class="text-xl font-bold mb-2 line-clamp-1">
<a href="{{ post.url | relative_url }}"
class="text-3xl text-navysciam font-black mb-2 hover:text-navysciam hover:decoration-yellowsciam">{{post.title
}}</a>
</div>
</div>
<div>
<p class="line-clamp-3 mb-4">{{ post.excerpt | strip_html }}</p>
<a href="{{ post.url | relative_url }}"
class="text-navysciam hover:font-black transition duration-300 ease-in-out">Lire la suite...</a>
</div>
<div class="pt-4 pb-2">
{% for tag in post.tags %}
{% assign tagSlug = tag | downcase | slugify: "raw" %}
<a href="{{ '/tag/' | relative_url }}{{ tagSlug }}/"
class="inline-block rounded-full border-0.5 bg-{{ tagSlug }}-100 border-{{ tagSlug }}-200 text-{{ tagSlug }}-500 px-3 py-1 text-sm font-semibold mr-2 mb-2">
#{{ tag }}
</a>
{% endfor %}
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
<div class="hidden md:block tablet:block md:col-span-2 tablet:col-span-2 lg:col-span-2 flex pt-0 pb-0 flex-wrap items-stretch justify-center rounded-xl shadow-lg bg-white">
{% include embbed_post.html %}
</div>
</div>
<div class="grid grid-cols-1 lg:grid-cols-4 gap-6">
<div class="col-span-12 lg:col-span-4 flex flex-col h-full rounded-xl">
<div class="mb-auto">
<hr class="my-20 bg-zince-200" />
<!-- Sciam's choice -->
<div class="md:mb-20">
<div class="w-full flex justify-between items-center lg:justify-start lg:flex-grow mb-8">
<p class="text-3xl font-bold mr-5">Sujets d'actualité</p>
<a href="/category/news/">
<button
class="bg-transparent text-navysciam hover:bg-navysciam font-semibold hover:text-white py-2 px-4 lg:ml-2 border border-navysciam hover:border-transparent rounded">
Voir tous
</button>
</a>
</div>
<div class="swiper swiperAuto px-4 lg:px-8 mx-[-1rem] lg:mx-[-2rem]">
<div class="swiper-wrapper pt-5">
{% assign news_posts = site.posts | where_exp: "post", "post.categories contains 'news'" %}
{% assign filtered_news_posts = "" | split: "" %}
{% for post in news_posts %}
{% assign last_word = post.categories | split: " " | last %}
{% if last_word == "news" %}
{% assign filtered_news_posts = filtered_news_posts | push: post %}
{% endif %}
{% endfor %}
{% assign filtered_news_posts = filtered_news_posts | slice: 0, 6 %}
{% for post in filtered_news_posts %}
<div
class="swiper-slide bg-white rounded-xl shadow-lg mb-6 h-auto flex flex-col min-h-[500px] md:min-h-[620px] lg:min-h-[400px]">
{% if post.vignette %}
{% assign bg_url = '/images/vignettes/' | append: post.vignette | relative_url %}
<div class="h-60 w-full pb-[33.33%] bg-contain bg-no-repeat bg-center rounded-xl"
style="background-image: url('{{ bg_url }}');"></div>
<hr class="bg-stone-50 opacity-50" />
{% endif %}
<div class="px-12 py-6 flex flex-col justify-between flex-grow">
<div class="text-sm text-gray-500 mb-4">
<strong>
{% if post.auteurs and post.auteurs.size > 1 %}
{% for auteur in post.auteurs %}
{% assign author = site.data.authors[auteur] %}
{% if author.name %}
{% if forloop.first %}
{% elsif forloop.last %}
et
{% else %}
,
{% endif %}
{% if author.picture %}
<img class="rounded-full w-6 h-6 inline"
src="{{ '/images/authors/' | append: author.picture | relative_url }}" alt="{{ author.name }}">
{% endif %}
<span class="text-base text-navysciam">
<a href="{{ '/author/' | append: auteur | append: '/index.html' | relative_url }}">{{ author.name }}</a>
</span>
{% endif %}
{% endfor %}
{% elsif post.author %}
{% assign author = site.data.authors[post.author] %}
{% if author.name %}
<div class="flex text-sm text-gray-500">
{% if author.picture %}
<img class="rounded-full w-11 h-11 inline"
src="{{ '/images/authors/' | append: author.picture | relative_url }}"
alt="{{ author.name }}">
{% endif %}
<div class="flex flex-col pl-4">
<span class="text-base font-bold text-navysciam">
<a href="{{ '/author/' | append: post.author | append: '/index.html' | relative_url }}">{{ author.name }}</a></span>
<div class="flex">
<span class="text-base font-normal text-navysciam">{{ post.date | date: "%d/%m/%Y" }}</span>
<p class="text-navysciam pl-2">• {{ post.content | reading_time | pluralize: "min" }} de lecture</p>
</div>
</div>
</div>
{% endif %}
{% endif %}
</strong>
</div>
<div class="text-xl font-bold mb-2 line-clamp-1"><a href="{{ post.url | relative_url }}"
class="hover:text-navysciam hover:decoration-yellowsciam">{{ post.title }}</a>
</div>
<p class="line-clamp-3 mb-4">{{ post.excerpt | strip_html }}</p>
<a href="{{ post.url | relative_url }}"
class="text-navysciam hover:font-black transition duration-300 ease-in-out">Lire la suite...</a>
<div class="mt-auto">
<div class="pt-4 pb-2">
{% for tag in post.tags %}
{% assign tagSlug = tag | downcase | slugify: "raw" %}
<a href="{{ '/tag/' | relative_url }}{{ tagSlug }}/"
class="inline-block rounded-full border-0.5 bg-{{ tagSlug }}-100 border-{{ tagSlug }}-200 text-{{ tagSlug }}-500 px-3 py-1 text-sm font-semibold mr-2 mb-2">
#{{ tag }}
</a>
{% endfor %}
</div>
</div>
</div>
</div>
{% endfor %}
</div>
<div class="swiper-button-prev text-navysciamlight ml-4 lg:ml-6"></div>
<div class="swiper-button-next text-navysciamlight mr-4 lg:mr-6"></div>
<div class="pt-10">
<div class="swiper-pagination text-navysciamlight pt-10"></div>
</div>
</div>
</div>
<hr class="my-20 bg-zinc-200" />
<!-- All Articles Section -->
<div class="md:mb-28">
<div class="w-full flex justify-between items-center lg:justify-start lg:flex-grow mb-5">
<p class="text-3xl font-bold mr-5">Tous les articles</p>
<a href="/posts/">
<button
class="bg-transparent text-navysciam hover:bg-navysciam font-semibold hover:text-white py-2 px-4 lg:ml-2 border border-navysciam hover:border-transparent rounded">
Voir tous
</button>
</a>
</div>
<div class="swiper swiperManu pt-5 px-4 lg:px-8 mx-[-1rem] lg:mx-[-2rem]">
<div class="swiper-wrapper">
{% assign posts = site.posts | slice: 1, 6 %}
{% for post in posts %}
<div
class="swiper-slide bg-white rounded-xl transition-transform duration-300 ease-in-out shadow-lg mb-6 h-auto flex flex-col min-h-[500px] md:min-h-[620px] lg:min-h-[400px] hover:scale-104">
{% if post.vignette %}
{% assign bg_url = '/images/vignettes/' | append: post.vignette | relative_url %}
<div class="h-60 w-full pb-[33.33%] bg-contain bg-no-repeat bg-center rounded-xl"
style="background-image: url('{{ bg_url }}');"></div>
<hr class="bg-stone-50 opacity-50" />
{% endif %}
<div class="px-12 py-6 flex flex-col justify-between flex-grow">
<div class="text-sm text-gray-500 mb-4">
<strong>
{% if post.auteurs and post.auteurs.size > 1 %}
{% for auteur in post.auteurs %}
{% assign author = site.data.authors[auteur] %}
{% if author.name %}
{% if forloop.first %}
{% elsif forloop.last %}
et
{% else %}
,
{% endif %}
{% if author.picture %}
<img class="rounded-full w-6 h-6 inline"
src="{{ '/images/authors/' | append: author.picture | relative_url }}" alt="{{ author.name }}">
{% endif %}
<span class="text-base text-navysciam">
<a href="{{ '/author/' | append: auteur | append: '/index.html' | relative_url }}">{{
author.name}}</a>
</span>
{% endif %}
{% endfor %}
{% elsif post.author %}
{% assign author = site.data.authors[post.author] %}
{% if author.name %}
<div class="flex text-sm text-gray-500">
{% if author.picture %}
<img class="rounded-full w-11 h-11 inline"
src="{{ '/images/authors/' | append: author.picture | relative_url }}"
alt="{{ author.name }}">
{% endif %}
<div class="flex flex-col pl-4">
<span class="text-base font-bold text-navysciam"><a
href="{{ '/author/' | append: post.author | append: '/index.html' | relative_url }}">{{
author.name }}</a></span>
<div class="flex">
<span class="text-base font-normal text-navysciam">{{ post.date | date: "%d/%m/%Y" }}</span>
<p class="text-navysciam pl-2">• {{ post.content | reading_time | pluralize: "min" }} de lecture</p>
</div>
</div>
</div>
{% endif %}
{% endif %}
</strong>
</div>
<div class="text-xl font-bold mb-2 line-clamp-1"><a href="{{ post.url | relative_url }}"
class="hover:text-navysciam hover:decoration-yellowsciam">{{ post.title }}</a>
</div>
<p class="line-clamp-3 mb-4">{{ post.excerpt | strip_html }}</p>
<a href="{{ post.url | relative_url }}"
class="text-navysciam hover:font-extrabold transition duration-300 ease-in-out">Lire la suite...</a>
<div class="mt-auto">
<div class="pt-4 pb-2">
{% for tag in post.tags %}
{% assign tagSlug = tag | downcase | slugify: "raw" %}
<a href="{{ '/tag/' | relative_url }}{{ tagSlug }}/"
class="inline-block rounded-full border-0.5 bg-{{ tagSlug }}-100 border-{{ tagSlug }}-200 text-{{ tagSlug }}-500 px-3 py-1 text-sm font-semibold mr-2 mb-2">
#{{ tag }}
</a>
{% endfor %}
</div>
</div>
</div>
</div>
{% endfor %}
</div>
<div class="swiper-button-prev text-navysciamlight ml-4 lg:ml-6"></div>
<div class="swiper-button-next text-navysciamlight mr-4 lg:mr-6"></div>
<div class="pt-10">
<div class="swiper-pagination text-navysciamlight pt-10"></div>
</div>
</div>
</div>
<hr class="md:hidden bg-zinc-200 my-20" />
<div class="md:hidden w-full mb-8 items-stretch justify-center rounded-xl shadow-lg bg-white">
{% include embbed_post.html %}
</div>
</div>
</div>
</div>
</div>