Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added authentication error page. #76

Merged
merged 2 commits into from
Oct 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions frontend/app/[locale]/(marketing)/auth/error/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from 'react';
import { AlertCircle } from 'lucide-react';
import { Card } from '@/components/ui/card';

const AuthErrorPage = () => {
return (
<div className="flex min-h-screen flex-col items-center justify-center">
<Card className="max-w-md w-full bg-white dark:bg-gray-800 shadow-lg rounded-lg overflow-hidden">
<div className="p-6 sm:p-8">
<div className="flex items-center justify-center mb-6">
<AlertCircle className="size-12 text-red-500" />
</div>
<h1 className="text-2xl sm:text-3xl font-bold text-center text-gray-900 dark:text-gray-100 mb-4">Authentication Error</h1>
<p className="text-center text-gray-600 dark:text-gray-300 mb-6">
We&apos;re sorry, but there was an error during the authentication process. Please try again or contact support if the issue persists.
</p>
</div>
<div className="bg-gray-100 dark:bg-gray-700 px-6 py-4">
<p className="text-sm text-center text-gray-600 dark:text-gray-400">Error Code: AUTH_001 | Time: {new Date().toLocaleTimeString()}</p>
ahaapple marked this conversation as resolved.
Show resolved Hide resolved
</div>
</Card>
</div>
);
};

export default AuthErrorPage;