File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed
app/[locale]/10years/_components/CountDown Expand file tree Collapse file tree 3 files changed +25
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ import { Skeleton } from "@/components/ui/skeleton"
2
+
3
+ const Loading = ( ) => (
4
+ < div className = "flex items-center justify-center gap-10" >
5
+ { Array . from ( { length : 4 } ) . map ( ( _ , idx ) => (
6
+ < div
7
+ key = { idx }
8
+ className = "flex size-20 flex-col items-center justify-center gap-1 rounded-2xl border p-2 text-center shadow-md last:max-lg:hidden"
9
+ >
10
+ < Skeleton className = "size-full" />
11
+ < Skeleton className = "h-5 w-8" />
12
+ </ div >
13
+ ) ) }
14
+ </ div >
15
+ )
16
+
17
+ export default Loading
Original file line number Diff line number Diff line change
1
+ import dynamic from "next/dynamic"
2
+
3
+ import Loading from "./loading"
4
+
5
+ export default dynamic ( ( ) => import ( "./client" ) , {
6
+ ssr : false ,
7
+ loading : Loading ,
8
+ } )
You can’t perform that action at this time.
0 commit comments