-
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.
* fix: 배너 순서 변경하기 * feat: HostInfoPage 엠티 뷰 클래스 - 리뷰 탭 비슷하게 새로 만들기 * fix: 배너 순서 다시 원래대로! * fix: 클래스 모임 개설 페이지 스크롤 맨 위로 * feat: bannerId 없으면 호스트 배너만 보이게 다시 순서 변경 * fix: 클래스 신청 시 답변 작성하는 textArea placeholder 수정 * fix: 링크 공유했을 때 멘트 '내가 PICK!한 경험과 지식으로 연결되는 곳'으로 수정 * feat: 베타기간 배너 추가, 댓글 상세 페이지 엠티뷰 간격 수정 * fix: Class 페이지 스크롤 수정
- Loading branch information
Showing
13 changed files
with
133 additions
and
14 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,5 +1,6 @@ | ||
import homeBanner1 from './home-banner1.json'; | ||
import homeBanner2 from './home-banner2.json'; | ||
import homeBanner3 from './home_banner3.json'; | ||
import mainBanner from './main_banner.json'; | ||
|
||
export { mainBanner, homeBanner1, homeBanner2 }; | ||
export { mainBanner, homeBanner1, homeBanner2, homeBanner3 }; |
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
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
36 changes: 36 additions & 0 deletions
36
src/pages/host/components/HostInfoClassEmptyView/HostInfoClassEmptyView.style.ts
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,36 @@ | ||
import { Theme, css } from '@emotion/react'; | ||
|
||
import { flexGenerator } from '@styles/generator'; | ||
|
||
export const completedTabContainer = (theme: Theme) => css` | ||
${flexGenerator('column')} | ||
height: 30rem; | ||
width: 100%; | ||
background-color: ${theme.color.bg_white0}; | ||
`; | ||
|
||
export const textWrapper = css` | ||
${flexGenerator('column')} | ||
width: 100%; | ||
margin-top: 0.5rem; | ||
`; | ||
|
||
export const textStyle = (theme: Theme) => css` | ||
color: ${theme.color.lightgray2}; | ||
${theme.font['subhead05-sb-14']} | ||
`; | ||
|
||
export const detailWrapper = css` | ||
${flexGenerator('column', 'center', 'center')} | ||
gap: 2rem; | ||
`; | ||
|
||
export const IcHostMyClassStyle = css` | ||
width: 15rem; | ||
height: 15rem; | ||
`; | ||
|
||
export const buttonWrapper = css` | ||
margin-top: 2rem; | ||
width: 18rem; | ||
`; |
37 changes: 37 additions & 0 deletions
37
src/pages/host/components/HostInfoClassEmptyView/HostInfoClassEmptyView.tsx
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,37 @@ | ||
import { useNavigate } from 'react-router-dom'; | ||
|
||
import { Button } from '@components'; | ||
import { IcHostMypage } from '@svg'; | ||
|
||
import { | ||
buttonWrapper, | ||
completedTabContainer, | ||
IcHostMyClassStyle, | ||
textStyle, | ||
textWrapper, | ||
} from './HostInfoClassEmptyView.style'; | ||
|
||
const HostInfoClassEmptyView = () => { | ||
const navigate = useNavigate(); | ||
|
||
const handleButtonClick = () => { | ||
navigate('/class/post/step1'); | ||
}; | ||
return ( | ||
<article css={completedTabContainer}> | ||
<IcHostMypage css={IcHostMyClassStyle} /> | ||
<div css={textWrapper}> | ||
<p css={textStyle}>아직 개설한 클래스가 없어요</p> | ||
<p css={textStyle}>지금 바로 클래스를 개설해 보세요!</p> | ||
</div> | ||
|
||
<div css={buttonWrapper}> | ||
<Button variant="round" onClick={handleButtonClick}> | ||
클래스 개설하기 | ||
</Button> | ||
</div> | ||
</article> | ||
); | ||
}; | ||
|
||
export default HostInfoClassEmptyView; |
18 changes: 18 additions & 0 deletions
18
src/pages/host/components/HostInfoReviewEmptyView/HostInfoReviewEmptyView.style.ts
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,18 @@ | ||
import { css, Theme } from '@emotion/react'; | ||
|
||
import { flexGenerator } from '@styles/generator'; | ||
|
||
export const emptyReviewContainer = css` | ||
${flexGenerator('column')}; | ||
height: 30rem; | ||
`; | ||
|
||
export const imageStyle = css` | ||
width: 15rem; | ||
height: 15rem; | ||
`; | ||
|
||
export const textStyle = (theme: Theme) => css` | ||
${theme.font['subhead04-sb-15']}; | ||
color: ${theme.color.lightgray2}; | ||
`; |
16 changes: 16 additions & 0 deletions
16
src/pages/host/components/HostInfoReviewEmptyView/HostInfoReviewEmptyView.tsx
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,16 @@ | ||
import { graphicImage } from '@constants'; | ||
|
||
import { emptyReviewContainer, imageStyle, textStyle } from './HostInfoReviewEmptyView.style'; | ||
|
||
const HostInfoReviewEmptyView = () => { | ||
return ( | ||
<article> | ||
<div css={emptyReviewContainer}> | ||
<img css={imageStyle} src={graphicImage.ReviewEmptyImage} alt="review graphics" /> | ||
<p css={textStyle}>아직 작성된 리뷰가 없어요</p> | ||
</div> | ||
</article> | ||
); | ||
}; | ||
|
||
export default HostInfoReviewEmptyView; |
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