Landing page + countdown #11
8 changed files with 160 additions and 10 deletions
1
assets/images/partners/amse.svg
Normal file
1
assets/images/partners/amse.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 72 KiB |
1
assets/images/partners/credit.svg
Normal file
1
assets/images/partners/credit.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 12 KiB |
1
assets/images/partners/tespascap.svg
Normal file
1
assets/images/partners/tespascap.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 16 KiB |
|
@ -103,16 +103,14 @@ $height: 30rem;
|
|||
position: relative;
|
||||
flex: 0 0 100%;
|
||||
width: 100%;
|
||||
background-color: #f99;
|
||||
counter-increment: item;
|
||||
}
|
||||
|
||||
.carousel__slide:nth-child(even) {
|
||||
background-color: #99f;
|
||||
}
|
||||
// .carousel__slide:nth-child(even) {
|
||||
// background-color: #99f;
|
||||
// }
|
||||
|
||||
.carousel__slide:before {
|
||||
content: counter(item);
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
|
@ -157,10 +155,9 @@ $height: 30rem;
|
|||
.carousel__navigation {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
bottom: 1rem;
|
||||
left: 0;
|
||||
text-align: center;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.carousel__navigation-list,
|
||||
|
@ -173,7 +170,7 @@ $height: 30rem;
|
|||
display: inline-block;
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
background-color: #333;
|
||||
background-color: rgba(51, 51, 51, 0.7);
|
||||
background-clip: content-box;
|
||||
border: 0.25rem solid transparent;
|
||||
border-radius: 50%;
|
||||
|
@ -236,6 +233,7 @@ $height: 30rem;
|
|||
.carousel__navigation-item.enabled {
|
||||
.carousel__navigation-button {
|
||||
opacity: 0.5;
|
||||
background-color: white;
|
||||
background-color: #eeeeee;
|
||||
box-shadow: inset 0 0 2px black;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -167,3 +167,56 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
.partner-comment__container {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
background: rgba(1, 1, 1, 0.05);
|
||||
|
||||
.partner-comment {
|
||||
padding-bottom: 1rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.partner-comment__quote {
|
||||
width: 75%;
|
||||
text-align: center;
|
||||
margin: 3rem auto 0 auto;
|
||||
position: relative;
|
||||
display: block;
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
&::before, &::after {
|
||||
font-size: 8rem;
|
||||
color: rgba(0, 0, 0, 0.2);
|
||||
position: absolute;
|
||||
}
|
||||
&::before {
|
||||
content: "“";
|
||||
top: -6rem;
|
||||
}
|
||||
&::after {
|
||||
content: "”";
|
||||
right: -1rem;
|
||||
bottom: -9rem;
|
||||
}
|
||||
}
|
||||
.partner-comment__author {
|
||||
margin-top: 1rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.partner-comment__author-picture {
|
||||
width: 9rem;
|
||||
aspect-ratio: 1;
|
||||
// border-radius: 50%;
|
||||
}
|
||||
.partner-comment__author-name {
|
||||
margin-top: .5rem;
|
||||
}
|
||||
}
|
||||
|
|
36
data/partners.yaml
Normal file
36
data/partners.yaml
Normal file
|
@ -0,0 +1,36 @@
|
|||
people:
|
||||
- name: Jessica
|
||||
org:
|
||||
name: T'es pas cap
|
||||
intro: de
|
||||
website:
|
||||
image: tespascap.svg
|
||||
quote: |
|
||||
Soutenons l'association qui sauvegarde la chapelle de Bethléem à Aubevoye, témoignage précieux de notre histoire.
|
||||
|
||||
- name: Stéphane
|
||||
org:
|
||||
name: Brasserie Les Cottereaux
|
||||
intro: de la
|
||||
website: https://www.agglo-seine-eure.fr/equipements/brasserie-les-cottereaux/
|
||||
image: BLC_logo_color.png
|
||||
quote: |
|
||||
C'est tout naturellement que nous avons lancé le partenariat avec L'étoile de Bethléem dont la vocation est de rénover une pepite de notre patrimoine historique.
|
||||
|
||||
- name: null
|
||||
org:
|
||||
name: Crédit Mutuel de Normandie
|
||||
intro: du
|
||||
image: credit.svg
|
||||
quote: |
|
||||
Partenaire privilégié des associations comme l'Étoile de Bethléem, le crédit mutuel vous accompagne dans tous vos projets.
|
||||
|
||||
- name: Phillipe
|
||||
org:
|
||||
name: AMSE
|
||||
intro: de l'
|
||||
website: https://www.amse.asso.fr/
|
||||
image: amse.svg
|
||||
quote: |
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
<div class="cover__content">
|
||||
<div class="cover__title-container">
|
||||
<div class="page-container">
|
||||
<h1 class="cover__title">Relevons notre Bethléem Normand</h1>
|
||||
<h1 class="cover__title">Relevons notre Bethléem Normand !</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -227,6 +227,7 @@
|
|||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
{{ $slides_count := 6 }}
|
||||
<section class="carousel-container">
|
||||
<div class="carousel" aria-label="Gallery">
|
||||
|
@ -256,6 +257,63 @@
|
|||
</aside>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- {{ range $.Site.Data.partners.people }} -->
|
||||
<!-- <li class="move-item"> -->
|
||||
<!-- {{ .org }} -->
|
||||
<!-- {{ .name }} {{ .quote }} -->
|
||||
<!-- </li> -->
|
||||
<!-- {{ end }} -->
|
||||
|
||||
|
||||
{{ $slides_count := len $.Site.Data.partners.people }}
|
||||
<section class="partners-container">
|
||||
<div class="page-container">
|
||||
<h2>Ils nous soutiennent</h2>
|
||||
</div>
|
||||
<div class="carousel" aria-label="Partners">
|
||||
<ol class="carousel__viewport">
|
||||
{{ range $index, $comment := $.Site.Data.partners.people }}
|
||||
<li id="partners__slide{{ $index }}"
|
||||
tabindex="0"
|
||||
class="carousel__slide">
|
||||
<div class="slide-content partner-comment__container">
|
||||
<div class="partner-comment">
|
||||
{{ $image := resources.Get (printf "images/partners/%s" $comment.image) }}
|
||||
<a href="{{ $comment.org.website }}">
|
||||
<img class="partner-comment__author-picture" alt="Photo d'un de nos soutiens" src="{{ $image.RelPermalink }}" />
|
||||
</a>
|
||||
<p class="partner-comment__quote">
|
||||
{{ $comment.quote }}
|
||||
</p>
|
||||
<div class="partner-comment__author">
|
||||
<div class="partner-comment__author-name">
|
||||
{{ with $comment.name }}{{ . }}{{ end }} {{ with $comment.org.intro }}{{ . }}{{ end }} {{ $comment.org.name }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="carousel__snapper">
|
||||
<a href="#partners__slide{{ partial "fullmod" (slice (sub $index 1) $slides_count) }}"
|
||||
class="carousel__prev">Diapositive précédente</a>
|
||||
<a href="#partners__slide{{ partial "fullmod" (slice (add $index 1) $slides_count) }}"
|
||||
class="carousel__next">Diapositive suivante</a>
|
||||
</div>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ol>
|
||||
<aside class="carousel__navigation">
|
||||
<ol class="carousel__navigation-list">
|
||||
{{ range $index, $s := seq $slides_count }}
|
||||
<li class="carousel__navigation-item {{ if eq $index 0 }}enabled{{- end -}}">
|
||||
<a href="#partners__slide{{ $index }}"
|
||||
class="carousel__navigation-button">{{ $index }}ème diapositive</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ol>
|
||||
</aside>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<div class="separation-section secondary-bg">
|
||||
|
|
2
layouts/shortcodes/fullmod.html
Normal file
2
layouts/shortcodes/fullmod.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
{{ $c := mod (.Get 0) (.Get 1) }}
|
||||
{{ if lt $c 0 }}{{ add (.Get 1) $c }}{{ else }}{{ $c }}{{ end }}
|
Loading…
Reference in a new issue