Skip to content

Commit

Permalink
Change teaser image to a live video
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzhang committed Dec 28, 2023
1 parent f2f2da6 commit 4183ffd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions src/lib/ui/TeaserImage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
} from "svelte-feather-icons";
</script>

<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="rounded-lg border border-white/20 overflow-hidden" on:click>
<div class="rounded-lg border border-white/20 overflow-hidden">
<div class="flex bg-zinc-900 items-end">
<div class="px-4 py-3 flex gap-1.5">
<div class="w-2.5 h-2.5 rounded-full bg-red-500" />
Expand Down Expand Up @@ -42,8 +41,11 @@
<MoreVerticalIcon class="w-4 h-4 text-zinc-300" />
</div>
</div>
<img
src="https://i.imgur.com/Q3qKAHW.png"
alt="Browser with multiple terminal windows and live cursors"
/>
<video muted autoplay loop>
<source
src="https://sshx.s3.amazonaws.com/media/teaser-video.mov"
type="video/mp4"
/>
<track kind="captions" />
</video>
</div>
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
</div>

<div class="my-48 hidden md:block">
<TeaserImage on:click={scrollToInstallation} />
<TeaserImage />
</div>

<h2 bind:this={installationEl} class="mt-40 mb-16">
Expand Down

0 comments on commit 4183ffd

Please sign in to comment.