diff --git a/package-lock.json b/package-lock.json index c55e59bc..7a245686 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "solitour-frontend", - "version": "1.0.2", + "version": "1.0.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "solitour-frontend", - "version": "1.0.2", + "version": "1.0.3", "dependencies": { "@date-io/date-fns": "^3.0.0", "@hookform/resolvers": "^3.6.0", diff --git a/package.json b/package.json index 45cef0ed..69a37285 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "solitour-frontend", - "version": "1.0.2", + "version": "1.0.3", "private": true, "scripts": { "dev": "next dev", diff --git a/public/sitemap.xml b/public/sitemap.xml index ace48118..6d11dde9 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -9,372 +9,462 @@ https://www.solitourist.com/ - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 1.00 https://www.solitourist.com/informations/list?page=1&parentCategoryId=1 - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.80 https://www.solitourist.com/gathering - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.80 https://www.solitourist.com/auth/signin - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.80 https://www.solitourist.com/support?menu=about - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.80 https://www.solitourist.com/support?menu=terms - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.80 - https://www.solitourist.com/informations/1 - 2024-09-20T09:47:45+00:00 + https://www.solitourist.com/informations/7 + 2024-10-07T15:33:01+00:00 0.80 - https://www.solitourist.com/informations/2 - 2024-09-20T09:47:45+00:00 + https://www.solitourist.com/informations/1 + 2024-10-07T15:33:01+00:00 0.80 - https://www.solitourist.com/informations/3 - 2024-09-20T09:47:45+00:00 + https://www.solitourist.com/informations/12 + 2024-10-07T15:33:01+00:00 0.80 - https://www.solitourist.com/informations/7 - 2024-09-20T09:47:45+00:00 + https://www.solitourist.com/informations/2 + 2024-10-07T15:33:01+00:00 0.80 - https://www.solitourist.com/informations/5 - 2024-09-20T09:47:45+00:00 + https://www.solitourist.com/informations/11 + 2024-10-07T15:33:01+00:00 0.80 - https://www.solitourist.com/informations/6 - 2024-09-20T09:47:45+00:00 + https://www.solitourist.com/informations/14 + 2024-10-07T15:33:01+00:00 0.80 + + https://www.solitourist.com/informations/3 + 2024-10-07T15:33:01+00:00 + 0.64 + https://www.solitourist.com/informations/list?page=1&parentCategoryId=2 - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.64 https://www.solitourist.com/informations/list?page=1&parentCategoryId=3 - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.64 https://www.solitourist.com/informations/list?page=1&parentCategoryId=1&childCategoryId=4 - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.64 https://www.solitourist.com/informations/list?page=1&parentCategoryId=1&childCategoryId=5 - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.64 https://www.solitourist.com/informations/list?page=1&parentCategoryId=1&childCategoryId=6 - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.64 https://www.solitourist.com/informations/list?page=1&parentCategoryId=1&order=latest - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.64 https://www.solitourist.com/informations/list?page=1&parentCategoryId=1&order=likes - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.64 https://www.solitourist.com/informations/list?page=1&parentCategoryId=1&order=views - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 + 0.64 + + + https://www.solitourist.com/informations/13 + 2024-10-07T15:33:01+00:00 + 0.64 + + + https://www.solitourist.com/informations/5 + 2024-10-07T15:33:01+00:00 + 0.64 + + + https://www.solitourist.com/informations/list?page=2&parentCategoryId=1 + 2024-10-07T15:33:01+00:00 0.64 https://www.solitourist.com/auth/signup - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 + 0.64 + + + https://www.solitourist.com/informations/4 + 2024-10-07T15:33:01+00:00 0.64 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&childCategoryId=7 - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&childCategoryId=8 - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&childCategoryId=9 - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&childCategoryId=10 - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&childCategoryId=11 - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&order=latest - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&order=likes - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&order=views - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 + 0.51 + + + https://www.solitourist.com/informations/10 + 2024-10-07T15:33:01+00:00 + 0.51 + + + https://www.solitourist.com/informations/9 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/8 - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 + 0.51 + + + https://www.solitourist.com/informations/list?page=2&parentCategoryId=2 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=3&childCategoryId=12 - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=3&childCategoryId=13 - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=3&childCategoryId=14 - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=3&childCategoryId=15 - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=3&order=latest - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=3&order=likes - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=3&order=views - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 - https://www.solitourist.com/informations/9 - 2024-09-20T09:47:45+00:00 + https://www.solitourist.com/informations/6 + 2024-10-07T15:33:01+00:00 + 0.51 + + + https://www.solitourist.com/informations/list?page=2&parentCategoryId=3 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=1&childCategoryId=4&order=latest - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=1&childCategoryId=4&order=likes - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=1&childCategoryId=4&order=views - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=1&childCategoryId=5&order=latest - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=1&childCategoryId=5&order=likes - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=1&childCategoryId=5&order=views - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=1&childCategoryId=6&order=latest - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=1&childCategoryId=6&order=likes - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=1&childCategoryId=6&order=views - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 + 0.51 + + + https://www.solitourist.com/informations/list?page=2&parentCategoryId=1&order=latest + 2024-10-07T15:33:01+00:00 + 0.51 + + + https://www.solitourist.com/informations/list?page=2&parentCategoryId=1&order=likes + 2024-10-07T15:33:01+00:00 + 0.51 + + + https://www.solitourist.com/informations/list?page=2&parentCategoryId=1&order=views + 2024-10-07T15:33:01+00:00 0.51 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&childCategoryId=7&order=latest - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&childCategoryId=7&order=likes - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&childCategoryId=7&order=views - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&childCategoryId=8&order=latest - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&childCategoryId=8&order=likes - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&childCategoryId=8&order=views - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&childCategoryId=9&order=latest - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&childCategoryId=9&order=likes - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&childCategoryId=9&order=views - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&childCategoryId=10&order=latest - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&childCategoryId=10&order=likes - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&childCategoryId=10&order=views - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&childCategoryId=11&order=latest - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&childCategoryId=11&order=likes - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=2&childCategoryId=11&order=views - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 + 0.41 + + + https://www.solitourist.com/informations/list?page=2&parentCategoryId=2&order=latest + 2024-10-07T15:33:01+00:00 + 0.41 + + + https://www.solitourist.com/informations/list?page=2&parentCategoryId=2&order=likes + 2024-10-07T15:33:01+00:00 + 0.41 + + + https://www.solitourist.com/informations/list?page=2&parentCategoryId=2&order=views + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=3&childCategoryId=12&order=latest - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=3&childCategoryId=12&order=likes - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=3&childCategoryId=12&order=views - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=3&childCategoryId=13&order=latest - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=3&childCategoryId=13&order=likes - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=3&childCategoryId=13&order=views - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=3&childCategoryId=14&order=latest - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=3&childCategoryId=14&order=likes - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=3&childCategoryId=14&order=views - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=3&childCategoryId=15&order=latest - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=3&childCategoryId=15&order=likes - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 0.41 https://www.solitourist.com/informations/list?page=1&parentCategoryId=3&childCategoryId=15&order=views - 2024-09-20T09:47:45+00:00 + 2024-10-07T15:33:01+00:00 + 0.41 + + + https://www.solitourist.com/informations/list?page=2&parentCategoryId=3&order=latest + 2024-10-07T15:33:01+00:00 + 0.41 + + + https://www.solitourist.com/informations/list?page=2&parentCategoryId=3&order=likes + 2024-10-07T15:33:01+00:00 + 0.41 + + + https://www.solitourist.com/informations/list?page=2&parentCategoryId=3&order=views + 2024-10-07T15:33:01+00:00 0.41 diff --git a/src/app/api/gathering/route.ts b/src/app/api/gathering/route.ts index 9b507cb5..ec90cc01 100644 --- a/src/app/api/gathering/route.ts +++ b/src/app/api/gathering/route.ts @@ -16,7 +16,6 @@ export async function POST(request: NextRequest) { try { const requestData = await request.json(); - const response = await fetch(`${process.env.BACKEND_URL}/api/gatherings`, { method: "POST", headers: { @@ -25,7 +24,7 @@ export async function POST(request: NextRequest) { }, body: JSON.stringify(requestData), }); - // TODO : 에러처리 작업 필요함 + if (!response.ok) { const errorData = await response.json(); throw new Error(`Error: ${errorData.error || "Unknown error occurred"}`); diff --git a/src/app/informations/(detail)/[id]/page.tsx b/src/app/informations/(detail)/[id]/page.tsx index 6dedaae0..3ab2299c 100644 --- a/src/app/informations/(detail)/[id]/page.tsx +++ b/src/app/informations/(detail)/[id]/page.tsx @@ -1,7 +1,6 @@ import Breadcrumbs from "@/components/common/Breadcrumb"; import InformationViewer from "@/components/informations/detail/InformationViewer"; import RecommendationList from "@/components/informations/detail/RecommendationList"; -import CommentListContainer from "@/containers/informations/detail/CommentListContainer"; import { InformationDetailDto } from "@/types/InformationDto"; import { cookies } from "next/headers"; diff --git a/src/app/page.tsx b/src/app/page.tsx index c39b6a6e..41436cce 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -7,36 +7,11 @@ import HomeCarouselContainer from "@/containers/home/HomeCarouselContainer"; import ListTemplateContainer from "@/containers/home/ListTemplateContainer"; import { Suspense } from "react"; -// async function fetchBannerList(): Promise { -// const url = `${process.env.BACKEND_URL}/api/banner`; - -// try { -// const response = await fetch(url); - -// if (!response.ok) { -// const errorText = await response.text(); -// console.error(`Failed to fetch data: ${response.status} - ${errorText}`); -// return []; // 빈 배열 반환 -// } - -// const data: Banner[] = await response.json(); -// return data; -// } catch (error) { -// console.error("An error occurred while fetching the banner list:", error); -// return []; // 빈 배열 반환 -// } -// } - -export default async function Home() { - // const initBannerList = await fetchBannerList(); - +export default function Home() { return (
- 0 ? initBannerList : []} - initBannerList={[]} - /> +
diff --git a/src/components/common/GatheringItem.tsx b/src/components/common/GatheringItem.tsx index fad8aeee..de11b1cb 100644 --- a/src/components/common/GatheringItem.tsx +++ b/src/components/common/GatheringItem.tsx @@ -35,7 +35,6 @@ const status: { [key: string]: string } = { REFUSE: "거절", }; -// todo const GatheringItem = ({ data, isAccessGathering }: IGatheringItem) => { return ( { return ( { /> { e.stopPropagation(); @@ -89,7 +89,7 @@ const DiaryCard = ({ diaryData, flag, isFlipped, flip }: Props) => { ).toLocaleDateString("ko-KR")} { informationId={post.id} categoryName={post.category} isBookMark={true} - isLike={false} // TODO: 수정 필요 + isLike={false} title={post.title} image={post.image} address="테스트 주소" diff --git a/src/components/skeleton/informations/detail/RecommendationListSkeleton.tsx b/src/components/skeleton/informations/detail/RecommendationListSkeleton.tsx index e42bda16..d36d1b85 100644 --- a/src/components/skeleton/informations/detail/RecommendationListSkeleton.tsx +++ b/src/components/skeleton/informations/detail/RecommendationListSkeleton.tsx @@ -4,7 +4,7 @@ const RecommendationListSkeleton = () => { return (

