@@ -17,9 +17,8 @@ import { Link } from '@/i18n/navigation'
1717
1818import '@styles/descriptions.scss'
1919import '@styles/nav.scss'
20- import ImageSkeleton from '@/components/global/ImageSkeleton '
20+ import Image from '@/components/global/Image '
2121import designer from '@public/images/tony.jpg'
22- import Image from 'next/image'
2322
2423type MainPageImageType = NonNullable < MainPageImage [ 'images' ] > [ number ]
2524
@@ -78,9 +77,15 @@ function imageBlock(
7877 style = { { height : `${ image . deskConfig . imgSize } svh` } }
7978 className = "max-w-3/5 xl:max-w-11/20 2xl:max-w-full"
8079 >
81- < ImageSkeleton
82- image = { image . image as Media }
83- sizes = { `(min-width: 1280px) 55vw, (min-width: 1440px) 70vw, 60vw` }
80+ < Image
81+ src = { imageFile . url ! }
82+ alt = { imageFile . alt }
83+ className = "h-full w-auto object-contain"
84+ width = { imageFile . width ! }
85+ height = { imageFile . height ! }
86+ placeholder = "blur"
87+ blurDataURL = { imageFile . sizes ! . loading ! . url ! }
88+ sizes = "(min-width: 1280px) 55vw, (min-width: 1440px) 70vw, 60vw"
8489 />
8590 </ div >
8691 { image . description && descriptionPositionDesktop && (
@@ -102,9 +107,14 @@ function imageBlock(
102107 flexDirection : flexDirectionMobile ,
103108 } }
104109 >
105- < ImageSkeleton
106- image = { imageFile }
107- className = "shrink"
110+ < Image
111+ src = { imageFile . url ! }
112+ alt = { imageFile . alt }
113+ className = "h-full w-auto object-contain shrink"
114+ width = { imageFile . width ! }
115+ height = { imageFile . height ! }
116+ placeholder = "blur"
117+ blurDataURL = { imageFile . sizes ! . loading ! . url ! }
108118 sizes = { overflowMobile ? '100vw' : '90vw' }
109119 />
110120 { image . description && descPosMobile && (
@@ -160,7 +170,16 @@ function navBlock(
160170 style = { { height : `${ image . imgSize } %` } }
161171 className = "relative max-xl:h-fit! max-xl:w-full lg:max-w-1/2 max-xl:max-w-none [&_img]:w-full!"
162172 >
163- < ImageSkeleton image = { image . image as Media } sizes = { `(max-width: 1024px) 100vw, 50vw` } />
173+ < Image
174+ src = { imageFile . url ! }
175+ alt = { imageFile . alt }
176+ className = "h-full w-auto object-contain"
177+ width = { imageFile . width ! }
178+ height = { imageFile . height ! }
179+ placeholder = "blur"
180+ blurDataURL = { imageFile . sizes ! . loading ! . url ! }
181+ sizes = { `(max-width: 1024px) 100vw, 50vw` }
182+ />
164183 </ div >
165184
166185 < ul className = "flex items-center justify-center gap-5 p-5 text-xl lg:h-4/5" >
0 commit comments