-
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 #18 from hyundai-autoever-first-project-team3/post…
…detailapi PostdetailAPI연동
- Loading branch information
Showing
5 changed files
with
80 additions
and
17 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// import client from "./client"; | ||
import client from "./client"; | ||
|
||
// TIL 글 목록 조회 | ||
// export const getTIL = async ({ pageNumber }) => { | ||
// return await client.get(`/api/tils?page=${pageNumber}`); | ||
// }; | ||
|
||
// TIL 글 상세 조회 | ||
export const getTILDetail = async ({ tilId }) => { | ||
console.log(tilId); | ||
return await client.get(`/api/tils/${tilId}`); | ||
}; | ||
|
||
// export const getLikeCount = async ({ cc }) => { | ||
// console.log(cc); | ||
// return await client.get(`/api/tils/${cc}`); | ||
// }; |
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,29 @@ | ||
import React from "react"; | ||
|
||
const PostComment = () => { | ||
return ( | ||
<div> | ||
<div className="flex flex-col justify-items-start my-8"> | ||
<div className="flex flex-row items-center mb-2 "> | ||
<img | ||
className="size-16 rounded-full" | ||
src="https://images.unsplash.com/photo-1551963831-b3b1ca40c98e" | ||
alt="" | ||
/> | ||
<div className="flex flex-col px-4"> | ||
<div className="text-lg font-semibold ">고채린</div> | ||
<div className="text-md ">2024년 10월 20일</div> | ||
</div> | ||
</div> | ||
<div className="text-xl"> | ||
블로그 글 정말 잘 읽었습니다.글을 통해 많은 정보를 얻을 수 있었고 | ||
앞으로도 좋은 글 많이 기대하겠습니다! | ||
</div> | ||
|
||
<hr className="my-4" /> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PostComment; |
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