-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In this PR we're adding the route that handles all things THAT Conference Online. Everything that stems from that event listing page.
- Loading branch information
Showing
47 changed files
with
1,491 additions
and
698 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
51 changes: 51 additions & 0 deletions
51
src/_components/navigation/thatConferenceLive/EventNav.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,51 @@ | ||
<script> | ||
export let event; | ||
import { Shell as ShellButton, StandardShell } from '$elements/buttons'; | ||
import NavLink from '../_components/NavLink.svelte'; | ||
function buildUrl(page) { | ||
return `/${event.slug}/${page}/`; | ||
} | ||
function buildAnchorLink(anchor) { | ||
return `/${event.slug}#${anchor}`; | ||
} | ||
</script> | ||
|
||
<div class=" bg-white py-12"> | ||
<div class="mx-auto flex max-w-screen-2xl items-center justify-between"> | ||
<!-- logo --> | ||
<div class="flex items-center"> | ||
<div class="cursor"> | ||
<a data-sveltekit-prefetch href="/{event.slug}/"> | ||
<img | ||
class="h-16" | ||
src="/images/That-Conference-Online-Logo.svg" | ||
alt="THAT Conference Logo" /> | ||
</a> | ||
</div> | ||
|
||
<!-- links --> | ||
<div class="ml-8 flex space-x-4 text-lg font-bold"> | ||
<NavLink href={buildUrl('speakers')}>Speakers</NavLink> | ||
<NavLink href={buildAnchorLink('schedule')}>Schedule</NavLink> | ||
<NavLink href={buildUrl('attendees')}>Attendees</NavLink> | ||
<NavLink href={buildUrl('sponsors')}>Sponsors</NavLink> | ||
</div> | ||
</div> | ||
|
||
<div class="flex space-x-4"> | ||
<ShellButton> | ||
<div class="px-4 py-2"> | ||
<a href="/sponsorships/apply/#prospectus">Sponsor Today</a> | ||
</div> | ||
</ShellButton> | ||
<StandardShell> | ||
<div class="px-4 py-2"> | ||
<a href={buildAnchorLink('tickets')}>Purchase Tickets</a> | ||
</div> | ||
</StandardShell> | ||
</div> | ||
</div> | ||
</div> |
106 changes: 106 additions & 0 deletions
106
src/_components/navigation/thatConferenceLive/MobileEventNav.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,106 @@ | ||
<script> | ||
export let event; | ||
export let hidden; | ||
import { page } from '$app/stores'; | ||
import { createEventDispatcher } from 'svelte'; | ||
import { clickOutside } from '$elements/actions'; | ||
import { StandardShell } from '$elements/buttons'; | ||
import MobileUsersProfile from '$components/navigation/_components/MobileUsersProfile.svelte'; | ||
import NavLink from '../_components/NavLink.svelte'; | ||
const dispatch = createEventDispatcher(); | ||
function buildUrl(page) { | ||
return `/${event.slug}/${page}/`; | ||
} | ||
function buildAnchorLink(anchor) { | ||
return `/${event.slug}#${anchor}`; | ||
} | ||
</script> | ||
|
||
<div | ||
use:clickOutside | ||
on:click_outside={() => dispatch('show', true)} | ||
class="relative bg-white py-6"> | ||
<div class="mx-8 flex items-center justify-between"> | ||
<!-- logo --> | ||
<div class="cursor"> | ||
<a href={`/${event.slug}`}> | ||
<img class="h-16" src="/images/ThatConferenceLogo.svg" alt="THAT Logo" /> | ||
</a> | ||
</div> | ||
|
||
<!-- button --> | ||
<div> | ||
{#if hidden} | ||
<button | ||
type="button" | ||
class="rounded-md p-2 | ||
text-gray-600 transition duration-150 ease-in-out | ||
hover:bg-gray-100 hover:text-gray-500 | ||
focus:bg-gray-100 focus:text-gray-500 focus:outline-none" | ||
on:click|preventDefault={() => dispatch('show', false)}> | ||
<svg class="h-10 w-12" stroke="currentColor" fill="none" viewBox="0 0 24 24"> | ||
<path | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
stroke-width="2" | ||
d="M4 6h16M4 12h16M4 18h16" /> | ||
</svg> | ||
</button> | ||
{:else} | ||
<button | ||
type="button" | ||
class="rounded-md p-2 | ||
text-gray-600 transition duration-150 ease-in-out | ||
hover:bg-gray-100 hover:text-gray-500 | ||
focus:bg-gray-100 focus:text-gray-500 focus:outline-none" | ||
on:click|preventDefault={() => dispatch('show', true)}> | ||
<svg class="h-10 w-12" stroke="currentColor" fill="none" viewBox="0 0 24 24"> | ||
<path | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
stroke-width="2" | ||
d="M6 18L18 6M6 6l12 12" /> | ||
</svg> | ||
</button> | ||
{/if} | ||
</div> | ||
</div> | ||
|
||
{#if !hidden} | ||
<div class="mx-4 mt-6"> | ||
<div class=" border-t"> | ||
<div class="flex w-full flex-col space-y-2 py-6 text-base font-medium"> | ||
<NavLink on:click={() => dispatch('show', true)} href={buildAnchorLink('tickets')} | ||
>Tickets</NavLink> | ||
<NavLink on:click={() => dispatch('show', true)} href={buildUrl('speakers')} | ||
>Speakers</NavLink> | ||
<NavLink on:click={() => dispatch('show', true)} href={buildAnchorLink('schedule')} | ||
>Schedule</NavLink> | ||
<NavLink on:click={() => dispatch('show', true)} href={buildUrl('attendees')} | ||
>Attendees</NavLink> | ||
<NavLink on:click={() => dispatch('show', true)} href={buildUrl('sponsors')} | ||
>Sponsors</NavLink> | ||
</div> | ||
|
||
<div class="py-6"> | ||
<div> | ||
{#if $page.data.user.isAuthenticated} | ||
<MobileUsersProfile darkMode={true} /> | ||
{:else} | ||
<StandardShell> | ||
<div class="px-4 py-2"> | ||
<a rel="external" href="/login/">Log in</a> | ||
</div> | ||
</StandardShell> | ||
{/if} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{/if} | ||
</div> |
26 changes: 26 additions & 0 deletions
26
src/_components/navigation/thatConferenceLive/MobileNavHat.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,26 @@ | ||
<script> | ||
export let event; | ||
import { LeftArrow } from '$elements/svgs'; | ||
const [venue] = event.venues; | ||
</script> | ||
|
||
<div class="relative col-span-1 grid h-14 place-self-center bg-that-navy text-white"> | ||
<div class="mx-8 flex items-center justify-between"> | ||
<div class="font-semibold antialiased"> | ||
<a href="/" class="flex items-center space-x-2"> | ||
<LeftArrow /> | ||
<span>Back to THAT</span> | ||
</a> | ||
</div> | ||
|
||
<div> | ||
<a href={`/${event.slug}`}> | ||
<div class="flex space-x-4 font-semibold uppercase tracking-wide antialiased"> | ||
<div class="uppercase">{`${venue.city}, ${venue.state}`}</div> | ||
</div> | ||
</a> | ||
</div> | ||
</div> | ||
</div> |
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,38 @@ | ||
<script> | ||
export let event; | ||
import { page } from '$app/stores'; | ||
import lodash from 'lodash'; | ||
import CreateProfileNotification from '$components/notifications/CreateProfile.svelte'; | ||
import NavHat from './NavHat.svelte'; | ||
import EventNav from './EventNav.svelte'; | ||
import MobileNavHat from './MobileNavHat.svelte'; | ||
import MobileEventNav from './MobileEventNav.svelte'; | ||
const { isEmpty } = lodash; | ||
let hidden = true; | ||
function handleShow({ detail }) { | ||
hidden = detail; | ||
} | ||
</script> | ||
|
||
<nav class="relative"> | ||
{#if $page.data.user.isAuthenticated} | ||
{#if isEmpty($page.data.user.profile)} | ||
<CreateProfileNotification /> | ||
{/if} | ||
{/if} | ||
|
||
<div class="block xl:hidden"> | ||
<MobileNavHat {event} /> | ||
<MobileEventNav {hidden} {event} on:show={handleShow} /> | ||
</div> | ||
|
||
<div class="hidden xl:block"> | ||
<NavHat {event} /> | ||
<EventNav {event} /> | ||
</div> | ||
</nav> |
39 changes: 39 additions & 0 deletions
39
src/_components/navigation/thatConferenceLive/NavHat.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,39 @@ | ||
<script> | ||
import { LeftArrow } from '$elements/svgs'; | ||
import UserProfile from '$components/navigation/_components/UserProfile.svelte'; | ||
import Cart from '$components/navigation/_components/Cart.svelte'; | ||
</script> | ||
|
||
<div class="relative h-16 bg-that-navy px-24 text-white"> | ||
<div class="flex h-full items-center justify-between"> | ||
<div class="flex space-x-3"> | ||
<div class="font-semibold antialiased"> | ||
<a href="/" class="flex items-center space-x-2"> | ||
<LeftArrow /> | ||
<span>Back to THAT</span> | ||
</a> | ||
</div> | ||
<div>-</div> | ||
<div class="font-semibold antialiased"> | ||
<a href="/" class="flex items-center space-x-2"> | ||
<span>Join Free, Claim Your Seat Today!</span> | ||
</a> | ||
</div> | ||
</div> | ||
<div class="flex items-center space-x-12"> | ||
<div class="flex items-center space-x-3"> | ||
<a href={`/`}> | ||
<div class="flex space-x-4 font-semibold uppercase tracking-wide antialiased"> | ||
<div>THAT Conference Online</div> | ||
</div> | ||
</a> | ||
</div> | ||
|
||
<div class="flex items-center space-x-4 font-bold"> | ||
<Cart /> | ||
<UserProfile /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { redirect } from '@sveltejs/kit'; | ||
// import { events } from '$lib/config.public'; | ||
|
||
export async function load() { | ||
//todo: grab from the config | ||
throw redirect(302, `/online/tx/2024`); | ||
} |
17 changes: 0 additions & 17 deletions
17
src/routes/(that conference online)/[event]/[date]/+layout.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
ce8bd11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
thatconference-com – ./
thatconference-com-that-conference.vercel.app
thatconference-com-git-main-that-conference.vercel.app
thatconference-com.vercel.app
thatconference.com