Skip to content

Commit 27e89a0

Browse files
committed
using chakra breakoints for footer
1 parent ba10515 commit 27e89a0

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

src/components/Footer.tsx

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -345,17 +345,11 @@ const Footer: React.FC<IProps> = () => {
345345
<SimpleGrid
346346
gap={4}
347347
justifyContent="space-between"
348-
gridTemplateColumns="repeat(6, auto)"
349-
sx={{
350-
"@media (max-width: 1300px)": {
351-
gridTemplateColumns: "repeat(3, auto)",
352-
},
353-
[`@media (max-width: ${medBp})`]: {
354-
gridTemplateColumns: "repeat(2, auto)",
355-
},
356-
"@media (max-width: 500px)": {
357-
gridTemplateColumns: "auto",
358-
},
348+
templateColumns={{
349+
base: "auto",
350+
sm: "repeat(2, auto)",
351+
md: "repeat(3, auto)",
352+
xl: "repeat(6, auto)",
359353
}}
360354
>
361355
{linkSections.map((section: LinkSection, idx) => (

0 commit comments

Comments
 (0)