Skip to content

Commit

Permalink
WHAT HAPPENED TO LIGHTHOUSE
Browse files Browse the repository at this point in the history
  • Loading branch information
iamawatermelo committed Sep 12, 2024
1 parent a38e39e commit 08b05ba
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,16 @@
<Sparkles />
<div class="zenith-header">
<h1>
{#each Array.from("Zenith").entries() as [idx, char]}
<span style="--idx: {idx}" class="header-element">{char}</span>
{/each}
{#each Array.from("2025").entries() as [idx, char]}
<span style="--idx: {idx+7}" class="header-element date">{char}</span>
{/each}
<span class="no-break">
{#each Array.from("Zenith").entries() as [idx, char]}
<span style="--idx: {idx}" class="header-element">{char}</span>
{/each}
</span>
<span class="no-break">
{#each Array.from("2025").entries() as [idx, char]}
<span style="--idx: {idx+7}" class="header-element date">{char}</span>
{/each}
</span>
</h1>
<p class="header-promo">
Zenith is a hackathon in San Francisco for teens led by the Hack Club community coming next year. Join us and make
Expand Down Expand Up @@ -243,15 +247,20 @@
font-size: 4em;
line-height: 1;
width: min-content;
overflow: clip;
}
h1 > .header-element {
h1 .header-element {
display: inline-block;
transform: translateY(-200%);
font-variation-settings: "wght" 400;
animation: header 1s calc(var(--idx) * 0.05s) forwards;
}
h1 .no-break {
display: inline-block;
min-width: max-content;
overflow: clip;
}
.header-promo {
font-size: 1.2em;
Expand Down

0 comments on commit 08b05ba

Please sign in to comment.