Buckets:
silverwolf-x/project / packages /next /src /client /components /http-access-fallback /error-fallback.tsx
| import { styles } from '../styles/access-error-styles' | |
| export function HTTPAccessErrorFallback({ | |
| status, | |
| message, | |
| }: { | |
| status: number | |
| message: string | |
| }) { | |
| return ( | |
| <> | |
| {/* <head> */} | |
| <title>{`${status}: ${message}`}</title> | |
| {/* </head> */} | |
| <div style={styles.error}> | |
| <div> | |
| <style | |
| dangerouslySetInnerHTML={{ | |
| /* Minified CSS from | |
| body { margin: 0; color: #000; background: #fff; } | |
| .next-error-h1 { | |
| border-right: 1px solid rgba(0, 0, 0, .3); | |
| } | |
| @media (prefers-color-scheme: dark) { | |
| body { color: #fff; background: #000; } | |
| .next-error-h1 { | |
| border-right: 1px solid rgba(255, 255, 255, .3); | |
| } | |
| } | |
| */ | |
| __html: `body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}`, | |
| }} | |
| /> | |
| <h1 className="next-error-h1" style={styles.h1}> | |
| {status} | |
| </h1> | |
| <div style={styles.desc}> | |
| <h2 style={styles.h2}>{message}</h2> | |
| </div> | |
| </div> | |
| </div> | |
| </> | |
| ) | |
| } | |
Xet Storage Details
- Size:
- 1.38 kB
- Xet hash:
- 334c2f249aeda37a295f3d1e38360f7e22667ca8c5727320b3ddd39f8b5c57a8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.