-
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 hanseulhee/feat/detailPage
[#23] apply Detail page
- Loading branch information
Showing
17 changed files
with
549 additions
and
18 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import { css, Theme } from "@emotion/react"; | ||
|
||
function Footer() { | ||
return ( | ||
<div css={wrapper}> | ||
<div css={inWrapper}> | ||
<span css={title}>μ μμ¬ν</span> | ||
<div> | ||
<span css={linkTitle}> | ||
λ©λ΄ μ¬μ§μ κ°λ°μκ° μ§μ μ°μ μ¬μ§μΌλ‘ μ€μ 쑰리λ μμκ³Ό λ€λ₯Ό μ | ||
μμ΅λλ€. | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default Footer; | ||
|
||
const wrapper = (theme: Theme) => css` | ||
bottom: 0; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
width: 100%; | ||
height: 6rem; | ||
color: #d5d8dd; | ||
background-color: ${theme.color.grey100}; | ||
font-size: 13px; | ||
font-weight: ${theme.fontWeight.light}; | ||
`; | ||
|
||
const inWrapper = css` | ||
padding: 0 1.3rem; | ||
`; | ||
|
||
const title = (theme: Theme) => css` | ||
all: unset; | ||
color: ${theme.color.grey500}; | ||
font-weight: ${theme.fontWeight.bold}; | ||
font-size: 0.88rem; | ||
`; | ||
|
||
const linkTitle = (theme: Theme) => css` | ||
all: unset; | ||
color: ${theme.color.grey900}; | ||
`; |
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 { css, Theme } from "@emotion/react"; | ||
|
||
interface Props { | ||
title: string; | ||
summary: string; | ||
} | ||
|
||
function PlaceInform({ title, summary }: Props) { | ||
return ( | ||
<div css={wrapper}> | ||
<span css={subName}>{title}</span> | ||
<span css={inform}>{summary}</span> | ||
</div> | ||
); | ||
} | ||
|
||
export default PlaceInform; | ||
|
||
const wrapper = css` | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
margin: 0.23rem 0; | ||
`; | ||
|
||
const subName = (theme: Theme) => css` | ||
font-weight: ${theme.fontWeight.normal}; | ||
color: ${theme.color.grey500}; | ||
font-size: 0.75rem; | ||
margin-right: 0.65rem; | ||
`; | ||
|
||
const inform = (theme: Theme) => css` | ||
font-weight: ${theme.fontWeight.normal}; | ||
color: ${theme.color.black}; | ||
font-size: 0.92rem; | ||
`; |
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,57 @@ | ||
import { css, Theme } from "@emotion/react"; | ||
import Link from "next/link"; | ||
|
||
function PlaceLink() { | ||
return ( | ||
<div css={introduceWrapper}> | ||
<div css={nameWrapper}> | ||
<span css={placeName}>κ°κ²μ΄λ¦</span> | ||
</div> | ||
<div css={buttonWrapper}> | ||
<a href="tel:010-1234-456"> | ||
<span css={linkButton}>μ ν</span> | ||
</a> | ||
<span css={linkButton}>μ§λ보기</span> | ||
<span css={linkButton}>곡μ </span> | ||
<Link href="/Review"> | ||
<a> | ||
<span css={linkButton}>리뷰보기</span> | ||
</a> | ||
</Link> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default PlaceLink; | ||
|
||
const nameWrapper = css` | ||
display: flex; | ||
flex-direction: row; | ||
margin: 0.5rem 0; | ||
`; | ||
|
||
const placeName = (theme: Theme) => css` | ||
font-weight: ${theme.fontWeight.bold}; | ||
font-size: 1.5rem; | ||
`; | ||
|
||
const buttonWrapper = css` | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
`; | ||
|
||
const introduceWrapper = (theme: Theme) => css` | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
height: auto; | ||
margin: 0.6rem 0 0.4rem 0; | ||
background-color: ${theme.color.fullWhite}; | ||
`; | ||
|
||
const linkButton = (theme: Theme) => css` | ||
color: ${theme.color.grey900}; | ||
font-size: 0.95rem; | ||
`; |
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,55 @@ | ||
import { css, Theme } from "@emotion/react"; | ||
|
||
interface Props { | ||
title: string; | ||
summary: string; | ||
} | ||
|
||
function PlaceTime({ title, summary }: Props) { | ||
return ( | ||
<div css={wrapper}> | ||
<span css={subName}>{title}</span> | ||
<details css={detailsWrapper}> | ||
<summary>{summary}</summary> | ||
<ul css={ulWrapper}> | ||
<li css={timeList}>μ 12:00 ~ 23:00 </li> | ||
<li css={timeList}>ν 12:00 ~ 23:00 </li> | ||
<li css={timeList}>μ 12:00 ~ 23:00 </li> | ||
</ul> | ||
</details> | ||
</div> | ||
); | ||
} | ||
|
||
export default PlaceTime; | ||
|
||
const wrapper = css` | ||
display: flex; | ||
flex-direction: row; | ||
margin: 0.23rem 0; | ||
`; | ||
|
||
const subName = (theme: Theme) => css` | ||
font-weight: ${theme.fontWeight.normal}; | ||
color: ${theme.color.grey500}; | ||
font-size: 0.75rem; | ||
margin-right: 0.65rem; | ||
margin-top: 0.14rem; | ||
`; | ||
|
||
const detailsWrapper = (theme: Theme) => css` | ||
font-size: 0.92rem; | ||
background-color: ${theme.color.fullWhite}; | ||
`; | ||
|
||
const ulWrapper = css` | ||
all: unset; | ||
display: flex; | ||
flex-direction: column; | ||
height: auto; | ||
`; | ||
|
||
const timeList = css` | ||
margin: 0; | ||
font-size: 0.92rem; | ||
`; |
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,57 @@ | ||
import { css, Theme } from "@emotion/react"; | ||
|
||
function Category() { | ||
return ( | ||
<> | ||
<div css={keywordMenu}> | ||
<span css={title}>λ©λ΄</span> | ||
</div> | ||
<div css={categoryMenu}> | ||
<div css={categoryShape}> | ||
<span css={category}>ν€μλ</span> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
} | ||
|
||
export default Category; | ||
|
||
const title = (theme: Theme) => css` | ||
font-size: 1rem; | ||
font-weight: ${theme.fontWeight.bold}; | ||
`; | ||
|
||
const keywordMenu = (theme: Theme) => css` | ||
width: 100%; | ||
margin: 1.8rem 0 0.85rem 0; | ||
padding: 0.55rem 1.3rem; | ||
background-color: ${theme.color.grey100}; | ||
`; | ||
|
||
const categoryMenu = css` | ||
display: flex; | ||
flex-direction: row; | ||
padding: 0 0.7rem; | ||
height: 2rem; | ||
width: 100%; | ||
overflow-x: scroll; | ||
&::-webkit-scrollbar { | ||
display: none; | ||
} | ||
`; | ||
|
||
const categoryShape = (theme: Theme) => css` | ||
border: 1px solid ${theme.color.grey500}; | ||
width: auto; | ||
height: 1.85rem; | ||
padding: 0.1rem 0.62rem; | ||
border-radius: 20px; | ||
margin: 0 0.13rem; | ||
`; | ||
|
||
const category = (theme: Theme) => css` | ||
font-size: 0.81rem; | ||
font-weight: ${theme.fontWeight.light}; | ||
`; |
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,67 @@ | ||
import { css, Theme } from "@emotion/react"; | ||
import Image from "next/image"; | ||
|
||
function MenuList() { | ||
return ( | ||
<div css={wrapper}> | ||
<div css={itemPlaced}> | ||
<div css={summaryWrapper}> | ||
<span css={menuName}>λ©λ΄λͺ </span> | ||
<span css={price}>κ°κ²©</span> | ||
</div> | ||
<div css={imgWrapper}> | ||
<Image | ||
src="/images/menu.jpg" | ||
alt="img" | ||
layout="fill" | ||
objectFit="cover" | ||
css={menuImg} | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default MenuList; | ||
|
||
const wrapper = (theme: Theme) => css` | ||
width: 100%; | ||
height: fit-content; | ||
border-top: 1px solid ${theme.color.grey100}; ; | ||
`; | ||
|
||
const itemPlaced = css` | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
padding: 0.7rem 1.3rem; | ||
`; | ||
|
||
const summaryWrapper = css` | ||
display: flex; | ||
flex-direction: column; | ||
`; | ||
|
||
const imgWrapper = css` | ||
position: relative; | ||
width: 9.7rem; | ||
height: 7.5rem; | ||
`; | ||
|
||
const menuImg = css` | ||
width: 100%; | ||
height: 100%; | ||
border-radius: 0.6rem; | ||
`; | ||
|
||
const menuName = (theme: Theme) => css` | ||
font-weight: ${theme.fontWeight.bold}; | ||
font-size: 1.1rem; | ||
`; | ||
|
||
const price = (theme: Theme) => css` | ||
color: ${theme.color.grey500}; | ||
font-weight: ${theme.fontWeight.normal}; | ||
font-size: 0.75rem; | ||
`; |
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 LottieWrapper from "components/common/LottieWrapper"; | ||
import bgLottieData from "assets/lottieJSON/questionMark.json"; | ||
|
||
function QuestionLottie() { | ||
return ( | ||
<div css={wrapper}> | ||
<LottieWrapper lottieData={bgLottieData} /> | ||
</div> | ||
); | ||
} | ||
|
||
export default QuestionLottie; | ||
|
||
const wrapper = css` | ||
width: 85%; | ||
height: 50%; | ||
`; |
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
Oops, something went wrong.