refactor(web/menu): separate header and body divs

This allows for the header to be visible even when scrolling through the menu items
This commit is contained in:
Luke authored and Luke committed 2022-08-04 15:04:49 +02:00
1 parent a43b5eee04
commit 700fdbc3fe
2 files changed
+40 -27

No files matched your search

+9 -1
View File
@@ -2,7 +2,15 @@ import { Box, Text } from "@chakra-ui/react";
const Header: React.FC<{ title: string }> = ({ title }) => {
return (
<Box p={3} textAlign="center" borderTopLeftRadius="md" borderTopRightRadius="md" bg="#25262B">
<Box
p={3}
textAlign="center"
borderTopLeftRadius="md"
borderTopRightRadius="md"
bg="#25262B"
height="60px"
width="sm"
>
<Text fontSize={24} textTransform="uppercase" fontWeight={300} fontFamily="Poppins">
{title}
</Text>