diff --git a/src/components/schedule/break.astro b/src/components/schedule/break.astro index 3da93b677..33fa3920b 100644 --- a/src/components/schedule/break.astro +++ b/src/components/schedule/break.astro @@ -3,12 +3,13 @@ export interface Props { time: string; title: string; style?: any; + className?: string; } -const { time, title, style }: Props = Astro.props; +const { time, title, style, className }: Props = Astro.props; --- -
+
{time}{" "} {title} {time} {title} diff --git a/src/components/schedule/day.astro b/src/components/schedule/day.astro index 35731623d..969231505 100644 --- a/src/components/schedule/day.astro +++ b/src/components/schedule/day.astro @@ -322,6 +322,19 @@ posters.forEach((poster) => { const date = parseISO(dayName); const dateText = format(date, "eeee - do MMMM"); + + + + + const lastEndTime = Math.max( + ...slots.flatMap((slot) => slot.sessions.map((s) => timeToNumber(s.endTime))) + ); + + const endStart = numberToTime(lastEndTime); + const endStartDate = addMinutes(parseISO(dayName), lastEndTime); + const endEndDate = addMinutes(endStartDate, 10); + const endEnd = numberToTime(lastEndTime + 10); + ---
{format(slot.start, "HH:mm")}
- {sessionsByTime[slot.startTime] + {(sessionsByTime[slot.startTime] ?? []) .sort(sortSessionByRooms) .map((session) => { const style = getSessionStyle(session); @@ -407,7 +420,14 @@ const dateText = format(date, "eeee - do MMMM");
)) } +
+ +
@@ -426,6 +446,19 @@ const dateText = format(date, "eeee - do MMMM"); { width: 100%; } + + + :global(.day-end) { + display: flex; + align-items: center; + text-align: center; + justify-items: center; + background-color: #FCFBFA; + border-radius: 10px; + margin: 10px 1.5rem; + padding:2px 8px; + font-size: 0.8rem; +} :global(body) { } @@ -548,6 +581,14 @@ const dateText = format(date, "eeee - do MMMM"); grid-column: var(--col-start) / var(--col-end); } + + :global(.day-end){ + font-size: 1.2rem; + margin: 2px; + padding: 8px; + } + + .time { padding: 8px; grid-column: 1 / 2; diff --git a/src/pages/session/[slug].astro b/src/pages/session/[slug].astro index 96f47dafc..781530e4a 100644 --- a/src/pages/session/[slug].astro +++ b/src/pages/session/[slug].astro @@ -98,6 +98,20 @@ const nextSessionsOrdered = sameRoomNextSession ) } + { + entry.data.end && ( + <> +
End:
+
+ {formatInTimeZone( + entry.data.end, + "Europe/Prague", + "HH:mm 'on' dd MMMM yyyy", + )} +
+ + ) + }
Duration:
{entry.data.duration} minutes