-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from sotopia-lab/landing-page
landing update with distinct user session
- Loading branch information
Showing
16 changed files
with
968 additions
and
548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
"use client" | ||
|
||
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; | ||
import { Button } from "@/components/ui/button"; | ||
import { useEffect } from "react"; | ||
|
||
export default function Error({ | ||
error, | ||
reset, | ||
}: { | ||
error: string; | ||
reset: () => void; | ||
}) { | ||
useEffect(() => { | ||
console.error(error); | ||
}, [error]); | ||
|
||
return ( | ||
<div className="fixed inset-0 bg-background/80 backdrop-blur-sm z-50 flex items-center justify-center"> | ||
<div className="max-w-md w-full p-6"> | ||
<Alert variant="destructive"> | ||
<AlertTitle>Initialization Failed</AlertTitle> | ||
<AlertDescription className="mt-2 space-y-4"> | ||
<p>{error}</p> | ||
<Button | ||
variant="outline" | ||
onClick={reset} | ||
className="w-full" | ||
> | ||
Try Again | ||
</Button> | ||
</AlertDescription> | ||
</Alert> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Loader2 } from "lucide-react"; | ||
|
||
export default function Loading() { | ||
return ( | ||
<div className="fixed inset-0 bg-background/80 backdrop-blur-sm z-50 flex items-center justify-center"> | ||
<div className="max-w-md p-6 text-center space-y-4"> | ||
<Loader2 className="h-12 w-12 animate-spin mx-auto text-primary" /> | ||
<h2 className="text-xl font-semibold">Initializing Cotomata...</h2> | ||
<p className="text-muted-foreground"> | ||
This may take up to 5 minutes. Please wait while we set up your environment. | ||
</p> | ||
</div> | ||
</div> | ||
); | ||
} |
Oops, something went wrong.