diff --git a/src/components/auth/BannerAlert.tsx b/src/components/auth/BannerAlert.tsx new file mode 100644 index 0000000..86aaad9 --- /dev/null +++ b/src/components/auth/BannerAlert.tsx @@ -0,0 +1,43 @@ +import { AlertCircle, CheckCircle, Info, XCircle } from "lucide-react"; +import { cn } from "@/lib/utils"; + +interface BannerAlertProps { + type: "info" | "success" | "warning" | "error"; + title?: string; + message: string; + className?: string; +} + +const icons = { + info: Info, + success: CheckCircle, + warning: AlertCircle, + error: XCircle, +}; + +const styles = { + info: "bg-accent/10 border-accent/20 text-accent", + success: "bg-success/10 border-success/20 text-success", + warning: "bg-warning/10 border-warning/20 text-warning", + error: "bg-destructive/10 border-destructive/20 text-destructive", +}; + +export function BannerAlert({ type, title, message, className }: BannerAlertProps) { + const Icon = icons[type]; + + return ( +
{title}
} +{message}
++ {strength.label} +
+ )} +- If an account exists for {email}, you'll receive a password reset link shortly. + If an account exists for {email}, + you'll receive a password reset link shortly.
- -- Enter your email and we'll send you a reset link + No worries, we'll send you reset instructions
-
+
+ New account registration is currently invite-only. Please contact your administrator for an invitation.
+
+ We've sent a verification link to {email}.
+ Click the link to verify your account and get started.
+
+ Didn't receive the email?{" "}
+
- Must be at least 8 characters
- Passwords do not match
By creating an account, you agree to our{" "}
-
+
Terms of Service
{" "}
and{" "}
-
+
Privacy Policy
+ Please wait while we confirm your email address...
+
+ Your email has been successfully verified. You can now sign in to your account.
+
+ {errorMessage}
+
+ Enter your email to receive a new verification link
+
- We've sent a verification link to your email address. Click the link to verify your account.
-
- Wrong email?{" "}
-
- Go back
+
+
+ Back to sign in
+ Registration unavailable
+
+
+ Check your email
+
+
+ Verifying your email
+
+
+ Email verified
+
+
+ Verification failed
+
+
+ Resend verification
+
+
- Check your email
-
-