Skip to content

Commit

Permalink
fix alignment issues on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
lorant-one committed Nov 8, 2024
1 parent 3b0a795 commit 3149df5
Showing 1 changed file with 29 additions and 25 deletions.
54 changes: 29 additions & 25 deletions src/app/[locale]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,33 +91,37 @@ export default function Home(
</RevealFx>
<RevealFx
translateY="8" delay={0.2}>
<Text
wrap="balance"
onBackground="neutral-weak"
variant="heading-default-xl">
{home.subline}
</Text>
<Flex fillWidth>
<Text
wrap="balance"
onBackground="neutral-weak"
variant="heading-default-xl">
{home.subline}
</Text>
</Flex>
</RevealFx>
<RevealFx translateY="12" delay={0.4}>
<Button
id="about"
data-border="rounded"
href={`/${locale}/about`}
variant="tertiary"
size="m">
<Flex
gap="8"
alignItems="center">
{about.avatar.display && (
<Avatar
style={{marginLeft: '-0.75rem', marginRight: '0.25rem'}}
src={person.avatar}
size="m"/>
)}
{t("about.title")}
<Arrow trigger="#about"/>
</Flex>
</Button>
<Flex fillWidth>
<Button
id="about"
data-border="rounded"
href={`/${locale}/about`}
variant="tertiary"
size="m">
<Flex
gap="8"
alignItems="center">
{about.avatar.display && (
<Avatar
style={{marginLeft: '-0.75rem', marginRight: '0.25rem'}}
src={person.avatar}
size="m"/>
)}
{t("about.title")}
<Arrow trigger="#about"/>
</Flex>
</Button>
</Flex>
</RevealFx>
</Flex>

Expand Down

0 comments on commit 3149df5

Please sign in to comment.