Skip to content

Commit

Permalink
feat: additional layout tweaks (#97)
Browse files Browse the repository at this point in the history
* feat: change agenda menu layout

* feat: update card style

* feat: update wording
  • Loading branch information
mtwente authored Mar 1, 2024
1 parent a365089 commit a8eeb2f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/Post.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
export let post;
</script>

<div class="card variant-ringed-primary mt-4 overflow-hidden" aria-label={post.title}>
<div class="card variant-ringed-primary mt-4 overflow-hidden ring-2" aria-label={post.title}>
<header>
<img src="{base}{post.featuredImage}" class="max-h-96 w-full object-contain px-px" alt="" />
</header>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/PostNav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<nav
aria-label="Blogpost-Navigation, zeigt Seite {page} aus {lastPage}"
class="variant-ringed-primary btn-group mt-4 grid grid-cols-3 justify-items-stretch text-center"
class="variant-ringed-primary btn-group mt-4 grid grid-cols-3 justify-items-stretch text-center ring-2"
data-sveltekit-preload-data
>
<div class="group hover:bg-primary-500 hover:text-white">
Expand Down
24 changes: 18 additions & 6 deletions src/routes/agenda/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,13 @@
In Zusammenarbeit mit unseren Ko&shy;ope&shy;rations&shy;partnern präsentieren wir Ihnen eine
vielfältige Auswahl an Veranstaltungen, die im Raum Basel stattfinden.
</p>
<RadioGroup active="variant-filled-primary" hover="hover:variant-soft-primary">
<RadioGroup
display="flex"
background="bg-white"
border="border-token border-primary-500"
active="variant-filled-primary"
hover="hover:variant-ringed-primary hover:ring-2"
>
<RadioItem bind:group={agenda} name="justify" value={'events'}
>Ver&shy;anstal&shy;tungen ({processedEvents.length})</RadioItem
>
Expand All @@ -156,7 +162,13 @@
<RadioItem bind:group={agenda} name="justify" value={'info'}>ⓘ</RadioItem>
</RadioGroup>
{#if agenda === 'events'}
<RadioGroup active="variant-filled-primary" hover="hover:variant-soft-primary">
<RadioGroup
display="flex mt-4"
background="bg-white"
border="border-token border-primary-500"
active="variant-filled-primary"
hover="hover:variant-ringed-primary hover:ring-2"
>
<RadioItem bind:group={filter} name="justify" value={0}
>{thisMonthName} ({thisMonthEvents.length})</RadioItem
>
Expand All @@ -169,14 +181,14 @@
</RadioGroup>
{#if filteredEvents.length > 0}
{#each filteredEvents as event}
<article class="card variant-ringed-primary mt-4 px-4">
<article class="card variant-ringed-primary mt-4 px-4 ring-2">
<hgroup class="m-0">
<h3>{event.title} ({event.owner})</h3>
<h4>
📅 <time datetime={event.localizedEndDate}>{event.localizedStartDate}</time>
{#if event.startTime}
🕒 <time>{event.startTime}</time>
{#if event.endTime}- <time>{event.endTime}</time>{/if}
{#if event.endTime} <time>{event.endTime}</time>{/if}
{/if}
</h4>
</hgroup>
Expand All @@ -186,12 +198,12 @@
</article>
{/each}
{:else}
<p>Keine Veranstaltungen gefunden.</p>
<p>Keine Veranstaltungen in diesem Zeitraum gefunden.</p>
{/if}
{/if}
{#if agenda === 'exhibitions'}
{#each exhibitions as exhibition}
<article class="card variant-ringed-primary">
<article class="card variant-ringed-primary ring-2">
<h3 class="card-header">{exhibition.owner}: {exhibition.title}</h3>
<p class="card-footer">
{#if exhibition.longDescription}
Expand Down

0 comments on commit a8eeb2f

Please sign in to comment.