Skip to content

Commit

Permalink
Create loading pages for restaurants
Browse files Browse the repository at this point in the history
  • Loading branch information
Jokauppi committed Mar 26, 2024
1 parent 614653d commit 00c9680
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/(infoscreen)/@restaurants/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { Slide } from '@/components/Carousel';

const EventsError = () => {
const RestaurantsError = () => {
return (
<Slide className="bg-green-unari pb-0">
<div className="flex min-h-full min-w-full flex-col items-center justify-center gap-y-16">
Expand All @@ -15,4 +15,4 @@ const EventsError = () => {
);
};

export default EventsError;
export default RestaurantsError;
13 changes: 13 additions & 0 deletions src/app/(infoscreen)/@restaurants/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Slide } from '@/components/Carousel';

const RestaurantsLoading = async () => {
return (
<Slide className="bg-green-unari">
<div className="flex min-h-full min-w-full flex-col items-center gap-y-4">
<h1 className="text-4xl">Loading Unicafe restaurants...</h1>
</div>
</Slide>
);
};

export default RestaurantsLoading;
4 changes: 2 additions & 2 deletions src/app/(infoscreen)/@template/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Slide } from '@/components/Carousel';

const TemplateError = async () => {
const TemplateLoading = async () => {
return (
<Slide className="bg-grey-500">
<div className="flex min-h-full min-w-full flex-col items-center gap-y-4">
Expand All @@ -10,4 +10,4 @@ const TemplateError = async () => {
);
};

export default TemplateError;
export default TemplateLoading;
13 changes: 13 additions & 0 deletions src/app/(infoscreen)/@transit/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Slide } from '@/components/Carousel';

const TransitLoading = async () => {
return (
<Slide className="bg-blue-hsl">
<div className="flex min-h-full min-w-full flex-col items-center gap-y-4">
<h1 className="text-4xl">Loading Public Transit...</h1>
</div>
</Slide>
);
};

export default TransitLoading;

0 comments on commit 00c9680

Please sign in to comment.