Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit 4b36d97

Browse files
committed
refactor: move page padding to theme
1 parent eea3b1f commit 4b36d97

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

frontend/src/pages/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ export default function IndexPage() {
2828
<Stack
2929
as="main"
3030
minH="100vh"
31-
py={10}
32-
px={{ base: 6, md: 4 }}
3331
spacing={{ base: 6, md: 8 }}
3432
divider={
3533
<StackDivider

frontend/src/theme.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ export const theme = extendTheme({
2727
body: {
2828
bg: 'black',
2929
color: 'white',
30-
fontSize: 'md',
30+
fontSize: { base: 'sm', md: 'md' },
31+
py: 10,
32+
px: { base: 2, sm: 4, md: 8 },
3133
},
3234
},
3335
},

0 commit comments

Comments
 (0)