mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-20 02:43:42 -05:00
refactor: better data fetching (#100)
This commit is contained in:
30
web/src/components/DataLoadingError.tsx
Normal file
30
web/src/components/DataLoadingError.tsx
Normal file
@@ -0,0 +1,30 @@
|
||||
import Logo from "./Logo";
|
||||
import { theme } from "../theme";
|
||||
|
||||
const DataLoadingError = () => {
|
||||
return (
|
||||
<div
|
||||
className={`flex min-h-screen justify-center bg-${theme}-50 dark:bg-${theme}-950`}
|
||||
>
|
||||
<div className="absolute mx-auto h-full w-full max-w-[80rem] overflow-hidden px-4 sm:px-6 lg:px-8">
|
||||
<div className="mx-auto my-8 flex h-full max-w-[48rem] flex-col">
|
||||
<div className="flex items-center gap-1">
|
||||
<h1 className="text-5xl font-bold lg:text-6xl dark:text-white">
|
||||
Cup
|
||||
</h1>
|
||||
<Logo />
|
||||
</div>
|
||||
<div
|
||||
className={`flex h-full flex-col items-center justify-center gap-1 text-${theme}-500 dark:text-${theme}-400`}
|
||||
>
|
||||
<div className="mb-8 flex gap-1">
|
||||
An error occurred, please try again.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default DataLoadingError;
|
||||
Reference in New Issue
Block a user