packages/ui: add http-error
This commit is contained in:
parent
942633e233
commit
cc5a2064c9
21
packages/ui/http-error.tsx
Normal file
21
packages/ui/http-error.tsx
Normal file
@ -0,0 +1,21 @@
|
||||
type Props = {
|
||||
readonly code: string;
|
||||
readonly description: string;
|
||||
readonly title: string;
|
||||
};
|
||||
|
||||
export function HttpError({ code, description, title }: Props) {
|
||||
return (
|
||||
<section className="bg-white">
|
||||
<div className="mx-auto max-w-screen-xl px-4 py-8 lg:px-6 lg:py-16">
|
||||
<div className="mx-auto max-w-screen-sm text-center">
|
||||
<h1 className="text-primary-600 mb-4 text-7xl font-extrabold tracking-tight lg:text-9xl">
|
||||
{code}
|
||||
</h1>
|
||||
<p className="mb-4 text-3xl font-bold tracking-tight text-gray-900">{title}</p>
|
||||
<p className="mb-4 text-lg font-light text-gray-800">{description}</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@ -8,4 +8,5 @@ export * from './content';
|
||||
export * from './divider';
|
||||
export * from './header';
|
||||
export * from './heading';
|
||||
export * from './http-error';
|
||||
export * from './input';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user