From 7f28fa6deedbd80583065c0e64b0541471fc422d Mon Sep 17 00:00:00 2001 From: Oscar Otero Date: Mon, 24 Jun 2024 21:47:13 +0200 Subject: [PATCH] fix --- .github/workflows/build.yml | 2 +- _includes/blocks/calendar/calendar.css | 33 ++++++++++++++++++++++++++ _includes/blocks/calendar/calendar.vto | 32 +++++++++++++++++++++++++ index.yml | 16 +++++++++++++ styles/main.css | 1 + 5 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 _includes/blocks/calendar/calendar.css create mode 100644 _includes/blocks/calendar/calendar.vto diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2322f7d..2a4a77e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,4 +16,4 @@ jobs: steps: - uses: actions/checkout@v4 - name: Lume Build - uses: lumeland/build/gh-pages@v1.0.0 + uses: lumeland/build/gh-pages@main diff --git a/_includes/blocks/calendar/calendar.css b/_includes/blocks/calendar/calendar.css new file mode 100644 index 0000000..80a5614 --- /dev/null +++ b/_includes/blocks/calendar/calendar.css @@ -0,0 +1,33 @@ +.block-calendar { + display: grid; + grid-template-columns: subgrid; + + > div { + display: grid; + grid-column: start / end; + row-gap: 2rem; + column-gap: 4rem; + } +} + +.event summary { + display: block; +} +.event-header { + display: grid; + grid-template-columns: 150px 1fr; + grid-template-areas: "time title" ". subtitle"; + cursor: pointer; +} +.event-time { + grid-area: time; +} +.event-title { + grid-area: title; +} +.event-subtitle { + grid-area: subtitle; +} +.event-description { + margin-left: 150px; +} \ No newline at end of file diff --git a/_includes/blocks/calendar/calendar.vto b/_includes/blocks/calendar/calendar.vto new file mode 100644 index 0000000..440f0c5 --- /dev/null +++ b/_includes/blocks/calendar/calendar.vto @@ -0,0 +1,32 @@ +
+
+
+

{{ block.title }}

+
+ + {{ for day of block.days }} +

{{ day.title }}

+ + {{ for event of day.events }} +
+ +
+ + {{ event.title }} + + {{ if event.subtitle }} +

+ {{ event.subtitle }} +

+ {{ /if }} +
+
+ +
+ {{ event.description |> md }} +
+
+ {{ /for }} + {{ /for }} +
+
diff --git a/index.yml b/index.yml index dd1b198..a384b95 100644 --- a/index.yml +++ b/index.yml @@ -85,6 +85,22 @@ blocks: icon: car description: Tienes sitio de sobra para aparcar. id: donde + - type: calendar + theme: is-light width-box fox-fill + title: Agenda + days: + - title: Jueves, 14 de noviembre + events: + - time: 9:00 - 12:00h + title: Item de agenda + description: | + Esperamos que no, la Tarugoconf Sofá Edition será única e irrepetible, como las circunstancias en las que se organiza y celebra, pero si este experimento sale bien, es probable que la Tarugo se convierta en un evento híbrido que pueda ser disfrutado presencialmente y desde casa. + - time: 11:00 - 12:00h + title: Item de agenda + subtitle: Subtítulo de item de agenda + description: | + Esperamos que no, la Tarugoconf Sofá Edition será única e irrepetible, como las circunstancias en las que se organiza y celebra, pero si este experimento sale bien, es probable que la Tarugo se convierta en un evento híbrido que pueda ser disfrutado presencialmente y desde casa. + - type: separator width: is-default - type: faq diff --git a/styles/main.css b/styles/main.css index 16a3926..d03b361 100644 --- a/styles/main.css +++ b/styles/main.css @@ -11,6 +11,7 @@ @import "styles/ui/footer.css" layer(ui); /* Blocks */ +@import "blocks/calendar/calendar.css" layer(blocks); @import "blocks/contact/contact.css" layer(blocks); @import "blocks/faq/faq.css" layer(blocks); @import "blocks/header/header.css" layer(blocks);