packages/ui: add http-error

This commit is contained in:
vchikalkin 2023-11-13 09:19:40 +03:00
parent 942633e233
commit cc5a2064c9
2 changed files with 22 additions and 0 deletions

View 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>
);
}

View File

@ -8,4 +8,5 @@ export * from './content';
export * from './divider';
export * from './header';
export * from './heading';
export * from './http-error';
export * from './input';