Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit cb80878

Browse files
committed
style: better cycle format
1 parent a607b24 commit cb80878

File tree

1 file changed

+26
-13
lines changed

1 file changed

+26
-13
lines changed

apps/client/src/routes/Main/Home/Cycle.tsx

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,42 @@ import {
77
Text,
88
} from "@chakra-ui/react";
99

10+
function Period() {
11+
return (
12+
<Flex
13+
direction={["column", "column", "row"]}
14+
bg={useToken("colors", useColorModeValue("gray.300", "gray.700")) + "55"}
15+
rounded={"lg"}
16+
gap={[0, 0, 1]}
17+
align="center"
18+
pr={[0, 0, 2]}
19+
>
20+
<Text fontSize={"sm"} bg="blue.500" p={2} rounded="lg">
21+
D&T
22+
</Text>
23+
<Text fontSize={"sm"}>506</Text>
24+
</Flex>
25+
);
26+
}
27+
1028
function Day() {
1129
return (
12-
<Flex direction={"column"} align={"center"}>
13-
<Text color={"gray.500"} fontWeight={"semibold"}>
30+
<Flex direction={"column"} align={"center"} gap={1}>
31+
<Text color={"gray.500"} fontWeight={"semibold"} fontSize={"sm"}>
1432
Mon A
1533
</Text>
16-
<Text>D&T</Text>
17-
<Text>D&T</Text>
18-
<Text>D&T</Text>
19-
<Text>D&T</Text>
20-
<Text>D&T</Text>
34+
<Period />
35+
<Period />
36+
<Period />
37+
<Period />
38+
<Period />
2139
</Flex>
2240
);
2341
}
2442

2543
export default function CycleTimetable() {
2644
return (
27-
<Flex
28-
direction={"column"}
29-
p={5}
30-
bg={useToken("colors", useColorModeValue("gray.300", "gray.700")) + "55"}
31-
rounded={"lg"}
32-
>
45+
<Flex direction={"column"}>
3346
<Grid
3447
templateColumns="repeat(5, 1fr)"
3548
templateRows="repeat(3, 1fr)"

0 commit comments

Comments
 (0)