-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Feat/#4] 팀 생성 페이지 구현
- Loading branch information
Showing
6 changed files
with
114 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<S.Container> | ||
<S.Button onClick={decrement} disabled={count === 0}> | ||
- | ||
</S.Button> | ||
<S.PersonNum>{count} 명</S.PersonNum> | ||
<S.Button onClick={increment}>+</S.Button> | ||
</S.Container> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<> | ||
<Container> | ||
<HintText | ||
width="240px" | ||
headline="동기화 할 팀원의 수를 선택해주세요. " | ||
paragraph="팀을 생성하신 분에게 자동으로 '팀장'역할이 부여돼요." | ||
/> | ||
<TeamButton /> | ||
</Container> | ||
|
||
<ButtonLayout> | ||
<Button type="submit" link="" name="팀 동기화 시작하기" /> | ||
</ButtonLayout> | ||
</> | ||
); | ||
}; | ||
|
||
export default Create; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters