-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIntro.astro
35 lines (34 loc) · 1.03 KB
/
Intro.astro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
import BlurFade from "@ui/blur-fade";
import WordRotate from "@ui/word-rotate";
import Emoji from "astro-emoji";
interface Props {
name: string;
titles: string[];
fade_delay: number;
}
const { name, titles, fade_delay } = Astro.props;
---
<section id="hero">
<div class="mx-auto w-full max-w-2xl space-y-8">
<div class="gap-2 flex justify-between">
<div class="flex-col flex flex-1 space-y-1.5">
<BlurFade client:load delay={fade_delay * 1} inView>
<span
class="text-3xl text-pretty font-bold tracking-tighter sm:text-5xl xl:text-6xl/none"
>
Hi, I'm {name}
<Emoji symbol="👋" label="wave" />
</span>
</BlurFade>
<BlurFade client:load delay={fade_delay * 2} inView>
<span
class="text-xl text-pretty tracking-tighter sm:text-3xl xl:text-4xl/none"
>
<WordRotate client:visible words={titles} duration={2000} />
</span>
</BlurFade>
</div>
</div>
</div>
</section>