-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(#44): react-query 초기 설정 * feat(#44): 공모전 카테고리 및 전체 조회 * refactor(#44): getCompeitionList와 useCompetitionList 분리 * feat(#44): userId 라우터 설정, HeaderSelected 설정 * feat(#44): 개인 프로필 작성 API 연동 * refactor(#44): 개인 프로필 작성 페이지 서버 연동 * refactor(#44): examples 하나로 통일 * feat(#44): 개인 프로필 작성 완료 모달 * feat(#44): 프로필 작성 api 연동 * feat(#44): Axios headers Authorization 추가 * feat(#44): 유저 추가 프로필 작성 request body 수정 * docs(#65): 외부 추천사 페이지 * docs(#65): recommendation -> review 변수명 변경 * feat(#65): 외부 추천사 페이지 헤더 * refactor(#65): 외부 추천사 페이지 헤더 로직 수정 * refactor(#65): review 컴포넌트 username props 추가 * feat(#65): 외부 추천사 페이지 한 줄 추천 * feat(#65): 외부 추천사 페이지 완료
- Loading branch information
Showing
5 changed files
with
98 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { styled } from 'styled-components'; | ||
import Button from '../common/Button'; | ||
|
||
const ExternalButtonBox = () => { | ||
const handleButtonClick = () => { | ||
alert('제출하기 버튼이 눌렸습니다.'); | ||
}; | ||
|
||
return ( | ||
<ButtonContainer> | ||
<Button onClick={handleButtonClick}>제출하기</Button>; | ||
</ButtonContainer> | ||
); | ||
}; | ||
|
||
export default ExternalButtonBox; | ||
|
||
const ButtonContainer = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
margin: 10rem 0 6rem 0; | ||
`; |
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 |
---|---|---|
@@ -1,13 +1,61 @@ | ||
import { useState } from 'react'; | ||
import { styled } from 'styled-components'; | ||
|
||
const ExternalReviewOneLine = () => { | ||
interface ExternalReviewOneLineProps { | ||
userName?: string; | ||
} | ||
|
||
const ExternalReviewOneLine = ({ userName }: ExternalReviewOneLineProps) => { | ||
const [review, setReview] = useState(''); | ||
|
||
const handleTextareaChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => { | ||
setReview(e.target.value); | ||
}; | ||
|
||
return ( | ||
<ExternalReviewContainer> | ||
<h1>{}님을 한 줄로 추천한다면?</h1> | ||
<h1>{userName}님을 한 줄로 추천한다면?</h1> | ||
<div> | ||
<textarea | ||
placeholder={'140자 이하로 추천사를 작성해주세요.'} | ||
onChange={handleTextareaChange} | ||
> | ||
{review} | ||
</textarea> | ||
<p>{review.length}/140자</p> | ||
</div> | ||
</ExternalReviewContainer> | ||
); | ||
}; | ||
|
||
export default ExternalReviewOneLine; | ||
|
||
const ExternalReviewContainer = styled.div``; | ||
const ExternalReviewContainer = styled.div` | ||
h1 { | ||
${({ theme }) => theme.fonts.heading3}; | ||
color: ${({ theme }) => theme.colors.gray90}; | ||
margin-bottom: 1.4rem; | ||
} | ||
div { | ||
position: relative; | ||
} | ||
textarea { | ||
background: ${({ theme }) => theme.colors.gray5}; | ||
border: 1px solid ${({ theme }) => theme.colors.gray20}; | ||
${({ theme }) => theme.fonts.bodyXL}; | ||
color: ${({ theme }) => theme.colors.gray70}; | ||
border-radius: 1rem; | ||
resize: none; | ||
width: 100%; | ||
height: 20rem; | ||
padding: 2.5rem 3.5rem; | ||
} | ||
p { | ||
${({ theme }) => theme.fonts.bodyM}; | ||
color: ${({ theme }) => theme.colors.gray70}; | ||
position: absolute; | ||
right: 3.5rem; | ||
bottom: 2.5rem; | ||
} | ||
`; |
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
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
9f72eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
wanteam – ./
wanteam-meet-up-d.vercel.app
wanteam.vercel.app
wanteam-git-main-meet-up-d.vercel.app