diff --git a/src/Router.tsx b/src/Router.tsx index 40e8ca2..41ca73c 100644 --- a/src/Router.tsx +++ b/src/Router.tsx @@ -1,12 +1,14 @@ // Router.tsx import { BrowserRouter, Route, Routes } from "react-router-dom"; import Login from "./pages/login/Login"; +import Create from "@pages/create/Create"; const Router: React.FC = () => { return ( } /> + } /> ); diff --git a/src/components/create/TeamButton.tsx b/src/components/create/TeamButton.tsx new file mode 100644 index 0000000..e17ca77 --- /dev/null +++ b/src/components/create/TeamButton.tsx @@ -0,0 +1,19 @@ +import React, { useState } from "react"; +import * as S from "./style"; + +export default function TeamButton() { + const [count, setCount] = useState(0); + + const increment = () => setCount(count + 1); + const decrement = () => setCount(count > 0 ? count - 1 : 0); + + return ( + + + - + + {count} 명 + + + + ); +} diff --git a/src/components/create/style.ts b/src/components/create/style.ts new file mode 100644 index 0000000..3411e67 --- /dev/null +++ b/src/components/create/style.ts @@ -0,0 +1,31 @@ +import styled from "styled-components"; + +export const Container = styled.div` + display: flex; + align-items: center; + justify-content: center; + gap: 36px; +`; + +export const Button = styled.button` + display: flex; + align-items: center; + justify-content: center; + width: 65px; + height: 65px; + border-radius: 50%; + background: #ced4da; + color: #343a40; + text-align: center; + font-family: Pretendard; + font-size: 36px; + font-weight: 600; +`; + +export const PersonNum = styled.span` + color: #343a40; + text-align: center; + font-family: Pretendard; + font-size: 36px; + font-weight: 600; +`; diff --git a/src/components/login/HintText.tsx b/src/components/hintText/HintText1.tsx similarity index 53% rename from src/components/login/HintText.tsx rename to src/components/hintText/HintText1.tsx index ff73c49..8b3342b 100644 --- a/src/components/login/HintText.tsx +++ b/src/components/hintText/HintText1.tsx @@ -7,10 +7,12 @@ const HintTextWrapper = styled.div` gap: 10px; `; -const HintTextHeadline2 = styled.h2` +const HintTextHeadline2 = styled.h2<{ width?: string }>` + width: ${({ width }) => width || "240px"}; + margin: 0 auto; color: #343a40; text-align: center; - font-family: Pretendard; + font-family: "Pretendard"; font-size: 28px; font-style: normal; font-weight: 600; @@ -21,7 +23,7 @@ const HintTextHeadline2 = styled.h2` const HintTextP1 = styled.p` color: #868e96; text-align: center; - font-family: Pretendard; + font-family: "Pretendard"; font-size: 14px; font-style: normal; font-weight: 500; @@ -29,11 +31,19 @@ const HintTextP1 = styled.p` letter-spacing: -0.1px; `; -export default function HintText() { +interface TextProps { + headline: string; + paragraph: string; + width?: string; +} + +const HintText1: React.FC = ({ headline, paragraph, width }) => { return ( - 당신의 정보를 입력해주세요. - 팀을 참가할 때 간단한 정보를 입력받아요. + {headline} + {paragraph} ); -} +}; + +export default HintText1; diff --git a/src/pages/create/Create.tsx b/src/pages/create/Create.tsx new file mode 100644 index 0000000..c825bd6 --- /dev/null +++ b/src/pages/create/Create.tsx @@ -0,0 +1,39 @@ +import styled from "styled-components"; +import Button from "@components/button/Button"; +import HintText from "@components/hintText/HintText1"; +import TeamButton from "@components/create/TeamButton"; + +const Container = styled.div` + height: calc(100vh - 80px); + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + gap: 120px; +`; + +const ButtonLayout = styled.div` + position: relative; + bottom: 10px; +`; + +const Create: React.FC = () => { + return ( + <> + + + + + + +