From b9f6daa55d0ee59013994920613c89e32748da9f Mon Sep 17 00:00:00 2001 From: dolphinau Date: Sun, 7 Sep 2025 02:31:24 +0200 Subject: [PATCH] fix bug --- assets/css/main.css | 33 ++++++++++++++++++++++++++++++++- content/events/1/index.md | 3 ++- layouts/_default/single.html | 3 ++- layouts/events/single.html | 8 ++++++++ 4 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 layouts/events/single.html diff --git a/assets/css/main.css b/assets/css/main.css index de5194b..b5f4b96 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -12,7 +12,7 @@ header { height: 520px; background-image: url(/chapelle.png); background-position: center; - background-color: rgba(244, 244, 244, 0.286); + /*background-color: rgba(244, 244, 244, 0.1);*/ background-blend-mode: overlay; } @@ -321,6 +321,11 @@ main { main { max-width: 90%; padding: 0; + margin-top: 30px; + } + + .home { + padding: 0; } .concert-entry { @@ -445,6 +450,14 @@ footer { /* Single */ +.event { + display: block; +} + +.event-date { + color: #da1e2c; +} + .event h2 { margin-top: 2em; } @@ -452,6 +465,7 @@ footer { .artists-table { gap: 10px; display: flex; + flex-direction: row; } .event-cover { @@ -477,3 +491,20 @@ footer { .artist-description { text-align: center; } + +@media (max-width: 750px) { + .event { + display: flex; + flex-direction: column; + } + + .artists-table { + flex-direction: column; + } + + .event-cover { + align-self: center; + padding: 0; + margin-bottom: 30px; + } +} diff --git a/content/events/1/index.md b/content/events/1/index.md index 69271c9..0a753f6 100644 --- a/content/events/1/index.md +++ b/content/events/1/index.md @@ -35,8 +35,9 @@ Depuis 2 autres OPUS ont été créés, pointant des époques particulières de ## Liens utiles +- [Billeterie](https://www.helloasso.com/associations/association-des-amis-de-la-chapelle-victoria-de-grasse/evenements/tickets-vols-au-dessus-du-volcan) - [Isabelle Chemin: Instagram](https://www.instagram.com/chemin.dessens/?hl=fr) - [Page officiel vols volcan](https://vols-volcan.com/) - [Page officiel du spectacle](https://vols-volcan.com/opus-1/) -- [Page officiel de présentation de l’association Chemindessens](https://vols-volcan.com/qui-sommes-nous/) +- [Page officiel de l’association Chemindessens](https://vols-volcan.com/qui-sommes-nous/) { .event-links } diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 496fc89..25904c7 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,3 +1,4 @@ {{ define "main" }} -
{{ .Content }}
+

{{ .Title }}

+ {{ .Content }} {{ end }} diff --git a/layouts/events/single.html b/layouts/events/single.html new file mode 100644 index 0000000..bbf207e --- /dev/null +++ b/layouts/events/single.html @@ -0,0 +1,8 @@ +{{ define "main" }} +

+ {{ $t := time.AsTime .Params.ConcertDate }} + {{ $format := "Monday 2 Jan 2006 15h04" }} + {{ time.Format $format $t | humanize }} +

+
{{ .Content }}
+{{ end }}