From 9a3b414e76f3dd5b11ce0e10a33f6206cdf7707a Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Fri, 15 Sep 2023 14:59:48 +0200 Subject: [PATCH] feat(geocaching): add initial page for 2023 feat(sliding_gallery): add horizontal scrolling gallery component --- assets/images/icons/external.svg | 4 ++ assets/images/icons/wikipedia_globe.svg | 1 + assets/sass/general.scss | 38 +++++++++++++++++++ assets/sass/main.scss | 1 + assets/sass/sliding_gallery.scss | 29 ++++++++++++++ content/geocaching/chapelle-de-bethleem.md | 9 +++++ .../chartreuse-bourbon-lez-gaillon.md | 7 ++++ content/geocaching/eglise-saint-georges.md | 37 ++++++++++++++++++ content/geocaching/vierge-noire.md | 18 +++++++++ layouts/geocaching/single.html | 15 ++++++++ layouts/shortcodes/featured_image.html | 6 +++ layouts/shortcodes/image.html | 0 layouts/shortcodes/wikipedia_link.html | 8 ++++ 13 files changed, 173 insertions(+) create mode 100644 assets/images/icons/external.svg create mode 100644 assets/images/icons/wikipedia_globe.svg create mode 100644 assets/sass/sliding_gallery.scss create mode 100644 content/geocaching/chapelle-de-bethleem.md create mode 100644 content/geocaching/chartreuse-bourbon-lez-gaillon.md create mode 100644 content/geocaching/eglise-saint-georges.md create mode 100644 content/geocaching/vierge-noire.md create mode 100644 layouts/geocaching/single.html create mode 100644 layouts/shortcodes/featured_image.html create mode 100644 layouts/shortcodes/image.html create mode 100644 layouts/shortcodes/wikipedia_link.html diff --git a/assets/images/icons/external.svg b/assets/images/icons/external.svg new file mode 100644 index 0000000..20dc0cd --- /dev/null +++ b/assets/images/icons/external.svg @@ -0,0 +1,4 @@ + + diff --git a/assets/images/icons/wikipedia_globe.svg b/assets/images/icons/wikipedia_globe.svg new file mode 100644 index 0000000..79a28ac --- /dev/null +++ b/assets/images/icons/wikipedia_globe.svg @@ -0,0 +1 @@ +Wikipedia logo version 2 diff --git a/assets/sass/general.scss b/assets/sass/general.scss index de36e82..dbde81f 100644 --- a/assets/sass/general.scss +++ b/assets/sass/general.scss @@ -93,3 +93,41 @@ img { 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; +} diff --git a/assets/sass/main.scss b/assets/sass/main.scss index 6b0f442..c703e3c 100644 --- a/assets/sass/main.scss +++ b/assets/sass/main.scss @@ -41,4 +41,5 @@ $accent-dark: #A56F09; // components @import 'tags.scss'; @import 'card.scss'; +@import 'sliding_gallery.scss'; diff --git a/assets/sass/sliding_gallery.scss b/assets/sass/sliding_gallery.scss new file mode 100644 index 0000000..184afd6 --- /dev/null +++ b/assets/sass/sliding_gallery.scss @@ -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 */ + } + +} diff --git a/content/geocaching/chapelle-de-bethleem.md b/content/geocaching/chapelle-de-bethleem.md new file mode 100644 index 0000000..14c4f82 --- /dev/null +++ b/content/geocaching/chapelle-de-bethleem.md @@ -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. + + diff --git a/content/geocaching/chartreuse-bourbon-lez-gaillon.md b/content/geocaching/chartreuse-bourbon-lez-gaillon.md new file mode 100644 index 0000000..869b2fa --- /dev/null +++ b/content/geocaching/chartreuse-bourbon-lez-gaillon.md @@ -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. diff --git a/content/geocaching/eglise-saint-georges.md b/content/geocaching/eglise-saint-georges.md new file mode 100644 index 0000000..1004c7c --- /dev/null +++ b/content/geocaching/eglise-saint-georges.md @@ -0,0 +1,37 @@ +--- +title: Église Saint-Georges 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. +
+ + +
+{{< wikipedia_link lang="fr" name="Église Saint-Georges d'Aubevoye" >}} +
diff --git a/content/geocaching/vierge-noire.md b/content/geocaching/vierge-noire.md new file mode 100644 index 0000000..e7a4712 --- /dev/null +++ b/content/geocaching/vierge-noire.md @@ -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. + diff --git a/layouts/geocaching/single.html b/layouts/geocaching/single.html new file mode 100644 index 0000000..6ad678b --- /dev/null +++ b/layouts/geocaching/single.html @@ -0,0 +1,15 @@ +{{ define "main" }} +
+
+

{{ .Title }}

+ hello + + {{ range .Params.tags }} + {{ . }} + {{ end }} +
+
+ {{ .Content }} +
+
+{{ end }} diff --git a/layouts/shortcodes/featured_image.html b/layouts/shortcodes/featured_image.html new file mode 100644 index 0000000..e0865a0 --- /dev/null +++ b/layouts/shortcodes/featured_image.html @@ -0,0 +1,6 @@ +
+{{ $img_src := .Get "src" }} +{{ $description := .Get "description" }} + {{ $description }} +
{{ $description }}
+
diff --git a/layouts/shortcodes/image.html b/layouts/shortcodes/image.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/shortcodes/wikipedia_link.html b/layouts/shortcodes/wikipedia_link.html new file mode 100644 index 0000000..0f85760 --- /dev/null +++ b/layouts/shortcodes/wikipedia_link.html @@ -0,0 +1,8 @@ +{{ $link := printf "https://%s.wikipedia.org/wiki/%s" (.Get "lang") (.Get "name") }} + + + {{ partial "helpers/svg" (dict "path" "icons/wikipedia_globe" "class" "btn__icon") }} +
Voir l'article sur Wikipedia + {{ partial "helpers/svg" (dict "path" "icons/external" "class" "icon_inline") }} +
+