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

View file

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