Skip to content

Commit

Permalink
여행일기 목록 페이지 퍼블리싱
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunJinNo committed Jul 6, 2024
1 parent 1d4bbf3 commit b80de18
Show file tree
Hide file tree
Showing 22 changed files with 446 additions and 47 deletions.
3 changes: 3 additions & 0 deletions public/day-text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/diary-image2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions public/mood-icon1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions public/mood-icon2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions public/mood-icon3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions public/mood-icon4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions public/mood-icon5.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions public/pencil-green-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions src/app/diary/list/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import DiaryList from "@/components/diary/DiaryList";
import DiaryListSkeleton from "@/components/skeleton/diary/DiaryListSkeleton";
import { Metadata } from "next";
import { Suspense } from "react";

export const metadata: Metadata = {
title: "여행일기",
Expand All @@ -8,8 +10,10 @@ export const metadata: Metadata = {

export default function page() {
return (
<div className="flex flex-col items-center">
<DiaryList />
<div className="flex flex-col items-center py-4">
<Suspense fallback={<DiaryListSkeleton />}>
<DiaryList />
</Suspense>
</div>
);
}
2 changes: 1 addition & 1 deletion src/components/common/TopList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const TopList = async ({ title }: MyProps) => {
>
<p className="w-6 font-bold text-main">{index + 1}.</p>
<Link
className="w-96 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium text-gray1 hover:text-main max-[1024px]:w-full dark:text-slate-400"
className="w-96 truncate text-sm font-medium text-gray1 hover:text-main max-[1024px]:w-full dark:text-slate-400"
href="/"
>
{title}
Expand Down
Loading

0 comments on commit b80de18

Please sign in to comment.