Skip to content

Commit

Permalink
Merge pull request #43 from ThatConference/cs/pubprofile
Browse files Browse the repository at this point in the history
refactor: trailing slash default
  • Loading branch information
theClarkSell committed Sep 16, 2023
2 parents 2463363 + 6cd2149 commit 35c42f8
Show file tree
Hide file tree
Showing 96 changed files with 246 additions and 267 deletions.
2 changes: 1 addition & 1 deletion __MIGRATION_TBD__/__DELETE__/activities/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<Nav />
<ActionHeader title="Daily Activities">
{#if !createDisabled}
<HighlightLink href="/activities/create/">Create Activity</HighlightLink>
<HighlightLink href="/activities/create">Create Activity</HighlightLink>
{/if}
</ActionHeader>
</div>
Expand Down
2 changes: 1 addition & 1 deletion __MIGRATION_TBD__/__DELETE__/activities/clone/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
</div>
<div
class="mt-6 flex flex-col-reverse justify-stretch space-y-4 space-y-reverse sm:flex-row-reverse sm:justify-end sm:space-x-3 sm:space-y-0 sm:space-x-reverse md:mt-0 md:flex-row md:space-x-3">
<StandardLink href="/my/submissions/">View Your Past Submissions</StandardLink>
<StandardLink href="/my/submissions">View Your Past Submissions</StandardLink>
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</div>
<div
class="mt-6 flex flex-col-reverse justify-stretch space-y-4 space-y-reverse sm:flex-row-reverse sm:justify-end sm:space-x-3 sm:space-y-0 sm:space-x-reverse md:mt-0 md:flex-row md:space-x-3">
<StandardLink href="/my/submissions/">View Your Past Submissions</StandardLink>
<StandardLink href="/my/submissions">View Your Past Submissions</StandardLink>
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<div
class="mt-6 flex flex-col-reverse justify-stretch space-y-4 space-y-reverse sm:flex-row-reverse sm:justify-end sm:space-x-3 sm:space-y-0 sm:space-x-reverse md:mt-0 md:flex-row md:space-x-3">
<a
href="/my/submissions/"
href="/my/submissions"
class="inline-flex items-center justify-center rounded-md border border-transparent bg-blue-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:ring-offset-gray-100">
View Your Past Submissions
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
{#if activityDetails}
<ActionHeader title={activityDetails.title}>
<a
href="/activities/{activityId}/"
href="/activities/{activityId}"
class="rounded-md border-2 border-thatBlue-500 bg-white px-8 py-3 text-base font-medium leading-6 text-thatBlue-500 shadow transition duration-150 ease-in-out hover:bg-thatBlue-500 hover:text-white focus:border-thatBlue-800 focus:bg-thatBlue-500 focus:text-white focus:outline-none focus:ring-thatBlue-500 md:px-10 md:py-4 md:text-lg"
target="_blank"
rel="noopener">Activity Details</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import NavLink from './components/navLink.svelte';
function buildUrl(page) {
return `/events/${event.slug}/${page}/`;
return `/events/${event.slug}/${page}`;
}
function buildAnchorLink(anchor) {
Expand All @@ -17,7 +17,7 @@
<div class="mx-auto flex max-w-screen-xl items-center">
<!-- logo -->
<div class="cursor">
<a data-sveltekit-prefetch href="/events/{event.slug}/">
<a data-sveltekit-prefetch href="/events/{event.slug}">
<img class="h-16" src="/images/ThatConferenceLogo.svg" alt="THAT Logo" />
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
const dispatch = createEventDispatcher();
function buildUrl(page) {
return `/events/${event.slug}/${page}/`;
return `/events/${event.slug}/${page}`;
}
function buildAnchorLink(anchor) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
professional and family tracks, so there is something to learn and experience at all ages.
</p>
<div class="pt-8">
<ActionLink href={`/events/${event.slug}/schedule/`}>View Schedule</ActionLink>
<ActionLink href={`/events/${event.slug}/schedule`}>View Schedule</ActionLink>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
professional and family tracks, so there is something to learn and experience at all ages.
</p>
<div class="pt-8">
<ActionLink href={`/events/${event.slug}/schedule/`}>View Schedule</ActionLink>
<ActionLink href={`/events/${event.slug}/schedule`}>View Schedule</ActionLink>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}
</script>

<div class="relative ">
<div class="relative">
<div class="pt-12 sm:pt-16 lg:pt-20">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<slot name="header" />
Expand Down Expand Up @@ -113,7 +113,7 @@
</div>

<p class="mt-4 text-sm">
<a href="/membership/" class="font-medium text-gray-500 underline"> Learn More </a>
<a href="/membership" class="font-medium text-gray-500 underline"> Learn More </a>
</p>
<div class="mt-8">
<div class="flex flex-col">
Expand Down
4 changes: 2 additions & 2 deletions __MIGRATION_TBD__/__events copy__/_components/Notices.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@
<div
class="flex w-48 flex-shrink-0 justify-center rounded-md bg-gray-100 shadow-md hover:bg-gray-200">
<a
href="/support/covid-policies/"
class="border border-transparent px-5 py-3 text-base font-medium text-gray-900 ">
href="/support/covid-policies"
class="border border-transparent px-5 py-3 text-base font-medium text-gray-900">
Learn More
</a>
</div>
Expand Down
10 changes: 5 additions & 5 deletions src/_components/SponsorSimple.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
{#each partners as p}
<div
class="w-1/2 transform p-2 transition duration-500 ease-in-out hover:scale-105">
<a href="/partners/{p.slug}/">
<a href="/partners/{p.slug}">
<img class="lazyload h-24 w-full" src={p.companyLogo} alt={p.companyName} />
</a>
</div>
Expand All @@ -88,15 +88,15 @@
{#each explorers as p}
<div
class="w-1/5 transform p-4 transition duration-500 ease-in-out hover:scale-105">
<a href="/partners/{p.slug}/">
<a href="/partners/{p.slug}">
<img class="lazyload h-24 w-full" src={p.companyLogo} alt={p.companyName} />
</a>
</div>
{/each}
</div>

<div class="flex flex-col items-center">
<a class="font-semibold text-gray-500" href="/partners/{slug}/"
<a class="font-semibold text-gray-500" href="/partners/{slug}"
>Visit This Year's<span class="pl-1 font-extrabold text-thatRed-500"
>Sponsors</span
></a>
Expand Down Expand Up @@ -135,15 +135,15 @@
<div class="flex flex-wrap items-center justify-center">
{#each partners as p}
<div class="w-1/3 transform p-4 transition duration-500 ease-in-out hover:scale-105">
<a href="/partners/{p.slug}/">
<a href="/partners/{p.slug}">
<img class="lazyload h-24 w-full" src={p.companyLogo} alt={p.companyName} />
</a>
</div>
{/each}
</div>

<div class="flex justify-center">
<StandardLink href="/partners/{slug}/">View all Sponsors</StandardLink>
<StandardLink href="/partners/{slug}">View all Sponsors</StandardLink>
</div>

<div class="mt-24 text-2xl font-bold uppercase text-gray-500">
Expand Down
4 changes: 2 additions & 2 deletions src/_components/activities/ActivityDetails.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
{#each speakers as s}
<div class="flex flex-col items-center md:flex-row">
<div class="flex-shrink-0">
<a href="/members/{s.profileSlug}/">
<a href="/members/{s.profileSlug}">
<span class="relative inline-block">
<img
class="lazyload h-24 w-24 rounded-full"
Expand Down Expand Up @@ -273,7 +273,7 @@
<div class="mx-2 mt-2 rounded-md shadow-sm">
<a
rel="external"
href="/login/"
href="/login"
class="focus:ring-blue relative inline-flex items-center rounded-md border-2
border-thatBlue-500 bg-white px-4 py-2 text-sm
font-medium leading-5 text-gray-700 transition
Expand Down
24 changes: 12 additions & 12 deletions src/_components/activities/Card.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
<a
data-sveltekit-prefetch
open
href="/members/{host.profileSlug}/"
href="/members/{host.profileSlug}"
class="flex-shrink-0">
<span class="relative inline-block">
<img
Expand All @@ -170,7 +170,7 @@
<div class="w-100 visible flex flex-row justify-between px-5 md:hidden">
<div class="text-center">
<CardLink href="/activities/{id}/" icon={info} text="" />
<CardLink href="/activities/{id}" icon={info} text="" />
</div>
{#if !hasExpired}
Expand All @@ -192,7 +192,7 @@
</button>
{:else}
<a
href="/login/"
href="/login"
class="focus:ring-blue relative inline-flex items-center
justify-center rounded-br-lg border border-transparent py-2 text-xs
font-medium leading-4 text-gray-700
Expand All @@ -208,7 +208,7 @@
<div class="flex flex-grow flex-col justify-between">
<!-- COLUMN 2-->
<a data-sveltekit-prefetch href="/activities/{id}/">
<a data-sveltekit-prefetch href="/activities/{id}">
<h3 class="break-words pt-1 text-base font-medium leading-5 text-gray-900">
{title}
</h3>
Expand Down Expand Up @@ -244,7 +244,7 @@
<div class="border-t border-gray-200">
<div class="-mt-px grid grid-cols-2 md:grid-cols-4">
<div class="hidden border-l pl-1 text-center md:block">
<CardLink href="/activities/{id}/" icon={info} text={'More Details'} />
<CardLink href="/activities/{id}" icon={info} text={'More Details'} />
</div>
{#if !hasExpired}
Expand Down Expand Up @@ -273,7 +273,7 @@
</button>
{:else}
<a
href="/login/"
href="/login"
class="focus:ring-blue relative inline-flex flex-1 basis-0 items-center
justify-center rounded-br-lg border border-transparent py-2 text-xs
font-medium leading-4 text-gray-700
Expand All @@ -293,7 +293,7 @@
{#if canEdit()}
<div class="border-l pl-1 text-center">
<a
href="/activities/edit/{id}/"
href="/activities/edit/{id}"
class="focus:ring-blue relative inline-flex flex-1 basis-0 items-center
justify-center rounded-br-lg border border-transparent py-2 text-xs
font-medium leading-4 text-gray-700
Expand Down Expand Up @@ -366,7 +366,7 @@
</div>
{/if}
<div class="flex w-full flex-col items-center p-3">
<a data-sveltekit-prefetch href="/members/{host.profileSlug}/" class="flex-shrink-0">
<a data-sveltekit-prefetch href="/members/{host.profileSlug}" class="flex-shrink-0">
<span class="relative inline-block">
<img
class="lazyload h-24 w-24 rounded-full"
Expand All @@ -387,7 +387,7 @@
</a>
<div class="flex w-full flex-col justify-center text-center">
<a data-sveltekit-prefetch href="/activities/{id}/">
<a data-sveltekit-prefetch href="/activities/{id}">
<h3 class="break-words pt-1 text-base font-medium leading-5 text-gray-900">
{title}
</h3>
Expand Down Expand Up @@ -437,7 +437,7 @@
<div class="flex border-t border-gray-200">
<div class="flex flex-1">
<CardLink href="/activities/{id}/" icon={info} text="More Details" />
<CardLink href="/activities/{id}" icon={info} text="More Details" />
</div>
{#if !hasExpired}
Expand Down Expand Up @@ -469,7 +469,7 @@
<div class="-ml-px flex flex-1 border-l border-t border-gray-200">
<a
rel="external"
href="/login/"
href="/login"
class="focus:ring-blue relative inline-flex flex-1 basis-0 items-center
justify-center rounded-br-lg border border-transparent py-2 text-xs
font-medium leading-4 text-gray-700
Expand All @@ -487,7 +487,7 @@
{#if canEdit()}
<div class="-ml-px flex flex-1 basis-0 border-l border-gray-200">
<a
href="/activities/edit/{id}/"
href="/activities/edit/{id}"
class="focus:ring-blue relative inline-flex flex-1 basis-0 items-center
justify-center rounded-br-lg border border-transparent py-2 text-xs
font-medium leading-4 text-gray-700
Expand Down
2 changes: 1 addition & 1 deletion src/_components/activities/KeynoteSpeaker.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class="mx-auto mt-10 max-w-lg lg:col-start-2 lg:col-end-7 lg:row-start-1 lg:row-end-4 lg:mx-0 lg:mt-0 lg:max-w-none">
<div class="rounded-t-lg bg-white px-6 pb-10 pt-12">
<div class="text-center text-3xl font-semibold leading-9 text-gray-900 sm:-mx-6">
<a href="/members/{host.profileSlug}/" class="flex-shrink-0">
<a href="/members/{host.profileSlug}" class="flex-shrink-0">
<span class="relative inline-block">
<img
class="lazyload h-48 w-48 rounded-full"
Expand Down
2 changes: 1 addition & 1 deletion src/_components/activities/PanelSpeakerCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<div class="flex h-full w-full flex-col">
<div class="flex items-center justify-center space-x-3 p-3">
<a open href="/members/{speaker.profileSlug}/" class="flex-shrink-0">
<a open href="/members/{speaker.profileSlug}" class="flex-shrink-0">
<span class="relative inline-block">
<img
class="lazyload h-40 w-40 rounded-full"
Expand Down
4 changes: 2 additions & 2 deletions src/_components/cta/_CallForSpeakers.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</script>

<div class="bg-that-navy">
<div class="relative mx-auto max-w-7xl px-4 py-24 sm:px-6 lg:px-8 ">
<div class="relative mx-auto max-w-7xl px-4 py-24 sm:px-6 lg:px-8">
<div class="lg:grid lg:grid-cols-5 lg:items-start lg:gap-8">
<div class="col-span-5">
<h3
Expand All @@ -33,7 +33,7 @@
</p>

<div class="pt-12">
<HighlightLink href={`/call-for-counselors/${event.slug}/`}>Learn More</HighlightLink>
<HighlightLink href={`/call-for-counselors/${event.slug}`}>Learn More</HighlightLink>
</div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions src/_components/cta/_HomePageCFP.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</div>

<div class="space-y-2 text-center">
<div class="p-8 ">
<div class="p-8">
<p class="text-xl font-extrabold tracking-tight text-gray-500">
{dayjs(event.startDate).format('MMM D, YYYY')} - {dayjs(event.endDate).format(
'MMM D, YYYY'
Expand All @@ -52,7 +52,7 @@
<p>Become a Counselor</p>
<p>
<a
href={`/call-for-counselors/${event.slug}/`}
href={`/call-for-counselors/${event.slug}`}
class="text-that-orange hover:text-thatOrange-500">
Learn More &rarr;
</a>
Expand Down
4 changes: 2 additions & 2 deletions src/_components/events/MembershipCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}
</script>

<div class="relative ">
<div class="relative">
<div class="pt-12 sm:pt-16 lg:pt-20">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<slot name="header" />
Expand Down Expand Up @@ -113,7 +113,7 @@
</div>

<p class="mt-4 text-sm">
<a href="/membership/" class="font-medium text-gray-500 underline"> Learn More </a>
<a href="/membership" class="font-medium text-gray-500 underline"> Learn More </a>
</p>
<div class="mt-8">
<div class="flex flex-col">
Expand Down
Loading

0 comments on commit 35c42f8

Please sign in to comment.