@@ -57,10 +57,22 @@ export function Docs() {
5757 < div className = "min-h-screen flex flex-col bg-docs" >
5858 < Header />
5959 < div className = "flex-1 container mx-auto px-4 flex items-center justify-center" >
60- < div className = "text-center" >
61- < div className = "animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4" > </ div >
62- < p className = "text-muted-foreground" > Loading documentation...</ p >
63- </ div >
60+ < div className = "w-full max-w-4xl mx-auto py-12" >
61+ < div className = "flex gap-8 mb-10" >
62+ < div className = "hidden lg:block w-64 shrink-0 space-y-3" >
63+ { [ 75 , 55 , 65 , 45 , 60 ] . map ( ( w , i ) => (
64+ < div key = { i } className = "h-4 bg-muted rounded animate-pulse" style = { { width : `${ w } %` } } />
65+ ) ) }
66+ </ div >
67+ < div className = "flex-1 space-y-4" >
68+ < div className = "h-6 bg-muted rounded w-48 animate-pulse mb-2" />
69+ < div className = "h-10 bg-muted rounded w-3/4 animate-pulse" />
70+ < div className = "h-4 bg-muted rounded w-full animate-pulse" />
71+ < div className = "h-4 bg-muted rounded w-5/6 animate-pulse" />
72+ < div className = "h-4 bg-muted rounded w-4/6 animate-pulse" />
73+ </ div >
74+ </ div >
75+ </ div >
6476 </ div >
6577 < Footer />
6678 </ div >
@@ -178,17 +190,23 @@ export function Docs() {
178190 </ div >
179191
180192 { isLoading ? (
181- < div className = "py-20 text-center" >
182- < div className = "animate-spin rounded-full h-8 w-8 border-b-2 border-primary mx-auto mb-4" > </ div >
183- < p className = "text-muted-foreground" > Loading page...</ p >
193+ < div className = "py-12 space-y-4" >
194+ < div className = "h-4 bg-muted rounded w-40 animate-pulse mb-6" />
195+ < div className = "h-10 bg-muted rounded w-3/5 animate-pulse mb-4" />
196+ < div className = "h-4 bg-muted rounded w-full animate-pulse" />
197+ < div className = "h-4 bg-muted rounded w-11/12 animate-pulse" />
198+ < div className = "h-4 bg-muted rounded w-4/5 animate-pulse" />
199+ < div className = "h-4 bg-muted rounded w-full animate-pulse" />
200+ < div className = "h-4 bg-muted rounded w-3/4 animate-pulse" />
201+ < div className = "h-4 bg-muted rounded w-5/6 animate-pulse" />
184202 </ div >
185203 ) : ! doc ? (
186204 < div className = "py-20 text-center" >
187205 < p className = "text-4xl font-bold mb-4" > 404</ p >
188206 < p className = "text-muted-foreground" > This page doesn't exist.</ p >
189207 </ div >
190208 ) : (
191- < div key = { slug } className = "animate-fadein" >
209+ < div key = { slug } className = "animate-fadein mx-auto max-w-4xl " >
192210 { /* Document Header */ }
193211 < div className = "mb-8" >
194212 { breadcrumbs && < Breadcrumbs items = { breadcrumbs } className = "mb-4" /> }
0 commit comments