feat(geocaching): add initial page for 2023
feat(sliding_gallery): add horizontal scrolling gallery component
This commit is contained in:
parent
cdbb4cba14
commit
fdbc1ec109
13 changed files with 173 additions and 0 deletions
4
assets/images/icons/external.svg
Normal file
4
assets/images/icons/external.svg
Normal 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 |
1
assets/images/icons/wikipedia_globe.svg
Normal file
1
assets/images/icons/wikipedia_globe.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 164 KiB |
|
@ -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;
|
||||||
|
}
|
||||||
|
|
|
@ -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';
|
||||||
|
|
||||||
|
|
29
assets/sass/sliding_gallery.scss
Normal file
29
assets/sass/sliding_gallery.scss
Normal 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 */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
9
content/geocaching/chapelle-de-bethleem.md
Normal file
9
content/geocaching/chapelle-de-bethleem.md
Normal 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.
|
||||||
|
|
||||||
|
|
7
content/geocaching/chartreuse-bourbon-lez-gaillon.md
Normal file
7
content/geocaching/chartreuse-bourbon-lez-gaillon.md
Normal 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.
|
37
content/geocaching/eglise-saint-georges.md
Normal file
37
content/geocaching/eglise-saint-georges.md
Normal 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>
|
18
content/geocaching/vierge-noire.md
Normal file
18
content/geocaching/vierge-noire.md
Normal 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.
|
||||||
|
|
15
layouts/geocaching/single.html
Normal file
15
layouts/geocaching/single.html
Normal 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 }}
|
6
layouts/shortcodes/featured_image.html
Normal file
6
layouts/shortcodes/featured_image.html
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<figure>
|
||||||
|
{{ $img_src := .Get "src" }}
|
||||||
|
{{ $description := .Get "description" }}
|
||||||
|
<img alt="{{ $description }}" src="{{ $img_src }}" />
|
||||||
|
<figcaption>{{ $description }}</figcaption>
|
||||||
|
</figure>
|
0
layouts/shortcodes/image.html
Normal file
0
layouts/shortcodes/image.html
Normal file
8
layouts/shortcodes/wikipedia_link.html
Normal file
8
layouts/shortcodes/wikipedia_link.html
Normal 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 "{{.Get "name"}}" 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>
|
Loading…
Reference in a new issue