Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions src/components/work-item.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
lazy?: boolean;
linkText?: string;
caseStudyLink?: string;
/** Optional App Store listing URL, shown beside the site link */
appStore?: string;
/** Optional Google Play listing URL, shown beside the site link */
playStore?: string;
featured?: boolean;
/** Optional looping video (e.g. "/videos/foo.mp4") shown over the poster */
video?: string;
Expand All @@ -24,10 +28,19 @@
lazy = true,
linkText = "View Site",
caseStudyLink,
appStore,
playStore,
featured = false,
video,
}: Props = $props();

const appLinks = $derived(
[
appStore && { href: appStore, label: "App Store" },
playStore && { href: playStore, label: "Google Play" },
].filter((appLink) => !!appLink),
);

let media: HTMLAnchorElement;
let videoEl = $state<HTMLVideoElement>();
// The poster carries SSR and the first paint; the video only mounts on
Expand Down Expand Up @@ -203,6 +216,39 @@
<span class="sr-only"> (opens a new tab)</span>
</a>
</div>
{#each appLinks as appLink (appLink.label)}
<div>
<a
class={clsx(
"inline-flex gap-2 items-center font-semibold underline decoration-1 underline-offset-4 transition-colors",
featured
? "text-white decoration-blue-300 hover:text-blue-200"
: "text-blue-700 decoration-blue-300 hover:text-blue-500",
)}
href={appLink.href}
rel="noopener noreferrer"
target="_blank"
>
<svg
fill="none"
height="1rem"
role="presentation"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
stroke="currentColor"
viewBox="0 0 24 24"
width="1rem"
xmlns="http://www.w3.org/2000/svg"
>
<rect x="5" y="2" width="14" height="20" rx="2" ry="2" />
<line x1="12" y1="18" x2="12.01" y2="18" />
</svg>
{appLink.label}
<span class="sr-only"> listing for {title} (opens a new tab)</span>
</a>
</div>
{/each}
{#if caseStudyLink}
<div>
<a
Expand Down
Binary file added src/images/work/what-to-do-in-salt-lake.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/routes/work/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import WasatchCovers from '../../images/work/wasatch-covers.jpg?w=320;480;640;800;960;1200&enhanced';
import WasatchBlade from '../../images/work/wasatch-blade.jpg?w=320;480;640;800;960;1200&enhanced';
import UtahMountainAdventures from '../../images/work/utah-mountain-adventures.jpg?w=320;480;640;800;960;1200&enhanced';
import WhatToDoInSaltLake from '../../images/work/what-to-do-in-salt-lake.jpg?w=320;480;640;800;960;1200&enhanced';
import WasatchFabrication from '../../images/work/wasatch-fabrication.jpg?w=320;480;640;800;960;1200&enhanced';
</script>

Expand Down Expand Up @@ -134,6 +135,15 @@
poster={BookAMeetingTime}
title="Book a Meeting Time"
/>
<WorkItem
description="A Bootpack Digital product that collects upcoming events, venues, and things to do around Salt Lake City in one place. Search by category, browse by date, and find your next night out without digging through a dozen different sites, on the web or with the iOS and Android apps."
link="https://whattodoinsaltlake.com/"
linkText="Visit What To Do In Salt Lake"
appStore="https://apps.apple.com/app/what-to-do-in-salt-lake/id6835025601"
playStore="https://play.google.com/store/apps/details?id=com.bootpackdigital.whattodoinsaltlake"
poster={WhatToDoInSaltLake}
title="What To Do In Salt Lake"
/>
<WorkItem
description="A leading Utah law firm specializing in catastrophic injury and wrongful death cases. With a proven track record of record-breaking verdicts and settlements, DKOW's experienced trial attorneys provide compassionate, results-driven representation for clients across a wide range of personal injury matters."
link="https://www.dkow.com/"
Expand Down
Loading