From c8265d292912cf2b23a550abb081580a0e11d5f6 Mon Sep 17 00:00:00 2001 From: westofsky Date: Mon, 19 Jun 2023 17:02:37 +0900 Subject: [PATCH] =?UTF-8?q?feat=20:=20=ED=83=80=EC=9D=B4=ED=8B=80=20,=20?= =?UTF-8?q?=EB=9D=BC=EC=9D=B8=20=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8?= =?UTF-8?q?=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/vote/page.tsx | 15 +++++++++++++++ src/components/common/Line.tsx | 16 ++++++++++++++++ src/components/common/Title.tsx | 18 ++++++++++++++++++ tsconfig.json | 2 +- 4 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 src/app/vote/page.tsx create mode 100644 src/components/common/Line.tsx create mode 100644 src/components/common/Title.tsx diff --git a/src/app/vote/page.tsx b/src/app/vote/page.tsx new file mode 100644 index 0000000..3fbfc18 --- /dev/null +++ b/src/app/vote/page.tsx @@ -0,0 +1,15 @@ +'use client'; +import React from 'react'; +import styled from 'styled-components'; +import Title from '@/components/common/Title'; +import Line from '@/components/common/Line'; +function vote() { + return ( + <> + + <Line/> + </> + ); +} + +export default vote; diff --git a/src/components/common/Line.tsx b/src/components/common/Line.tsx new file mode 100644 index 0000000..1738133 --- /dev/null +++ b/src/components/common/Line.tsx @@ -0,0 +1,16 @@ +'use client'; +import React from 'react'; +import styled from 'styled-components'; + +function Line() { + return ( + <Container></Container> + ); +} + +export default Line; +const Container = styled.div` + border-top: 4px solid #444444; + margin: 12px auto; + width: 300px; +`; \ No newline at end of file diff --git a/src/components/common/Title.tsx b/src/components/common/Title.tsx new file mode 100644 index 0000000..af8c416 --- /dev/null +++ b/src/components/common/Title.tsx @@ -0,0 +1,18 @@ +'use client'; +import React from 'react'; +import styled from 'styled-components'; + +function Title({content} : {content : String}) { + return ( + <Container>{content}</Container> + ); +} + +export default Title; +const Container = styled.div` + margin-top : 30px; + padding : 30px; + font-size : 30px; + font-weight : bold; + text-align : center; +`; \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 0c7555f..45a1e79 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,7 @@ "allowJs": true, "skipLibCheck": true, "strict": true, - "forceConsistentCasingInFileNames": true, + "forceConsistentCasingInFileNames": false, "noEmit": true, "esModuleInterop": true, "module": "esnext",