추천 정보

-
+
{[1, 2, 3].map((value) => ( ))} diff --git a/src/containers/home/HomeCarouselContainer.tsx b/src/containers/home/HomeCarouselContainer.tsx index dc276661..daedac93 100644 --- a/src/containers/home/HomeCarouselContainer.tsx +++ b/src/containers/home/HomeCarouselContainer.tsx @@ -1,19 +1,15 @@ "use client"; import HomeCarousel from "@/components/home/HomeCarousel"; -import { Banner } from "@/types/BannerDto"; import { useEffect, useState } from "react"; -interface IHomeCarouselContainer { - initBannerList: Banner[] | []; -} -const HomeCarouselContainer = (props: IHomeCarouselContainer) => { + +const HomeCarouselContainer = () => { const [currentIndex, setCurrentIndex] = useState(0); const [bannerList, _] = useState([ { id: 0, name: "", url: "/home/background1.png" }, { id: 0, name: "", url: "/home/background2.png" }, { id: 0, name: "", url: "/home/background3.png" }, { id: 0, name: "", url: "/home/background4.png" }, - ...props.initBannerList, ]); const onClick = (index: number) => { diff --git a/src/styles/globals.css b/src/styles/globals.css index b18fc1d4..2dd1becf 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -10,7 +10,7 @@ } @font-face { - font-family: "pretendrad"; + font-family: "pretendard"; src: url("/fonts/PretendardVariable.ttf") format("truetype"); font-weight: normal; font-style: normal; @@ -18,7 +18,6 @@ :root { --foreground-rgb: 0, 0, 0; - /*--background-start-rgb: 214, 219, 220;*/ --background-start-rgb: 255, 255, 255; --background-end-rgb: 255, 255, 255; } @@ -30,7 +29,7 @@ } body { - font-family: "pretendrad"; + font-family: "pretendard"; color: rgb(var(--foreground-rgb)); background: linear-gradient( to bottom, @@ -76,84 +75,6 @@ body { background: linear-gradient(to bottom, #dad0e9, #bae5ee); } -.truncate-vertical-information-title { - text-overflow: ellipsis; - overflow: hidden; - word-break: break-word; - display: -webkit-box; - -webkit-line-clamp: 2; - -webkit-box-orient: vertical; -} - -.truncate-vertical { - text-overflow: ellipsis; - overflow: hidden; - word-break: break-word; - display: -webkit-box; - -webkit-line-clamp: 7; - -webkit-box-orient: vertical; -} - -@media (max-width: 1024px) { - .truncate-vertical { - -webkit-line-clamp: 6; - } -} - -@media (max-width: 1000px) { - .truncate-vertical { - -webkit-line-clamp: 5; - } -} - -@media (max-width: 972px) { - .truncate-vertical { - -webkit-line-clamp: 7; - } -} - -@media (max-width: 950px) { - .truncate-vertical { - -webkit-line-clamp: 6; - } -} - -@media (max-width: 910px) { - .truncate-vertical { - -webkit-line-clamp: 5; - } -} - -@media (max-width: 875px) { - .truncate-vertical { - -webkit-line-clamp: 4; - } -} - -@media (max-width: 845px) { - .truncate-vertical { - -webkit-line-clamp: 5; - } -} - -@media (max-width: 820px) { - .truncate-vertical { - -webkit-line-clamp: 4; - } -} - -@media (max-width: 780px) { - .truncate-vertical { - -webkit-line-clamp: 3; - } -} - -@media (max-width: 744px) { - .truncate-vertical { - -webkit-line-clamp: 5; - } -} - ::-webkit-calendar-picker-indicator { color: rgba(0, 0, 0, 0); opacity: 1; diff --git a/src/utils/fetchWithAuth.ts b/src/utils/fetchWithAuth.ts index 28fdcf8b..fbc67de9 100644 --- a/src/utils/fetchWithAuth.ts +++ b/src/utils/fetchWithAuth.ts @@ -13,7 +13,7 @@ export async function fetchWithAuth(url: string, options = {}, retries = 1) { message: "실패", }); } - // TODO: 추가적인 에러처리 필요 + return await fetchWithAuth(url, options, 0); // 요청 재시도 } return response; diff --git a/tailwind.config.ts b/tailwind.config.ts index 9c2c56a9..72230988 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -98,8 +98,16 @@ const config: Config = { }, }, plugins: [ - function ({ addUtilities }: PluginAPI) { - addUtilities({ + ({ addComponents }: PluginAPI) => { + addComponents({ + ".truncate-vertical-information-title": { + "text-overflow": "ellipsis", + overflow: "hidden", + "word-break": "break-word", + display: "-webkit-box", + "-webkit-line-clamp": "2", + "-webkit-box-orient": "vertical", + }, ".scrollbar-hide": { "-ms-overflow-style": "none" /* IE and Edge */, "scrollbar-width": "none" /* Firefox */, @@ -107,6 +115,64 @@ const config: Config = { display: "none" /* Chrome, Safari, and Opera */, }, }, + ".truncate-vertical-diary-content": { + "text-overflow": "ellipsis", + overflow: "hidden", + "work-break": "break-word", + display: "-webkit-box", + "-webkit-line-clamp": "7", + "-webkit-box-orient": "vertical", + }, + "@media (max-width: 1024px)": { + ".truncate-vertical-diary-content": { + "-webkit-line-clamp": "6", + }, + }, + "@media (max-width: 1000px)": { + ".truncate-vertical-diary-content": { + "-webkit-line-clamp": "5", + }, + }, + "@media (max-width: 972px)": { + ".truncate-vertical-diary-content": { + "-webkit-line-clamp": "7", + }, + }, + "@media (max-width: 950px)": { + ".truncate-vertical-diary-content": { + "-webkit-line-clamp": "6", + }, + }, + "@media (max-width: 910px)": { + ".truncate-vertical-diary-content": { + "-webkit-line-clamp": "5", + }, + }, + "@media (max-width: 875px)": { + ".truncate-vertical-diary-content": { + "-webkit-line-clamp": "4", + }, + }, + "@media (max-width: 845px)": { + ".truncate-vertical-diary-content": { + "-webkit-line-clamp": "5", + }, + }, + "@media (max-width: 820px)": { + ".truncate-vertical-diary-content": { + "-webkit-line-clamp": "4", + }, + }, + "@media (max-width: 780px)": { + ".truncate-vertical-diary-content": { + "-webkit-line-clamp": "3", + }, + }, + "@media (max-width: 744px)": { + ".truncate-vertical-diary-content": { + "-webkit-line-clamp": "5", + }, + }, }); }, ],