summaryrefslogtreecommitdiff
path: root/themes/ccc/templates/front-featured-large.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'themes/ccc/templates/front-featured-large.tmpl')
-rw-r--r--themes/ccc/templates/front-featured-large.tmpl33
1 files changed, 33 insertions, 0 deletions
diff --git a/themes/ccc/templates/front-featured-large.tmpl b/themes/ccc/templates/front-featured-large.tmpl
new file mode 100644
index 00000000..320f2e31
--- /dev/null
+++ b/themes/ccc/templates/front-featured-large.tmpl
@@ -0,0 +1,33 @@
1## -*- coding: utf-8 -*-
2<%block name="content">
3
4<div class="carousel slide d-lg-none" style="height: 10rem;" data-ride="carousel" data-interval="3000">
5 <div class="carousel-inner">
6 % for post in posts:
7 <div class="carousel-item ${'active' if loop.index == 0 else ''}">
8 <a href="${post.permalink()}">
9 <img class="d-block img-fluid w-100" src="${post.meta('previewimage')}" alt="large carousel slide" style="height: 160px; object-fit: cover;">
10 <div class="carousel-caption d-sm-block">
11 <h1 style="background: rgba(0, 0, 0, 0.75); display: inline; padding: 0.1em; margin: 0;">${post.meta('previewtext', lang) or post.title(lang)}</h1>
12 </div>
13 </a>
14 </div>
15 % endfor
16 </div>
17</div>
18<div class="row d-none d-lg-flex">
19 % for post in posts:
20 <div class="col-6 col-sm-4">
21 <div class="card text-white bg-light shadow-sm">
22 <div class="card-body">
23 <img class="card-img-top" style="width: 100%; height: 160px; object-fit: cover;" src="${post.meta('previewimage')}" alt="CCC logo">
24 <div class="card-img-overlay d-flex flex-column justify-content-end">
25 <h1 style="background: rgba(0, 0, 0, 0.75); display: inline; padding: 0.1em; margin: 0;" class="card-title">${post.meta('previewtext', lang) or post.title(lang)}</h1>
26 </div>
27 </div>
28 <a href="${post.permalink()}" class="stretched-link"></a>
29 </div>
30 </div>
31 % endfor
32</div>
33</%block>