Skip to content

Commit

Permalink
responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
thejackshelton committed Jan 13, 2025
1 parent 20cdf68 commit b531f3f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
1 change: 0 additions & 1 deletion apps/website/.astro/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/// <reference types="astro/client" />
/// <reference path="content.d.ts" />
31 changes: 21 additions & 10 deletions apps/website/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,30 @@ import heroImage from "../assets/q-astro-hero.png";
</Spotlight>

<h1>
{
"QWIK ASTRO".split("").map((letter, i) => (
<span>
{"QWIK".split("").map((letter, i) => (
<span
class="letter"
style={`animation-delay: ${i * 0.15}s; ${letter === "K" && "margin-right: var(--space-s); display: block"}`}
style={`animation-delay: ${i * 0.15}s;`}
>
{letter}
</span>
))
}
))}
</span>
<span>
{"ASTRO".split("").map((letter, i) => (
<span
class="letter"
style={`animation-delay: ${(i + 5) * 0.15}s;`}
>
{letter}
</span>
))}
</span>
</h1>

<span

>Zero hydration. Zero compromise. The only instantly interactive UI
framework that's HTML and server-first, just like Astro.</span
>
Expand All @@ -58,6 +69,9 @@ import heroImage from "../assets/q-astro-hero.png";
h1 {
margin-block: var(--space-m);
display: flex;
flex-wrap: wrap;
gap: var(--space-xs);
line-height: 1;
}

.grid-line {
Expand All @@ -73,17 +87,14 @@ import heroImage from "../assets/q-astro-hero.png";
padding: var(--space-m);
}

.intro .subheading {
font-size: var(--step-2);
}

.intro h1 span {
font-size: var(--step-5);
display: block;
display: flex;
}

.intro h1 {
display: flex;
flex-wrap: wrap;
}

.intro > span {
Expand Down

0 comments on commit b531f3f

Please sign in to comment.