8000 feat: add timer component · codeisneverodd/home@4cf3a5b · GitHub
[go: up one dir, main page]

Skip to content

Commit 4cf3a5b

Browse files
feat: add timer component
1 parent 4fcf9ea commit 4cf3a5b

File tree

3 files changed

+17
-28
lines changed

3 files changed

+17
-28
lines changed

src/lib/timer/components/Timer.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default function Timer() {
2+
return <div>timer</div>;
3+
}

src/pages/index.tsx

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,14 @@
1-
import Aside from "@/components/Aside";
2-
import Header from "@/components/Header";
3-
import Main from "@/components/Main";
4-
import { Box, Flex } from "@chakra-ui/react";
5-
import Head from "next/head";
1+
import MainLayout from "@/lib/@common/layouts/MainLayout";
2+
import { Center, Text } from "@chakra-ui/react";
63

74
export default function Home() {
85
return (
9-
<>
10-
<Head>
11-
<title>codeisneverodd</title>
12-
<meta
13-
name="description"
14-
content="Generated by nextjs-chakra-template"
15-
/>
16-
<meta name="viewport" content="width=device-width, initial-scale=1" />
17-
<link rel="icon" href="/favicon.ico" />
18-
</Head>
19-
<Box h="100vh">
20-
<Header />
21-
22-
<Flex
23-
w="full"
24-
direction={{ sm: "column-reverse", md: "row" }}
25-
pt="20px"
26-
>
27-
<Main />
28-
<Aside />
29-
</Flex>
30-
</Box>
31-
</>
6+
<MainLayout title="Home">
7+
<Center w="full" h="calc(100vh - 100px)">
8+
<Text fontSize="6xl" fontWeight="bold">
9+
codeisneverodd
10+
</Text>
11+
</Center>
12+
</MainLayout>
3213
);
3314
}

src/pages/timer/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import MainLayout from "@/lib/@common/layouts/MainLayout";
2+
3+
export default function Timer() {
4+
return <MainLayout title="Timer">타이머</MainLayout>;
5+
}

0 commit comments

Comments
 (0)
0