-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from ThatConference/cs/speakers
feat: adds event speakers page
- Loading branch information
Showing
11 changed files
with
156 additions
and
34 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
29 changes: 29 additions & 0 deletions
29
src/routes/(that conferences)/_components/speakers/Hero.svelte
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<script> | ||
export let event; | ||
import dayjs from 'dayjs'; | ||
import advancedFormat from 'dayjs/plugin/advancedFormat'; | ||
import Hero from '$elements/layouts/Hero.svelte'; | ||
dayjs.extend(advancedFormat); | ||
const venue = event.venues[0]; | ||
</script> | ||
|
||
<Hero imagePath="/images/heros/keynote.jpeg"> | ||
<div class="flex flex-col justify-between"> | ||
<div class="flex max-w-3xl flex-col space-y-8"> | ||
<h2 class="text-2xl font-bold uppercase tracking-wider text-white antialiased"> | ||
<span class="text-green-500">{`${venue.city}, ${venue.state}`}</span> / {dayjs( | ||
event.startDate | ||
).format('MMMM Do')} - {dayjs(event.endDate).format('Do, YYYY')} | ||
</h2> | ||
<h1 | ||
class="text-4xl font-extrabold uppercase text-white sm:text-5xl md:text-6xl lg:text-5xl xl:text-6xl"> | ||
THAT Conference <br /> | ||
Speakers | ||
</h1> | ||
</div> | ||
</div> | ||
</Hero> |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export async function load({ parent }) { | ||
let { event } = await parent(); | ||
|
||
return { | ||
speakers: event.speakers, | ||
event | ||
}; | ||
} |
24 changes: 24 additions & 0 deletions
24
src/routes/(that conferences)/tx/[year]/speakers/+page.svelte
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<script> | ||
export let data; | ||
import Hero from '../../../_components/speakers/Hero.svelte'; | ||
import MemberCard from '$components/members/MemberCard.svelte'; | ||
let { speakers, event } = data; | ||
</script> | ||
|
||
<main> | ||
<header> | ||
<Hero {event} /> | ||
</header> | ||
|
||
<section class="mx-auto my-24 max-w-2xl lg:max-w-7xl"> | ||
<ul class="grid grid-cols-1 gap-6 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5"> | ||
{#each speakers as speaker (speaker.id)} | ||
<li class="col-span-1"> | ||
<MemberCard {...speaker} /> | ||
</li> | ||
{/each} | ||
</ul> | ||
</section> | ||
</main> |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export async function load({ parent }) { | ||
let { event } = await parent(); | ||
|
||
return { | ||
speakers: event.speakers, | ||
event | ||
}; | ||
} |
24 changes: 24 additions & 0 deletions
24
src/routes/(that conferences)/wi/[year]/speakers/+page.svelte
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<script> | ||
export let data; | ||
import Hero from '../../../_components/speakers/Hero.svelte'; | ||
import MemberCard from '$components/members/MemberCard.svelte'; | ||
let { speakers, event } = data; | ||
</script> | ||
|
||
<main> | ||
<header> | ||
<Hero {event} /> | ||
</header> | ||
|
||
<section class="mx-auto my-24 max-w-2xl lg:max-w-7xl"> | ||
<ul class="grid grid-cols-1 gap-6 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5"> | ||
{#each speakers as speaker (speaker.id)} | ||
<li class="col-span-1"> | ||
<MemberCard {...speaker} /> | ||
</li> | ||
{/each} | ||
</ul> | ||
</section> | ||
</main> |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.