-
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.
- Loading branch information
1 parent
a989e1e
commit 80c1331
Showing
5 changed files
with
83 additions
and
30 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 |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import React from "react"; | ||
import * as S from "./style"; | ||
|
||
function BoardItem() { | ||
|
||
function BoardItem({ data }: { data: BoardType }) { | ||
return ( | ||
<S.BoardItem> | ||
<S.FoodWrap> | ||
<S.Food src="/images/Food.svg" alt="음식사진" fill /> | ||
<S.Food src={data?.imageUrl} alt="음식사진" fill /> | ||
</S.FoodWrap> | ||
<S.Content> | ||
<S.TitleWrap> | ||
<S.Title>음식이름음식이름음식이름</S.Title> | ||
<S.Description>달달하면서 매콤한 간단 LA갈비 달달하면서 매콤한 간단 LA갈비 달달하면서 매콤한 간단 LA갈비</S.Description> | ||
<S.Title>{data?.name}</S.Title> | ||
<S.Description>{data?.description}</S.Description> | ||
</S.TitleWrap> | ||
<S.InfoWrap> | ||
<S.Info>작성자</S.Info> | ||
<S.Info>{data?.writer}</S.Info> | ||
<S.Info>ᐧ</S.Info> | ||
<S.Info>2023-04-04</S.Info> | ||
<S.Info>{data?.createdDate}</S.Info> | ||
</S.InfoWrap> | ||
</S.Content> | ||
</S.BoardItem> | ||
); | ||
return <></>; | ||
} | ||
|
||
export default BoardItem; |
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,10 @@ | ||
interface BoardType { | ||
boardId: number; | ||
name: string; | ||
description: string; | ||
imageUrl: string; | ||
writer: string; | ||
createdDate: string; | ||
editable: boolean; | ||
views: number; | ||
} |
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