Skip to content

Commit

Permalink
chore: close the registrations
Browse files Browse the repository at this point in the history
  • Loading branch information
prathwik0 committed Oct 27, 2023
1 parent c0acbec commit d5502c7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
9 changes: 5 additions & 4 deletions src/lib/components/CardGrids/EventCardgrid.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
<div class={`grid-container mx-20 gap-10 py-16 `}>
{#each events as event}
<div class="flex w-full flex-col">
<div class="bg-muted-light dark:bg-muted-dark dark:custom-shadow-black flex-1 rounded-lg px-5 py-8 shadow-xl dark:drop-shadow-md">
<div class="dark:custom-shadow-black flex-1 rounded-lg bg-muted-light px-5 py-8 shadow-xl dark:bg-muted-dark dark:drop-shadow-md">
<div class="flex justify-center">
{#if event.image}
<img src={event?.image} alt={event.title} class="border-muted-light dark:border-muted-dark border object-cover" />
<img src={event?.image} alt={event.title} class="border border-muted-light object-cover dark:border-muted-dark" />
{/if}
</div>
<h1 class="py-4 text-center text-2xl font-bold">{event.title}</h1>
Expand All @@ -31,11 +31,12 @@
{/if}

<div class="flex items-center justify-center pt-4">
{#if event.registrationLink}
<!-- {#if event.registrationLink}
<a href={event.registrationLink} target="_blank">
<button class="bg-brand rounded-xl px-4 py-2 text-white duration-200 hover:scale-110"> Register Now </button>
</a>
{/if}
{/if} -->
<button class="rounded-xl bg-brand px-4 py-2 text-white">Registration Closed! Spot Registrations are Available</button>
</div>
</div>
</div>
Expand Down
31 changes: 16 additions & 15 deletions src/routes/(navbar)/(spacetop)/events/[type]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,22 @@
export let data: PageData;
</script>

<!--
{#if eventType !== 'current'}
<div class={`${eventType === 'upcoming' ? 'h-screen' : ''}`}>
<div class={'flex w-full justify-center space-x-8 pt-16 font-bold md:space-x-16'}>
<a href="/events/previous">
<button class={`text-xl md:text-2xl ${eventType === 'previous' ? 'underline underline-offset-4' : 'no-underline'}`} on:click={() => (eventType = 'previous')}> Previous Events </button>
</a>
<a href="/events/upcoming">
<button class={`text-xl md:text-2xl ${eventType === 'upcoming' ? 'underline underline-offset-4' : 'no-underline'}`} on:click={() => (eventType = 'upcoming')}> Upcoming Events </button>
</a>
</div>

<EventCardgrid events={data.events} />
</div>
{:else}
<div>
<RegistrationPage />
<RegistrationPage />
{/if}
-->

<div class={`${eventType === 'upcoming' ? 'h-screen' : ''}`}>
<div class={'flex w-full justify-center space-x-8 pt-16 font-bold md:space-x-16'}>
<a href="/events/previous">
<button class={`text-xl md:text-2xl ${eventType === 'previous' ? 'underline underline-offset-4' : 'no-underline'}`} on:click={() => (eventType = 'previous')}> Previous Events </button>
</a>
<a href="/events/upcoming">
<button class={`text-xl md:text-2xl ${eventType === 'upcoming' ? 'underline underline-offset-4' : 'no-underline'}`} on:click={() => (eventType = 'upcoming')}> Upcoming Events </button>
</a>
</div>
{/if}

<EventCardgrid events={data.events} />
</div>

0 comments on commit d5502c7

Please sign in to comment.