Skip to content

Commit 13339b5

Browse files
committed
style(events): align styling with attendance pages
- Use rounded-xl shadow-sm for table and calendar cards - Change table header to bg-gray-50 - Add transition-colors to row hover states
1 parent 748ee4a commit 13339b5

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

docs/scratchpad.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ Absent reason.
1010
Events view, list of people, show link to apprentices to go to personalised
1111

1212

13-
Attendace
14-
Latenes on grpah
15-
1613

1714
survey URL is OK?
1815

src/routes/admin/events/+page.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -994,10 +994,10 @@
994994
{#if events.length === 0}
995995
<p class="text-gray-500">No events found.</p>
996996
{:else}
997-
<div bind:this={tableContainer} class="overflow-auto max-h-140 border border-gray-200 rounded-lg">
997+
<div bind:this={tableContainer} class="overflow-auto max-h-140 bg-white border border-gray-200 rounded-xl shadow-sm">
998998
<table class="w-full border-collapse">
999999
<thead class="sticky top-0 z-10">
1000-
<tr class="bg-gray-100 text-left">
1000+
<tr class="bg-gray-50 text-left">
10011001
<th class="p-2 border-b font-semibold">
10021002
<button
10031003
onclick={() => toggleSort('name')}
@@ -1479,7 +1479,7 @@
14791479
<!-- Normal display row -->
14801480
<tr
14811481
data-event-id={event.id}
1482-
class="border-b hover:bg-gray-100"
1482+
class="border-b hover:bg-gray-50 transition-colors"
14831483
class:cursor-pointer={hasRoster && !isAddingEvent}
14841484
class:bg-blue-50={isExpanded}
14851485
class:bg-stone-100={isPast && !isExpanded}
@@ -1972,7 +1972,7 @@
19721972
</div>
19731973
{/if}
19741974
</div>
1975-
<div class="ec-calendar-wrapper border border-gray-200 rounded-lg p-4 bg-white" class:series-mode={isCreatingSeries}>
1975+
<div class="ec-calendar-wrapper bg-white border border-gray-200 rounded-xl shadow-sm p-4" class:series-mode={isCreatingSeries}>
19761976
<Calendar plugins={calendarPlugins} options={calendarOptions} />
19771977
</div>
19781978
</section>

0 commit comments

Comments
 (0)