Skip to content

Commit

Permalink
sticky sidebar in progress page
Browse files Browse the repository at this point in the history
  • Loading branch information
yceballost committed Nov 23, 2024
1 parent ac9576b commit 735b0e6
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions src/pages/advent-calendar-2024/pages/progress-view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,25 +303,29 @@ const ProgressView = () => {
</Stack>
}
right={
<Grid columns={4} alignContent>
<GridItem columnSpan={3} columnStart={2}>
<Stack space={56}>
<AchievementList
completedAchievementsCount={completedAchievementsCount}
totalAchievements={totalAchievements}
/>
<Stack space={16}>
<Inline space={8} alignItems="center">
<IconInvader size={20}></IconInvader>
<Text4>Total game points</Text4>
</Inline>
<Text size={80} lineHeight={80} weight="medium">
{totalGamePoints}
</Text>
<div style={{ position: "sticky", height: "100vh", top: 80 }}>
<Grid columns={4} alignContent>
<GridItem columnSpan={3} columnStart={2}>
<Stack space={56}>
<AchievementList
completedAchievementsCount={
completedAchievementsCount
}
totalAchievements={totalAchievements}
/>
<Stack space={16}>
<Inline space={8} alignItems="center">
<IconInvader size={20}></IconInvader>
<Text4>Total game points</Text4>
</Inline>
<Text size={80} lineHeight={80} weight="medium">
{totalGamePoints}
</Text>
</Stack>
</Stack>
</Stack>
</GridItem>
</Grid>
</GridItem>
</Grid>
</div>
}
></GridLayout>

Expand Down

0 comments on commit 735b0e6

Please sign in to comment.