Skip to content

Commit

Permalink
πŸ’… style: μ‹€μ‹œκ°„ ν•«ν•œ ν›„κΈ° 퍼블리싱 μž‘μ—… μ™„λ£Œ #31
Browse files Browse the repository at this point in the history
  • Loading branch information
froggy1014 committed Aug 24, 2024
1 parent 0a370b5 commit b080b73
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
23 changes: 23 additions & 0 deletions src/app/(home)/_components/TopReviews.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { getTopReviews } from "@/apis/review/topReviews/topReviews";
import { ReviewTile } from "@/components/core/List";

const TopReviews = async () => {
const topReviews = await getTopReviews();
return (
<section className="flex w-full flex-col gap-[12px]">
<div className="flex w-full justify-between">
<div className="flex gap-[4px] text-title-bold text-gray-scale-900">
μ‹€μ‹œκ°„ ν•«ν•œ ν›„κΈ°
</div>
</div>

<div className="flex w-full flex-col gap-[12px]">
{topReviews.map((review) => (
<ReviewTile key={review.reviewId} review={review} />
))}
</div>
</section>
);
};

export default TopReviews;
3 changes: 3 additions & 0 deletions src/app/(home)/_components/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export { default as FestivalHot } from "./FestivalHot";
export { default as FestivalThisWeek } from "./FestivalThisWeek";
export { default as TopReviews } from "./TopReviews";
7 changes: 3 additions & 4 deletions src/app/(home)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import { HomeHeader } from "@/layout/Mobile/MobileHeader";
import NavigationBar from "@/layout/Mobile/NavigationBar";

import FestivalHot from "./_components/FestivalHot";
import FestivalThisWeek from "./_components/FestivalThisWeek";

import { FestivalHot, FestivalThisWeek, TopReviews } from "./_components";
export default async function Home() {
return (
<div className="mb-[60px] mt-[44px]">
<HomeHeader />
<main className="flex flex-wrap gap-4 px-[16px]">
<main className="flex flex-col gap-[40px] bg-gray-scale-100 px-[16px] pb-[36px] pt-[16px]">
<FestivalHot />
<FestivalThisWeek />
<TopReviews />
</main>
<NavigationBar />
</div>
Expand Down

0 comments on commit b080b73

Please sign in to comment.