feat(geocaching): add initial page for 2023

feat(sliding_gallery): add horizontal scrolling gallery component
This commit is contained in:
Matthieu Bessat 2023-09-15 14:59:48 +02:00
parent cdbb4cba14
commit fdbc1ec109
13 changed files with 173 additions and 0 deletions

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"><path d="M17 17H3V3h5V1H3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5h-2z"/><path d="M19 1h-8l3.29 3.29-5.73 5.73 1.42 1.42 5.73-5.73L19 9V1z"/></svg>

After

Width:  |  Height:  |  Size: 264 B

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 164 KiB

View file

@ -93,3 +93,41 @@ img {
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
} }
.btn {
}
.wikipedia-btn {
display: inline-flex;
justify-content: flex-start;
flex-direction: row;
align-items: center;
max-height: 10rem;
padding: 1.5rem;
border: 1px solid rgba(0, 0, 0, 0.1);
// background: linear-gradient(to right, rgb(17, 17, 17), rgb(255, 255, 255));
background: rgba(255, 255, 255, 1);
color: black;
border-radius: 5px;
box-shadow: 0 0 .3rem rgba(0, 0, 0, 0.5);
.btn__icon {
width: 4rem;
margin-right: 2rem;
}
}
.wikipedia-icon {
aspect-ratio: 1;
}
.btn__icon {
display: flex;
justify-content: center;
align-items: center;
}
.icon_inline {
width: 1rem;
height: 1rem;
}

View file

@ -41,4 +41,5 @@ $accent-dark: #A56F09;
// components // components
@import 'tags.scss'; @import 'tags.scss';
@import 'card.scss'; @import 'card.scss';
@import 'sliding_gallery.scss';

View file

@ -0,0 +1,29 @@
.sliding_gallery {
display: flex;
flex-direction: row;
overflow-x: auto;
scrollbar-width: auto !important;
scrollbar-color: $accent rgba(0, 0, 0, 0.1) !important;
margin: 2rem 0;
figure {
min-width: 30rem;
}
&::-webkit-scrollbar {
width: 12px; /* width of the entire scrollbar */
}
&::-webkit-scrollbar-track {
background: orange; /* color of the tracking area */
}
&::-webkit-scrollbar-thumb {
background-color: blue; /* color of the scroll thumb */
border-radius: 20px; /* roundness of the scroll thumb */
border: 3px solid orange; /* creates padding around scroll thumb */
}
}

View file

@ -0,0 +1,9 @@
---
title: La chapelle de bethléem
---
Elle est posée sur les coteaux ouest d'Aubevoye, surplombant la vallée, elle est visible jusqu'a la gare !
Une association s'est formé pour la sauver, c'est l'Étoile de Bethléem.

View file

@ -0,0 +1,7 @@
---
title: La chartreuse d'Aubevoye
---
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 aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Article wikipedia sur la chartreuse.

View file

@ -0,0 +1,37 @@
---
title: Église Saint-Georges d'Aubevoye
---
<div class="page-container">
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 aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
<div class="sliding_gallery">
{{< featured_image
src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/12/Aubevoye_-_Eglise_Saint-Georges.jpg/640px-Aubevoye_-_Eglise_Saint-Georges.jpg"
description="L'église en 2011"
>}}
{{< featured_image
src="https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Eglise_Saint-Georges_d%27Aubevoye_-_d%C3%A9tail_de_la_tour-clocher.jpg/640px-Eglise_Saint-Georges_d%27Aubevoye_-_d%C3%A9tail_de_la_tour-clocher.jpg"
description="Détails de la tour"
>}}
{{< featured_image
src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/c4/%C3%89glise_Saint-Georges_d%27Aubevoye_16.jpg/640px-%C3%89glise_Saint-Georges_d%27Aubevoye_16.jpg"
description="Détails des dragons"
>}}
{{< featured_image
src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/12/Aubevoye_-_Eglise_Saint-Georges.jpg/640px-Aubevoye_-_Eglise_Saint-Georges.jpg"
description="L'église en 2011"
>}}
{{< featured_image
src="https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Eglise_Saint-Georges_d%27Aubevoye_-_d%C3%A9tail_de_la_tour-clocher.jpg/640px-Eglise_Saint-Georges_d%27Aubevoye_-_d%C3%A9tail_de_la_tour-clocher.jpg"
description="Détails de la tour"
>}}
{{< featured_image
src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/c4/%C3%89glise_Saint-Georges_d%27Aubevoye_16.jpg/640px-%C3%89glise_Saint-Georges_d%27Aubevoye_16.jpg"
description="Détails des dragons"
>}}
</div>
<div class="page-container">
{{< wikipedia_link lang="fr" name="Église Saint-Georges d'Aubevoye" >}}
</div>

View file

@ -0,0 +1,18 @@
---
title: Vierge Noire
---
(image principale)
(carousel)
(carte de l'emplacement)
Cette statue a été donnée par A.F De la Boissette.
Elle domine les coteaux.
Caché dans les feuillages de la forêt, à mit chemin entre le chateau de Gaillon et la chapelle de bethleem elle regarde en direction de la vallée vers l'Est.
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 aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

View file

@ -0,0 +1,15 @@
{{ define "main" }}
<article class="article">
<div class="page-container">
<h1>{{ .Title }}</h1>
hello
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
</div>
<div>
{{ .Content }}
</div>
</article>
{{ end }}

View file

@ -0,0 +1,6 @@
<figure>
{{ $img_src := .Get "src" }}
{{ $description := .Get "description" }}
<img alt="{{ $description }}" src="{{ $img_src }}" />
<figcaption>{{ $description }}</figcaption>
</figure>

View file

View file

@ -0,0 +1,8 @@
{{ $link := printf "https://%s.wikipedia.org/wiki/%s" (.Get "lang") (.Get "name") }}
<a href="{{ $link }}" class="btn wikipedia-btn" title="Voir l'article &quot;{{.Get "name"}}&quot; sur Wikipedia">
{{ partial "helpers/svg" (dict "path" "icons/wikipedia_globe" "class" "btn__icon") }}
<div>Voir l'article sur Wikipedia
{{ partial "helpers/svg" (dict "path" "icons/external" "class" "icon_inline") }}
</div>
</a>