Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
9 changes: 8 additions & 1 deletion app/auth/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ function AuthContent() {
const authError = searchParams.get('error');
const authSuccess = searchParams.get('success');

// Redirect if user is already logged in
useEffect(() => {
if (user) {
router.replace(redirectTo);
}
}, [user, router, redirectTo]);

// Check if Supabase is configured
const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL;
const supabaseAnonKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY;
Expand Down Expand Up @@ -69,7 +76,7 @@ NEXT_PUBLIC_SUPABASE_ANON_KEY=your_key`}
);
}

if (loading || user) {
if (loading) {
return (
<div className="flex min-h-screen items-center justify-center bg-[#0D0D10]">
<div className="text-center text-white">
Expand Down
72 changes: 54 additions & 18 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { Analytics } from '@vercel/analytics/react';
import './globals.css';
import { CookieConsentBanner } from '@/components/ui/cookie-consent-banner';
import { QueryProvider } from '@/lib/query-client';
import { AnalyticsScripts } from '@/components/analytics-scripts';

export const viewport: Viewport = {
themeColor: '#0D0D10',
Expand All @@ -22,34 +21,62 @@ export const viewport: Viewport = {
};

export const metadata: Metadata = {
title: 'ZapDev - Build Amazing Apps with AI',
metadataBase: new URL('https://zapdev.link'),
title: {
default: 'ZapDev: AI-Powered Development Platform to Build and Deploy Web Apps',
template: '%s | ZapDev',
},
description:
'The most powerful AI-driven development platform. Generate, preview, and deploy beautiful applications in seconds.',
'ZapDev is an innovative AI-driven platform that empowers you to generate, preview, and deploy stunning web applications in seconds. Turn your ideas into reality with our cutting-edge AI assistant and WebContainer technology.',
generator: 'ZapDev',
applicationName: 'ZapDev',
keywords: ['AI development', 'web apps', 'code generation', 'WebContainer', 'AI assistant'],
authors: [{ name: 'ZapDev Team' }],
metadataBase: new URL('https://zapdev.link'),
keywords: [
'AI development',
'web apps',
'code generation',
'WebContainer',
'AI assistant',
'AI developer tools',
'no-code',
'low-code',
'application builder',
'deploy web apps',
'AI website builder',
],
authors: [{ name: 'ZapDev Team', url: 'https://zapdev.link' }],
creator: 'ZapDev',
publisher: 'ZapDev',
openGraph: {
type: 'website',
locale: 'en_US',
title: 'ZapDev - Build Amazing Apps with AI',
title: 'ZapDev: AI-Powered Development Platform',
description:
'The most powerful AI-driven development platform. Generate, preview, and deploy beautiful applications in seconds.',
'Generate, preview, and deploy stunning web applications in seconds with our AI-driven development platform.',
url: 'https://zapdev.link',
siteName: 'ZapDev',
locale: 'en_US',
type: 'website',
},
twitter: {
card: 'summary_large_image',
title: 'ZapDev - Build Amazing Apps with AI',
title: 'ZapDev: AI-Powered Development Platform',
description:
'The most powerful AI-driven development platform. Generate, preview, and deploy beautiful applications in seconds.',
'Generate, preview, and deploy stunning web applications in seconds with our AI-driven development platform.',
},
robots: {
index: true,
follow: true,
googleBot: {
index: true,
follow: true,
'max-video-preview': -1,
'max-image-preview': 'large',
'max-snippet': -1,
},
},
icons: {
icon: '/favicon.svg',
shortcut: '/favicon.svg',
},
formatDetection: {
telephone: false,
},
manifest: '/site.webmanifest',
};

const inter = Inter({
Expand All @@ -60,8 +87,6 @@ const inter = Inter({
fallback: ['system-ui', 'arial'],
});



export default function RootLayout({
children,
}: Readonly<{
Expand All @@ -71,6 +96,18 @@ export default function RootLayout({
<html lang="en" className={`${inter.variable} font-sans`} suppressHydrationWarning>
<head>
<meta name="format-detection" content="telephone=no, date=no, email=no, address=no" />
<script
type="application/ld+json"
dangerouslySetInnerHTML={{
__html: JSON.stringify({
'@context': 'https://schema.org',
'@type': 'Organization',
name: 'ZapDev',
url: 'https://zapdev.link',
description: 'AI-Powered Development Platform to Build and Deploy Web Apps',
}),
}}
/>
</head>
<body
className="m-0 flex min-h-screen w-full flex-col overflow-x-hidden bg-[#0D0D10] p-0 text-[#EAEAEA]"
Expand All @@ -92,7 +129,6 @@ export default function RootLayout({
<Toaster />
<CookieConsentBanner />
<Analytics />
<AnalyticsScripts />
</RealtimeProvider>
</AuthProvider>
</SentryProvider>
Expand Down
Loading