11export const PostSkeleton = ( ) => {
22 return (
3- < div className = "group flex w-full cursor-pointer flex-row items-center rounded-2xl duration-300 md:gap-8 md:p-8" >
4- < div className = "hidden lg:flex lg:items-center lg:gap-x-8" >
5- < div className = "rounded-lg lg:size-12 bg-[#88888820]" />
6-
7- < div className = "relative object-contain lg:size-24" >
3+ < div className = "group flex w-full flex-row items-center rounded-2xl duration-300 md:gap-8 md:p-8" >
4+ { /* Desktop iamge */ }
5+ < div className = "hidden md:flex md:self-start lg:self-center" >
6+ < div className = "relative size-10 object-contain lg:size-24" >
87 < svg
98 className = "text-[#88888820]"
109 aria-hidden = "true"
@@ -17,9 +16,10 @@ export const PostSkeleton = () => {
1716 </ div >
1817 </ div >
1918
19+ { /* Phone image */ }
2020 < div className = "flex w-full flex-col items-start gap-2" >
21- < div className = "flex w-full gap-x-2 lg :hidden" >
22- < div className = "relative block size-10 object-contain lg :hidden lg :size-24" >
21+ < div className = "flex w-full gap-x-2 md :hidden" >
22+ < div className = "relative block size-10 object-contain md :hidden md :size-24" >
2323 < svg
2424 className = "text-[#88888820]"
2525 aria-hidden = "true"
@@ -31,30 +31,32 @@ export const PostSkeleton = () => {
3131 </ svg >
3232 </ div >
3333 < div className = "flex w-full gap-2" >
34- < div className = "mb-3 h-8 w-1/2 rounded-full bg-[#88888820] md:w-2/5 " />
34+ < div className = "mb-3 h-8 w-1/2 rounded-full bg-[#88888820] md:w-2/5" />
3535 </ div >
3636 </ div >
3737
38- < div className = "mb-2 hidden h-10 w-2/5 rounded-full bg-[#88888820] lg :block " />
38+ < div className = "mb-2 hidden h-10 w-2/5 rounded-full bg-[#88888820] md :block" />
3939
40- < div className = "mb-2 h-3 w-11/12 rounded-full bg-[#88888820] md:h-5 md:w-3/5 " />
40+ < div className = "mb-2 h-3 w-11/12 rounded-full bg-[#88888820] md:h-5 md:w-3/5" />
4141
42- < div className = "mb-2 flex w-full flex-wrap gap-x-2 md:mb-4 " >
43- { Array . from ( { length : 3 } ) . map ( ( _ , i ) => (
42+ < div className = "mb-2 flex w-full flex-wrap gap-x-2 md:mb-2 " >
43+ { Array . from ( { length : 3 } ) . map ( ( ) => (
4444 < div
4545 key = { `post-skeleton-pill-${ crypto . randomUUID ( ) } ` }
46- className = "h-5 w-2/12 rounded-full bg-[#88888820] md:h-7 md:w-1 /12 "
46+ className = "h-5 w-2/12 rounded-full bg-[#88888820] md:h-7 md:w-2 /12"
4747 />
4848 ) ) }
4949 </ div >
5050
51- < div className = "mb-1 h-3 w-11/12 rounded-full bg-[#88888820] md:h-5 " />
52- < div className = "mb-1 h-3 w-10/12 rounded-full bg-[#88888820] md:h-5 " />
53- < div className = "mb-1 h-3 w-11/12 rounded-full bg-[#88888820] md:h-5 " />
51+ < div className = "mb-1 h-3 w-11/12 rounded-full bg-[#88888820] md:h-5" />
52+ < div className = "mb-1 h-3 w-10/12 rounded-full bg-[#88888820] md:h-5" />
53+ < div className = "mb-1 h-3 w-11/12 rounded-full bg-[#88888820] md:h-5" />
5454 </ div >
5555
56- < div className = "ml-auto hidden rounded-lg bg-[#88888820] px-4 py-2 lg:block " >
57- < div className = "mb-6 h-10 w-10 rounded-full bg-[#88888820] " />
56+ < div className = "ml-auto hidden px-4 py-2 md:block" >
57+ < div className = "mb-6 size-10 rounded-full bg-[#88888820]" />
58+
59+ < div className = "mb-6 h-4 w-10 rounded-full bg-[#88888820]" />
5860 </ div >
5961 </ div >
6062 ) ;
0 commit comments