@@ -3,7 +3,6 @@ import type { GetStaticProps, InferGetStaticPropsType } from "next"
3
3
import { serverSideTranslations } from "next-i18next/serverSideTranslations"
4
4
import { FaDiscord , FaGithub } from "react-icons/fa6"
5
5
import { MdChevronRight } from "react-icons/md"
6
- import { Flex , Skeleton } from "@chakra-ui/react"
7
6
8
7
import type {
9
8
AllMetricData ,
@@ -43,6 +42,7 @@ import {
43
42
SectionHeader ,
44
43
SectionTag ,
45
44
} from "@/components/ui/section"
45
+ import { SkeletonLines } from "@/components/ui/skeleton"
46
46
import WindowBox from "@/components/WindowBox"
47
47
48
48
import { cn } from "@/lib/utils/cn"
@@ -182,13 +182,7 @@ const HomePage = ({
182
182
} = useHome ( )
183
183
184
184
return (
185
- < Flex
186
- as = { MainArticle }
187
- flexDirection = "column"
188
- alignItems = "center"
189
- dir = { dir }
190
- width = "full"
191
- >
185
+ < MainArticle className = "flex w-full flex-col items-center" dir = { dir } >
192
186
< PageMetadata
193
187
title = { t ( "page-index:page-index-meta-title" ) }
194
188
description = { t ( "page-index:page-index-meta-description" ) }
@@ -288,7 +282,7 @@ const HomePage = ({
288
282
< p className = "mt-8 text-xl font-bold" >
289
283
{ t ( "page-index:page-index-activity-description" ) }
290
284
</ p >
291
- < Suspense fallback = { < Skeleton /> } >
285
+ < Suspense fallback = { < SkeletonLines noOfLines = { 10 } /> } >
292
286
< StatsBoxGrid metricResults = { metricResults } />
293
287
</ Suspense >
294
288
</ div >
@@ -394,13 +388,13 @@ const HomePage = ({
394
388
</ div >
395
389
396
390
{ isModalOpen && (
397
- // TODO: Migrate CodeModal, CodeBlock, Skeleton from Chakra-UI to tailwind/shad-cn
391
+ // TODO: Migrate CodeModal, CodeBlock from Chakra-UI to tailwind/shad-cn
398
392
< CodeModal
399
393
isOpen = { isModalOpen }
400
394
setIsOpen = { setModalOpen }
401
395
title = { codeExamples [ activeCode ] . title }
402
396
>
403
- < Suspense fallback = { < Skeleton /> } >
397
+ < Suspense fallback = { < SkeletonLines noOfLines = { 16 } /> } >
404
398
< Codeblock
405
399
codeLanguage = { codeExamples [ activeCode ] . codeLanguage }
406
400
allowCollapse = { false }
@@ -667,7 +661,7 @@ const HomePage = ({
667
661
</ div >
668
662
</ Section >
669
663
</ div >
670
- </ Flex >
664
+ </ MainArticle >
671
665
)
672
666
}
673
667
0 commit comments