@@ -11,9 +11,11 @@ import { useRouter } from "next/navigation";
1111
1212import type { Category , Post , ReceiveMethod , Region } from "@/types/domain" ;
1313
14- import { parseLocalDateString } from "@/lib/utils" ;
1514import { getImageUrl } from "@/lib/utils/image" ;
1615
16+ import { parseLocalDateString } from "@/lib/utils" ;
17+
18+ import { AISearchIcon } from "@/components/ui/ai-search-icon" ;
1719import { Button } from "@/components/ui/button" ;
1820import {
1921 Card ,
@@ -29,7 +31,6 @@ import {
2931 TooltipProvider ,
3032 TooltipTrigger ,
3133} from "@/components/ui/tooltip" ;
32- import { AISearchIcon } from "@/components/ui/ai-search-icon" ;
3334
3435import { useAuthStore } from "@/store/authStore" ;
3536
@@ -49,12 +50,6 @@ import {
4950 TrendingUp ,
5051} from "lucide-react" ;
5152
52- const RECEIVE_METHOD_LABELS : Record < ReceiveMethod , string > = {
53- DIRECT : "직거래" ,
54- DELIVERY : "택배" ,
55- ANY : "상관없음" ,
56- } ;
57-
5853/**
5954 * 홈 페이지
6055 */
@@ -71,33 +66,11 @@ const RECEIVE_METHOD_LABELS: Record<ReceiveMethod, string> = {
7166 * 홈 페이지
7267 */
7368
74- /**
75- * 홈 페이지
76- */
77-
78- /**
79- * 홈 페이지
80- */
81-
82- /**
83- * 홈 페이지
84- */
85-
86- /**
87- * 홈 페이지
88- */
89-
90- /**
91- * 홈 페이지
92- */
93-
94- /**
95- * 홈 페이지
96- */
97-
98- /**
99- * 홈 페이지
100- */
69+ const RECEIVE_METHOD_LABELS : Record < ReceiveMethod , string > = {
70+ DIRECT : "직거래" ,
71+ DELIVERY : "택배" ,
72+ ANY : "상관없음" ,
73+ } ;
10174
10275/**
10376 * 홈 페이지
@@ -145,10 +118,10 @@ export default function Home() {
145118 < div className = "container relative mx-auto px-4" >
146119 < div className = "mx-auto max-w-4xl text-center" >
147120 < h1 className = "mb-6 text-5xl font-bold md:text-6xl lg:text-7xl" >
148- P2P 취미 장비 대여 플랫폼
121+ CHWI·MEET, 취미 대여
149122 </ h1 >
150123 < p className = "mb-10 text-xl text-blue-50 md:text-2xl" >
151- 필요한 장비를 쉽고 빠르게 대여하세요
124+ 원하는 활동에 맞는 장비를 쉽고 빠르게 빌려보세요.
152125 </ p >
153126 { /* AI 검색 바 */ }
154127 < div className = "mb-8" data-ai-search-bar >
@@ -169,7 +142,7 @@ export default function Home() {
169142 value = { searchQuery }
170143 onChange = { ( e ) => setSearchQuery ( e . target . value ) }
171144 onKeyDown = { handleKeyDown }
172- placeholder = "어떤 장비를 찾고 있나요? "
145+ placeholder = "예) 혼자 캠핑 갈 건데 필요한 장비 알려줘 "
173146 className = "flex-1 border-0 text-gray-900 focus-visible:ring-0 focus-visible:ring-offset-0"
174147 />
175148 < Button
@@ -280,7 +253,9 @@ export default function Home() {
280253 if ( child ) return child ;
281254 }
282255 if ( category . children ) {
283- const child = category . children . find ( ( c ) => c . id === id ) ;
256+ const child = category . children . find (
257+ ( c ) => c . id === id ,
258+ ) ;
284259 if ( child ) return child ;
285260 }
286261 }
@@ -333,7 +308,8 @@ export default function Home() {
333308 toggleFavoriteMutation . mutate ( post . id ) ;
334309 } ;
335310
336- const isAuthor = user ?. id === ( post . author ?. id ?? post . authorId ) ;
311+ const isAuthor =
312+ user ?. id === ( post . author ?. id ?? post . authorId ) ;
337313
338314 return (
339315 < div key = { post . id } className = "relative" >
@@ -369,7 +345,9 @@ export default function Home() {
369345 ) }
370346 { isAuthenticated && isAuthor && (
371347 < TooltipContent >
372- < p > 자신의 게시글에는 즐겨찾기를 할 수 없습니다.</ p >
348+ < p >
349+ 자신의 게시글에는 즐겨찾기를 할 수 없습니다.
350+ </ p >
373351 </ TooltipContent >
374352 ) }
375353 </ Tooltip >
0 commit comments