generated from maehr/github-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
149 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<section class="p-4 lg:p-10 prose lg:prose-xl"> | ||
<section class="p-4 lg:p-10 prose lg:prose-xl" role="main"> | ||
<slot /> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
import Container from '$lib/components/Container.svelte'; | ||
/** @type {import('./$types').PageData} */ | ||
export let data; | ||
const events = data.events.filter(({ startDate }) => new Date(startDate) > new Date()) | ||
const events = data.events.filter(({ startDate }) => new Date(startDate) > new Date()); | ||
events.forEach((date) => { | ||
const startDate = new Date(date.startDate); | ||
const endDate = new Date(date.endDate); | ||
|
@@ -26,38 +26,55 @@ | |
|
||
<Container> | ||
<h1>Agenda</h1> | ||
<h2>Veranstaltungen</h2> | ||
<ul> | ||
{#each paginatedEvents as { owner, title, shortDescription, originUrl, startDate, startTime, endTime }} | ||
<li> | ||
<hgroup> | ||
<h3>{owner}: {title}</h3> | ||
<p> | ||
{startDate} {#if startTime} | ||
({startTime} {#if endTime}- {endTime}{/if}){/if} | ||
<section> | ||
<h2>Veranstaltungen</h2> | ||
|
||
{#each paginatedEvents as event} | ||
<article class="card"> | ||
<h3 class="card-header">{event.owner}: {event.title}</h3> | ||
|
||
<p class="card-footer"> | ||
<time datetime={event.startDate}>{event.startDate}</time> | ||
{#if event.startTime} | ||
(<time>{event.startTime}</time> | ||
{#if event.endTime}- <time>{event.endTime}</time>{/if}) | ||
{/if} | ||
{event.shortDescription} <a href={event.originUrl}>Mehr Infos</a> | ||
</p> | ||
</hgroup> | ||
<p>{shortDescription} <a href={originUrl}>Mehr Infos</a></p> | ||
</li> | ||
|
||
</article> | ||
{/each} | ||
<Paginator bind:settings={paginationSettings} showNumerals amountText="Veranstaltungen" /> | ||
</ul> | ||
<h2>Dauerausstellungen</h2> | ||
<ul> | ||
{#each exhibitions as { owner, title, shortDescription, longDescription, originUrl }} | ||
<li> | ||
<h3>{owner}: {title}</h3> | ||
<p> | ||
{#if longDescription} | ||
{longDescription} | ||
{:else} | ||
{#if shortDescription} | ||
{shortDescription} | ||
{/if} | ||
<nav aria-label="Veranstaltungsnavigation"> | ||
<Paginator bind:settings={paginationSettings} showNumerals amountText="Veranstaltungen" /> | ||
</nav> | ||
</section> | ||
<section> | ||
<h2>Dauerausstellungen</h2> | ||
|
||
{#each exhibitions as exhibition} | ||
<article class="card"> | ||
<h3 class="card-header">{exhibition.owner}: {exhibition.title}</h3> | ||
<p class="card-footer"> | ||
{#if exhibition.longDescription} | ||
{exhibition.longDescription} | ||
{:else if exhibition.shortDescription} | ||
{exhibition.shortDescription} | ||
{/if} | ||
<a href={originUrl}>Mehr Infos</a> | ||
<a href={exhibition.originUrl}>Mehr Infos</a> | ||
</p> | ||
</li> | ||
</article> | ||
{/each} | ||
</ul> | ||
</section> | ||
<section> | ||
<h2>Agendabasel.ch</h2> | ||
<p> | ||
Alle Daten auf dieser Seite stammen von <a href="https://agendabasel.ch">agendabasel.ch</a> | ||
und werden der Stiftung Stadt.Geschichte.Basel im Rahmen einer Kooperation kostenlos zur Verfügung | ||
gestellt. Falls Sie eine Veranstaltung oder Ausstellung auf Stadt.Geschichte.Basel publizieren | ||
möchten, wenden Sie sich bitte direkt an agendabasel.ch oder an | ||
<a href="mailto:[email protected]">[email protected]</a>. | ||
Die Stiftung Stadt.Geschichte.Basel übernimmt keine Verantwortung für die Richtigkeit der | ||
Daten. | ||
</p> | ||
</section> | ||
</Container> |