@@ -10,12 +10,9 @@ import DetailList from './DetailList';
1010import { Suspense , useEffect , useState } from 'react' ;
1111import SkeletonDetail from '../skeleton/SkeletonDetail' ;
1212import RecipeComment from '../components/details/RecipeComment' ;
13- import { useParams } from 'next/navigation' ;
1413import { getApi } from '@/app/api/config/appConfig' ;
1514
16- function DetailMain ( ) {
17- const { id } = useParams ( ) ;
18-
15+ function DetailMain ( { id } : { id : number } ) {
1916 const [ cocktail , setCocktail ] = useState ( ) ;
2017
2118 const fetchData = async ( ) => {
@@ -57,12 +54,13 @@ function DetailMain() {
5754
5855 return (
5956 < Suspense fallback = { < SkeletonDetail /> } >
60- < div className = "max-w-1024 page-layout py-12" >
61- < DetailsHeader />
57+ < h1 className = "sr-only" > ${ cocktailNameKo } 상세정보</ h1 >
58+ < div className = "max-w-1024 page-layout pt-4 pb-6 sm:pb-12" >
59+ < DetailsHeader id = { id } />
6260
6361 < article className = "flex flex-col items-center mt-4 lg:mt-0" >
64- < span className = "md:bg-secondary w-1 h-100 -translate-y-19 absolute top-0 left-1/2 -translate-x-1/2 md: z-2" > </ span >
65- < span className = "h-3 w-3 rounded-full absolute top-80 left-1/2 -translate-x-1/2 z-99 md:bg-secondary" > </ span >
62+ < span className = "md:bg-secondary w-1 h-104 -translate-y-19 absolute top-0 left-1/2 -translate-x-1/2 md: z-2" > </ span >
63+ < span className = "h-3 w-3 rounded-full absolute top-82 left-1/2 -translate-x-1/2 z-2 md:bg-secondary" > </ span >
6664 < DetailItem
6765 name = { cocktailName }
6866 nameKo = { cocktailNameKo }
@@ -74,22 +72,17 @@ function DetailMain() {
7472 </ article >
7573
7674 < section className = "mt-20 flex flex-col gap-5" >
77- < div className = "border-b-1 h-18 border-white" >
78- < div className = "flex items-center gap-3" >
79- < Image src = { SsuryShake } alt = "" width = "48" height = "48" />
80- < h3 className = "text-3xl font-bold" > 레시피</ h3 >
81- </ div >
75+ < div className = "border-b-1 h-18 border-white flex gap-3 items-center" >
76+ < Image src = { SsuryShake } alt = "" width = "48" height = "48" />
77+ < h3 className = "text-2xl font-bold" > 레시피</ h3 >
8278 </ div >
8379 < DetailRecipe ingredient = { ingredient } recipe = { recipe } />
8480 </ section >
8581
86- < section className = "mt-20" aria-labelledby = "옆으로 슬라이드되는 리스트" >
87- < h2 className = "sr-only" > 추천 칵테일 리스트</ h2 >
88- < div className = "border-b-1 h-18 border-white" >
89- < div className = "flex items-center gap-3" >
90- < Image src = { SsuryDrink } alt = "" width = "48" height = "48" />
91- < h3 className = "text-3xl font-bold" > 추천리스트</ h3 >
92- </ div >
82+ < section className = "mt-20" >
83+ < div className = "border-b-1 h-18 border-white flex items-center gap-3" >
84+ < Image src = { SsuryDrink } alt = "" width = "48" height = "48" />
85+ < h3 className = "text-2xl font-bold" > 추천리스트</ h3 >
9386 </ div >
9487
9588 < div className = "mt-5" >
0 commit comments