using a simplegrid created a resebalence of a calender.

This commit is contained in:
Lucid Kobold
2021-11-14 15:19:46 -06:00
parent a38b91a1da
commit 11c10d87e5
2 changed files with 41 additions and 4 deletions

View File

@@ -0,0 +1,32 @@
import React from "react";
import { Box, SimpleGrid } from "@chakra-ui/react";
const Calender = (): JSX.Element => {
const daysArr = [];
for (let i = daysArr.length; i < 31; i++) {
daysArr.push(daysArr.length + 1);
}
return (
<SimpleGrid
px={10}
spacing="5px"
bg="brand.main"
w="100%"
h="100vh"
columns={7}
>
{daysArr.map((day) => {
return (
<Box
bg="brand.primary"
w="100%"
h="100%"
key={day}
>{`Day ${day}`}</Box>
);
})}
</SimpleGrid>
);
};
export default Calender;