Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jun 24, 2024
1 parent a19455f commit 7f28fa6
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
33 changes: 33 additions & 0 deletions _includes/blocks/calendar/calendar.css
Original file line number Diff line number Diff line change
@@ -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;
}
32 changes: 32 additions & 0 deletions _includes/blocks/calendar/calendar.vto
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<section id="{{ block.id }}" class="block-calendar theme {{ block.theme }}">
<div>
<header>
<h2 class="type-title">{{ block.title }}</h2>
</header>

{{ for day of block.days }}
<h3>{{ day.title }}</h3>

{{ for event of day.events }}
<details class="event">
<summary>
<div class="event-header">
<time class="event-time">{{ event.time }}</time>
<strong class="event-title">{{ event.title }}</strong>

{{ if event.subtitle }}
<p class="event-subtitle">
{{ event.subtitle }}
</p>
{{ /if }}
</div>
</summary>

<div class="event-description">
{{ event.description |> md }}
</div>
</details>
{{ /for }}
{{ /for }}
</div>
</section>
16 changes: 16 additions & 0 deletions index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7f28fa6

Please sign in to comment.