-
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.
Merge pull request #12 from Recipe-GPT/feat/detail
- Loading branch information
Showing
21 changed files
with
360 additions
and
22 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import React from "react"; | ||
import * as S from "./style"; | ||
import { MdPeopleAlt } from "react-icons/md"; | ||
import { BiTimeFive } from "react-icons/bi"; | ||
import { AiTwotoneStar } from "react-icons/ai"; | ||
function DetailInfor() { | ||
return ( | ||
<> | ||
<S.DetailInfor> | ||
<S.Title> | ||
<S.MainTitle>매콤한 LA갈비</S.MainTitle> | ||
<S.Description>매콤하면서 달달한 간단하게 만드는 LA 갈비</S.Description> | ||
</S.Title> | ||
<S.ImageDiv> | ||
<S.FoodImage | ||
src="../images/Food.svg" | ||
alt="음식 사진" | ||
width={700} | ||
height={533} | ||
/> | ||
</S.ImageDiv> | ||
<S.Infor> | ||
<S.InforDiv> | ||
<S.InforIcon> | ||
<MdPeopleAlt /> | ||
</S.InforIcon> | ||
<S.InforTitle>2인분</S.InforTitle> | ||
</S.InforDiv> | ||
<S.InforDiv> | ||
<S.InforIcon> | ||
<BiTimeFive /> | ||
</S.InforIcon> | ||
<S.InforTitle>900</S.InforTitle> | ||
</S.InforDiv> | ||
<S.InforDiv> | ||
<S.InforIcon> | ||
<AiTwotoneStar /> | ||
</S.InforIcon> | ||
<S.InforTitle>어려움</S.InforTitle> | ||
</S.InforDiv> | ||
</S.Infor> | ||
</S.DetailInfor> | ||
</> | ||
); | ||
} | ||
|
||
export default DetailInfor; |
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,53 @@ | ||
import styled from "styled-components"; | ||
import Image from "next/image"; | ||
|
||
export const DetailInfor = styled.div` | ||
width: 50vw; | ||
margin: 0 auto; | ||
text-align: center; | ||
`; | ||
|
||
export const Title = styled.div``; | ||
|
||
export const MainTitle = styled.p` | ||
font-size: 2.2rem; | ||
font-weight: 700; | ||
`; | ||
|
||
export const Description = styled.p` | ||
color: ${({ theme }) => theme.color.grey800}; | ||
font-size: 1.2rem; | ||
padding: 5px 0px 18px 0px; | ||
`; | ||
|
||
export const ImageDiv = styled.div` | ||
position: relative; | ||
margin: 0 auto; | ||
border-radius: 20px; | ||
overflow: hidden; | ||
`; | ||
|
||
export const FoodImage = styled(Image)` | ||
border-radius: 20px; | ||
object-fit: cover; | ||
display: block; | ||
width: 100%; | ||
height: 100%; | ||
`; | ||
|
||
export const Infor = styled.div` | ||
display: flex; | ||
justify-content: space-between; | ||
padding: 40px 80px 30px 80px; | ||
`; | ||
|
||
export const InforDiv = styled.div` | ||
color: ${({ theme }) => theme.color.grey800}; | ||
font-size: 1.3rem; | ||
`; | ||
|
||
export const InforIcon = styled.p` | ||
font-size: 1.8rem; | ||
`; | ||
|
||
export const InforTitle = styled.p``; |
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,40 @@ | ||
import React from "react"; | ||
import * as S from "./style"; | ||
function DetailIngredient() { | ||
return ( | ||
<> | ||
<S.DetailIngredients> | ||
<S.Title>재료</S.Title> | ||
<S.MainHr /> | ||
<S.Ingredients> | ||
<S.Ingredient> | ||
<S.MiniTitle>기본재료</S.MiniTitle> | ||
<S.HrPad> | ||
<S.ServeHr /> | ||
</S.HrPad> | ||
<div> | ||
<S.IngredientInfor> | ||
<S.IngredientName>돼지고기</S.IngredientName> | ||
<S.IngredientNum>1팩</S.IngredientNum> | ||
</S.IngredientInfor> | ||
</div> | ||
</S.Ingredient> | ||
<S.Ingredient> | ||
<S.MiniTitle>소스재료</S.MiniTitle> | ||
<S.HrPad> | ||
<S.ServeHr /> | ||
</S.HrPad> | ||
<div> | ||
<S.IngredientInfor> | ||
<S.IngredientName>돼지고기</S.IngredientName> | ||
<S.IngredientNum>1팩</S.IngredientNum> | ||
</S.IngredientInfor> | ||
</div> | ||
</S.Ingredient> | ||
</S.Ingredients> | ||
</S.DetailIngredients> | ||
</> | ||
); | ||
} | ||
|
||
export default DetailIngredient; |
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,59 @@ | ||
import styled from "styled-components"; | ||
|
||
export const DetailIngredients = styled.div` | ||
width: 50vw; | ||
margin: 0 auto; | ||
`; | ||
|
||
export const Title = styled.p` | ||
font-size: 1.4rem; | ||
padding-bottom: 0.8rem; | ||
font-family: "Pretendard-Light"; | ||
`; | ||
|
||
export const MainHr = styled.hr` | ||
background-color: ${({ theme }) => theme.color.mainYellow}; | ||
height: 2px; | ||
border: 0; | ||
`; | ||
|
||
export const Ingredients = styled.div` | ||
display: flex; | ||
justify-content: space-between; | ||
padding-top: 1.5rem; | ||
`; | ||
|
||
export const Ingredient = styled.div` | ||
width: 24vw; | ||
`; | ||
|
||
export const IngredientInfor = styled.div` | ||
display: flex; | ||
justify-content: space-between; | ||
padding-bottom: 0.5rem; | ||
`; | ||
|
||
export const MiniTitle = styled.p` | ||
font-size: 1.1rem; | ||
font-family: "Pretendard-Light"; | ||
`; | ||
|
||
export const ServeHr = styled.hr` | ||
background-color: ${({ theme }) => theme.color.grey700}; | ||
height: 1px; | ||
border: 0; | ||
`; | ||
|
||
export const HrPad = styled.div` | ||
padding: 12px 0px 12px 0px; | ||
`; | ||
|
||
export const IngredientName = styled.p` | ||
font-size: 0.8rem; | ||
font-family: "Pretendard-Light"; | ||
`; | ||
export const IngredientNum = styled.p` | ||
font-size: 0.8rem; | ||
color: ${({ theme }) => theme.color.grey900}; | ||
font-family: "Pretendard-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,29 @@ | ||
import React from "react"; | ||
import * as S from "./style"; | ||
|
||
function DetailRecipe() { | ||
return ( | ||
<> | ||
<S.DetailRecipe> | ||
<S.Title>레시피</S.Title> | ||
<S.MainHr /> | ||
<S.Recipe> | ||
<S.RecipeStep> | ||
<S.RecipeTop> | ||
<S.Step>step 1</S.Step> | ||
<S.StepStory>먹기좋게~</S.StepStory> | ||
</S.RecipeTop> | ||
<S.RecipeHr /> | ||
</S.RecipeStep> | ||
</S.Recipe> | ||
<S.RecipeWriter> | ||
<S.Writer>작성자</S.Writer> | ||
<S.Info>ᐧ</S.Info> | ||
<S.Writer>2022.03.05</S.Writer> | ||
</S.RecipeWriter> | ||
</S.DetailRecipe> | ||
</> | ||
); | ||
} | ||
|
||
export default DetailRecipe; |
Oops, something went wrong.