Skip to content

Commit

Permalink
Center the dApp header
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Sep 4, 2024
1 parent b85de15 commit 86c68ad
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
10 changes: 9 additions & 1 deletion dapp/src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ export default function Header() {
const isMobileMode = useMobileMode()

return (
<HStack as="header" px={10} py={7} justify="center">
<HStack
as="header"
w="full"
mx="auto"
justify="center"
py={7}
px="page_content_padding_x"
maxW="page_content_max_width"
>
<Link href={EXTERNAL_HREF.WEBSITE} isExternal>
<Icon as={AcreLogo} w={20} h={12} />
</Link>
Expand Down
4 changes: 2 additions & 2 deletions dapp/src/pages/DashboardPage/PageLayout/PageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ function PageLayout(props: GridProps) {
return (
<Grid
w="full"
maxW="110rem" // 1760px -> content width + x-axis padding
mx="auto"
px={10}
maxW="page_content_max_width"
px="page_content_padding_x"
py={9}
gap={8}
alignItems="start"
Expand Down
3 changes: 2 additions & 1 deletion dapp/src/theme/utils/semanticTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ export const semanticTokens = {
header_height: 24,
modal_shift: "9.75rem", // 156px
dashboard_card_padding: 5,
page_content_padding_x: 10,
},
sizes: {
sidebar_width: 80,
landing_page_content_width: "73.375rem", // 1174px
page_content_max_width: "110rem", // 1760px -> content width + x-axis padding
},
}

0 comments on commit 86c68ad

Please sign in to comment.