-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from Strong-Potato/7-feat-create-detail-page-m…
…arkup 7 feat create detail page markup
- Loading branch information
Showing
40 changed files
with
2,687 additions
and
569 deletions.
There are no files selected for viewing
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
29 changes: 29 additions & 0 deletions
29
src/components/Detail/BottomFixedBtn/BottomFixedBtn.module.scss
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,29 @@ | ||
@use "@/sass" as *; | ||
|
||
.container { | ||
position: fixed; | ||
bottom: 24px; | ||
padding: 0 24px; | ||
|
||
width: 100%; | ||
max-width: 45rem; | ||
z-index: 5; | ||
|
||
&__wrapper { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
width: 100%; | ||
height: 4.8rem; | ||
|
||
border-radius: 1.6rem; | ||
|
||
cursor: pointer; | ||
|
||
span { | ||
color: $neutral0; | ||
@include typography(button); | ||
} | ||
} | ||
} |
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 styles from "./BottomFixedBtn.module.scss"; | ||
|
||
function BottomFixedBtn() { | ||
return ( | ||
<div className={styles.container}> | ||
<div | ||
className={styles.container__wrapper} | ||
style={{ | ||
backgroundColor: "#2388FF", | ||
}} | ||
> | ||
<span>이 장소 후보로 등록하기</span> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default BottomFixedBtn; |
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,9 @@ | ||
@use "@/sass" as *; | ||
|
||
.container { | ||
margin-top: 12px; | ||
padding-bottom: 40px; | ||
&__tab { | ||
@include typography(button); | ||
} | ||
} |
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,46 @@ | ||
import { Tab, TabList, TabPanel, TabPanels, Tabs } from "@chakra-ui/react"; | ||
|
||
import styles from "./Contents.module.scss"; | ||
|
||
import Information from "./Information/Information"; | ||
import Reviews from "./Reviews/Reviews"; | ||
|
||
function Contents() { | ||
return ( | ||
<Tabs isFitted className={styles.container}> | ||
<TabList> | ||
<Tab | ||
fontSize="1.4rem" | ||
fontWeight="700" | ||
lineHeight="2.2rem" | ||
color="#CDCFD0" | ||
borderColor="#fff" | ||
_selected={{ color: "#1D2433", borderColor: "#2388FF" }} | ||
> | ||
상품정보 | ||
</Tab> | ||
<Tab | ||
fontSize="1.4rem" | ||
fontWeight="700" | ||
lineHeight="2.2rem" | ||
color="#CDCFD0" | ||
borderColor="#fff" | ||
_selected={{ color: "#1D2433", borderColor: "#2388FF" }} | ||
> | ||
리뷰 | ||
</Tab> | ||
</TabList> | ||
|
||
<TabPanels> | ||
<TabPanel padding="0"> | ||
<Information /> | ||
</TabPanel> | ||
<TabPanel padding="0"> | ||
<Reviews /> | ||
</TabPanel> | ||
</TabPanels> | ||
</Tabs> | ||
); | ||
} | ||
|
||
export default Contents; |
36 changes: 36 additions & 0 deletions
36
src/components/Detail/Contents/Information/BasicInformation/BasicInformation.module.scss
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 @@ | ||
@use "@/sass" as *; | ||
|
||
.container { | ||
margin: 20px 0; | ||
padding-bottom: 40px; | ||
|
||
border-bottom: 12px solid $neutral100; | ||
|
||
&__title { | ||
padding: 8px 20px; | ||
margin-bottom: 16px; | ||
|
||
@include typography(titleMedium); | ||
} | ||
|
||
&__contents { | ||
margin-top: 16px; | ||
padding: 0 20px; | ||
|
||
display: flex; | ||
flex-direction: column; | ||
gap: 12px; | ||
|
||
&__item { | ||
display: flex; | ||
align-items: center; | ||
gap: 12px; | ||
|
||
@include typography(tabLabel); | ||
|
||
a { | ||
text-decoration-line: underline; | ||
} | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
src/components/Detail/Contents/Information/BasicInformation/BasicInformation.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,38 @@ | ||
import { AiOutlineLink } from "react-icons/ai"; | ||
import { FaRegClock } from "react-icons/fa"; | ||
import { IoMdCall } from "react-icons/io"; | ||
import { MdPlace } from "react-icons/md"; | ||
|
||
import styles from "./BasicInformation.module.scss"; | ||
|
||
import Map from "./Map/Map"; | ||
|
||
function BasicInformation() { | ||
return ( | ||
<div className={styles.container}> | ||
<div className={styles.container__title}>기본정보</div> | ||
<Map /> | ||
<div className={styles.container__contents}> | ||
<div className={styles.container__contents__item}> | ||
<MdPlace color="#979C9E" fontSize="2.4rem" /> | ||
<span>경기도 양평군 양평읍 백안리 9 </span> | ||
</div> | ||
<div className={styles.container__contents__item}> | ||
<IoMdCall color="#979C9E" fontSize="2.4rem" /> | ||
<a href="#">031-771-1234</a> | ||
</div> | ||
<div className={styles.container__contents__item}> | ||
<AiOutlineLink color="#979C9E" fontSize="2.4rem" /> | ||
<a href="#">공식 홈페이지 바로가기 </a> | ||
</div> | ||
<div className={styles.container__contents__item}> | ||
{/* 시계 아이콘 다름 */} | ||
<FaRegClock color="#979C9E" fontSize="2.4rem" /> | ||
<span>매일 09:00~18:00</span> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default BasicInformation; |
10 changes: 10 additions & 0 deletions
10
src/components/Detail/Contents/Information/BasicInformation/Map/Map.module.scss
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,10 @@ | ||
.container { | ||
width: 100%; | ||
height: 149px; | ||
|
||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
background-color: #efefef; | ||
} |
7 changes: 7 additions & 0 deletions
7
src/components/Detail/Contents/Information/BasicInformation/Map/Map.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,7 @@ | ||
import styles from "./Map.module.scss"; | ||
|
||
function Map() { | ||
return <div className={styles.container}>지도</div>; | ||
} | ||
|
||
export default Map; |
Empty file.
15 changes: 15 additions & 0 deletions
15
src/components/Detail/Contents/Information/Information.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,15 @@ | ||
import BasicInformation from "./BasicInformation/BasicInformation"; | ||
import Others from "./Others/Others"; | ||
import ShortReviews from "./ShortReveiws/ShortReviews"; | ||
|
||
function Information() { | ||
return ( | ||
<div> | ||
<BasicInformation /> | ||
<ShortReviews /> | ||
<Others /> | ||
</div> | ||
); | ||
} | ||
|
||
export default Information; |
48 changes: 48 additions & 0 deletions
48
src/components/Detail/Contents/Information/Others/OtherCard/OtherCard.module.scss
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,48 @@ | ||
@use "@/sass" as *; | ||
|
||
.container { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 8px; | ||
|
||
cursor: pointer; | ||
|
||
&__image { | ||
width: 14.4rem; | ||
height: 14.4rem; | ||
border-radius: 1.6rem; | ||
} | ||
|
||
&__contents { | ||
h4 { | ||
@include typography(titleSmall); | ||
} | ||
|
||
p { | ||
color: $neutral400; | ||
@include typography(captionSmall); | ||
} | ||
|
||
&__reviews { | ||
display: flex; | ||
align-items: center; | ||
|
||
&__star { | ||
display: inline; | ||
font-size: 1.6rem; | ||
color: $etc0; | ||
} | ||
|
||
&__point { | ||
color: #1d2433; | ||
@include typography(captionSmall); | ||
margin-right: 4px; | ||
} | ||
|
||
&__reviewsCount { | ||
color: $neutral400; | ||
@include typography(captionSmall); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.