@@ -68,25 +68,29 @@ export default function WebsiteStatus() {
6868 } , [ ] ) ;
6969
7070 return (
71- < div className = "flex justify-center items-center min-h-screen text-white px-4 pb-16" >
72- < div className = "w-full max-w-md" >
71+ < main className = "px-3 pb-8 pt-24 sm:px-6 md:px-8 lg:px-10" >
72+ < section className = "section-shell mx-auto w-full max-w-270 rounded-[1.75rem]" >
73+ < div className = "relative z-10 mx-auto w-full max-w-3xl" >
7374 { loading ? (
7475 < div className = "space-y-8 animate-pulse" >
75- < div className = "flex flex-col items-center gap-3" >
76- < div className = "w-36 h-6 bg-white/8 rounded-full" />
76+ < div className = "flex flex-col items-center gap-3 pt-2" >
77+ < div className = "h-6 w-44 rounded-full bg-white/8" />
78+ < div className = "h-4 w-64 rounded-full bg-white/5" />
7779 </ div >
7880 < div className = "space-y-2" >
7981 { Array . from ( { length : services . length + 1 } ) . map ( ( _ , index ) => (
80- < div key = { index } className = "h-13 bg- white/4 rounded-xl " />
82+ < div key = { index } className = "h-14 rounded-xl border border- white/5 bg-white/4 " />
8183 ) ) }
8284 </ div >
8385 < div className = "flex justify-center" >
84- < div className = "w-28 h-3 bg-white/5 rounded " />
86+ < div className = "h-3 w-44 rounded bg-white/5" />
8587 </ div >
8688 </ div >
8789 ) : (
8890 < div className = "space-y-8" >
89- < div className = "flex justify-center" >
91+ < div className = "flex flex-col items-center gap-3 pt-1" >
92+ < h1 className = "text-center text-3xl tracking-tight sm:text-4xl" > Service Status</ h1 >
93+ < p className = "text-center text-sm text-white/60" > Realtime uptime for Qualsu products and public APIs</ p >
9094 < span className = { `inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full text-xs ${
9195 hasError ? 'bg-red-500/10 text-red-400' : 'bg-green-500/10 text-green-400'
9296 } `} >
@@ -102,7 +106,7 @@ export default function WebsiteStatus() {
102106 < div key = { service . key } >
103107 < button
104108 type = "button"
105- className = "w-full flex items-center justify-between px-4 py-3.5 rounded-xl hover:bg-white/4 transition-colors duration-150 text-left "
109+ className = "surface-panel w-full text-left flex items-center justify-between rounded-xl px-4 py-3.5 transition-colors duration-150 hover:bg-white/8 "
106110 onClick = { ( ) => setExpandedServiceKey ( ( prev ) => ( prev === service . key ? null : service . key ) ) }
107111 >
108112 < div className = "flex items-center gap-3" >
@@ -132,12 +136,15 @@ export default function WebsiteStatus() {
132136 </ button >
133137
134138 { expandedServiceKey === service . key && (
135- < div className = "pb-2 space-y-0.5 " >
139+ < div className = "mx-1 mt-1 space-y-1 rounded-xl border border-white/10 bg-white/7 p-2 pb-2 shadow-[inset_0_1px_0_rgba(255,255,255,0.06)] " >
136140 { service . endpoints . map ( ( endpoint ) => (
137- < div key = { `${ service . key } -${ endpoint . type } ` } className = "flex items-center justify-between px-4 py-2 pl-11" >
141+ < div
142+ key = { `${ service . key } -${ endpoint . type } ` }
143+ className = "flex items-center justify-between rounded-xl border border-white/15 bg-white/10 px-4 py-2 pl-11"
144+ >
138145 < a
139- className = { `text-xs text-white/40 ${
140- endpoint . type === 'Site' ? 'hover:text-white/70 cursor-pointer transition-colors duration-150' : 'cursor-default'
146+ className = { `text-xs text-white/70 ${
147+ endpoint . type === 'Site' ? 'cursor-pointer transition-colors duration-150 hover:text-white ' : 'cursor-default'
141148 } `}
142149 href = { endpoint . type === 'Site' ? endpoint . url : undefined }
143150 target = { endpoint . type === 'Site' ? '_blank' : undefined }
@@ -146,7 +153,7 @@ export default function WebsiteStatus() {
146153 { endpoint . type }
147154 </ a >
148155 < div className = "flex items-center gap-2" >
149- < span className = "text-xs text-white/30 " >
156+ < span className = "text-xs text-white/65 " >
150157 { endpoint . status === 'online'
151158 ? `${ endpoint . responseTime } ms`
152159 : endpoint . status === 'offline'
@@ -169,8 +176,9 @@ export default function WebsiteStatus() {
169176 < p className = "text-center text-xs text-white/50" > Updated { lastUpdated } </ p >
170177 </ div >
171178 ) }
172- </ div >
173- </ div >
179+ </ div >
180+ </ section >
181+ </ main >
174182 ) ;
175183}
176184
0 commit comments