Skip to content

Commit

Permalink
Merge pull request #76 from ThatConference/cs/75
Browse files Browse the repository at this point in the history
fix: #75
  • Loading branch information
theClarkSell committed Sep 21, 2023
2 parents edf22e3 + 4ac3d0c commit 8239d14
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 21 deletions.
14 changes: 6 additions & 8 deletions src/_elements/links/Action.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@
button={true}
{reload}
{href}
class="cursor-pointer rounded-md border-2 border-transparent bg-thatBlue-500 px-8 py-3
text-center text-base font-medium leading-6 text-white shadow transition
duration-150 ease-in-out hover:bg-thatBlue-400 focus:border-thatBlue-700
focus:outline-none focus:ring-that-blue
md:px-10 md:py-4 md:text-lg">
<span>
<slot />
</span>
class="inline-flex flex-1 cursor-pointer whitespace-nowrap rounded-md border-2 border-transparent bg-thatBlue-500 px-8
py-3 text-center text-base font-medium leading-6 text-white shadow
transition duration-150 ease-in-out hover:bg-thatBlue-400
focus:border-thatBlue-700 focus:outline-none
focus:ring-that-blue md:my-4 md:px-10 md:text-lg">
<slot />
</a>
33 changes: 20 additions & 13 deletions src/routes/(root)/_root/components/hero.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
<script>
import { Action as ActionLink } from '$elements/links';
</script>

<section class="relative overflow-x-hidden">
<div class="mx-auto my-12 max-w-screen-xl px-4 sm:px-6">
<div class="flex flex-col space-y-24 lg:grid lg:grid-cols-7">
Expand All @@ -25,15 +21,13 @@
</a>
once a year but we host digital events all the time.
</p>
<div
class="mt-20 flex flex-col items-center justify-center space-y-12 sm:flex-row sm:justify-start sm:space-x-4 sm:space-y-0">
<div>
<ActionLink href="/tx">THAT Conference Texas</ActionLink>
</div>

<div>
<ActionLink href="/wi">THAT Conference Wisconsin</ActionLink>
</div>
<div class="mt-20 flex flex-wrap">
<a href="/tx" class="anchorButton m-2 grow">
<div>THAT CONFERENCE TEXAS</div>
</a>
<a href="/wi" class="anchorButton m-2 grow">
<div>THAT CONFERENCE WISCONSIN</div>
</a>
</div>
</div>
<div class="col-span-3 flex flex-col items-center justify-center">
Expand All @@ -51,3 +45,16 @@
</div>
</div>
</section>

<style lang="postcss">
.anchorButton {
@apply rounded-md bg-thatBlue-500 px-4 py-4 text-center font-medium tracking-wide text-white shadow-md md:text-xl;
}
.anchorButton:hover {
@apply bg-thatBlue-400 transition duration-150 ease-in-out;
}
.anchorButton:focus {
@apply underline underline-offset-4;
}
</style>
1 change: 1 addition & 0 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const config = {
]
: [
preprocess({
postcss: true,
preserve: ['ld+json']
}),
mdsvex(mdsvexConfig)
Expand Down

0 comments on commit 8239d14

Please sign in to comment.