@@ -207,6 +207,60 @@ export function ProfileInfo(props: {
207207 )
208208}
209209
210+ export function ProfileInfoSkeleton ( ) {
211+ return (
212+ < >
213+ < div
214+ className = "bg-canvas-50 border-canvas-300 mb-6 flex items-center border-b px-4 sm:px-9 py-4"
215+ style = { {
216+ borderBottomWidth : '1px' ,
217+ gap : '10px' ,
218+ } }
219+ >
220+ < div className = "flex w-full items-center gap-2" >
221+ < BackButton />
222+ </ div >
223+ </ div >
224+
225+ < div className = "mx-auto w-full px-4 sm:px-8 pb-6 pt-0 animate-pulse" >
226+ < Row className = "gap-6 flex-wrap" >
227+ < div className = "bg-canvas-200 h-[108px] w-[108px] flex-none rounded-2xl" />
228+ < Col className = "flex-1 gap-3 py-1 min-w-[160px]" >
229+ < div className = "bg-canvas-200 h-8 w-2/3 max-w-[240px] rounded" />
230+ < div className = "bg-canvas-200 h-4 w-1/2 max-w-[180px] rounded" />
231+ < div className = "bg-canvas-200 h-4 w-2/5 max-w-[140px] rounded" />
232+ </ Col >
233+ </ Row >
234+
235+ < Row className = "gap-2 flex-wrap py-3 mt-2 max-w-full sm:max-w-[500px]" >
236+ < div className = "bg-canvas-200 h-7 w-16 rounded-full" />
237+ < div className = "bg-canvas-200 h-7 w-20 rounded-full" />
238+ < div className = "bg-canvas-200 h-7 w-14 rounded-full" />
239+ < div className = "bg-canvas-200 h-7 w-24 rounded-full" />
240+ </ Row >
241+
242+ < div
243+ className = "bg-canvas-50 border-canvas-300 border mt-6"
244+ style = { { borderRadius : '14px' , padding : '22px 24px' } }
245+ >
246+ < div className = "bg-canvas-200 h-6 w-24 rounded mb-5" />
247+ < Col className = "gap-4" >
248+ { [ ...Array ( 6 ) ] . map ( ( _ , i ) => (
249+ < Row key = { i } className = "items-center gap-2.5" >
250+ < div className = "bg-canvas-200 h-8 w-8 flex-none rounded-lg" />
251+ < Col className = "flex-1 gap-1.5" >
252+ < div className = "bg-canvas-200 h-3 w-20 rounded" />
253+ < div className = "bg-canvas-200 h-4 w-3/5 rounded" />
254+ </ Col >
255+ </ Row >
256+ ) ) }
257+ </ Col >
258+ </ div >
259+ </ div >
260+ </ >
261+ )
262+ }
263+
210264function ProfileCard ( props : { title ?: ReactNode ; children : ReactNode ; className ?: string } ) {
211265 const { title, children, className} = props
212266 // Check if children is null or undefined
0 commit comments