refactor: change popovers in social to be semantically correct

This commit is contained in:
Youwen Wu 2024-04-04 01:09:08 -07:00
parent 21b3778f87
commit 10e181a89b
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
2 changed files with 19 additions and 9 deletions

View file

@ -56,8 +56,13 @@
<LinkedinLogo />
</Button>
<Popover.Root>
<Popover.Trigger>
<Button class="hover:scale-110 transition-transform" variant="ghost" size="icon">
<Popover.Trigger asChild let:builder>
<Button
class="hover:scale-110 transition-transform"
variant="ghost"
size="icon"
builders={[builder]}
>
<DiscordLogo />
</Button>
</Popover.Trigger>
@ -70,8 +75,13 @@
</Popover.Content>
</Popover.Root>
<Popover.Root>
<Popover.Trigger>
<Button class="hover:scale-110 transition-transform" variant="ghost" size="icon">
<Popover.Trigger asChild let:builder>
<Button
class="hover:scale-110 transition-transform"
variant="ghost"
size="icon"
builders={[builder]}
>
<EnvelopeClosed />
</Button>
</Popover.Trigger>

View file

@ -22,11 +22,11 @@
</Typewriter>
<div class="text-2xl md:text-3xl font-medium mt-10 text-center">
<Typewriter cursor mode="loop">
<p>a student.</p>
<p>a programmer.</p>
<p>a math enthusiast.</p>
<p>a musician.</p>
<p>a hacker.</p>
<h2>a student.</h2>
<h2>a programmer.</h2>
<h2>a math enthusiast.</h2>
<h2>a musician.</h2>
<h2>a hacker.</h2>
</Typewriter>
<br />
<Typewriter mode="scramble" scrambleDuration={1000}>