feat: add privacy policy and terms of service links

This commit is contained in:
Abhishek Kumar 2025-10-07 13:22:44 +05:30
parent b8fcc00288
commit a2d02d8326
2 changed files with 34 additions and 1 deletions

View file

@ -0,0 +1,25 @@
export default function Footer() {
return (
<footer className="fixed bottom-0 left-0 right-0 bg-background border-t border-border py-4 px-6">
<div className="flex justify-center items-center gap-6 text-sm text-muted-foreground">
<a
href="https://www.dograh.com/privacy-policy"
target="_blank"
rel="noopener noreferrer"
className="hover:text-foreground transition-colors"
>
Privacy Policy
</a>
<span className="text-border">|</span>
<a
href="https://www.dograh.com/terms-of-service"
target="_blank"
rel="noopener noreferrer"
className="hover:text-foreground transition-colors"
>
Terms of Service
</a>
</div>
</footer>
);
}

View file

@ -3,6 +3,8 @@
import { Loader2 } from 'lucide-react';
import dynamic from 'next/dynamic';
import Footer from './Footer';
// Only load Stack's SignIn component when Stack provider is active
const SignIn = dynamic(
() => import('@stackframe/stack').then(mod => ({ default: mod.SignIn })),
@ -19,9 +21,15 @@ export default function SignInClient() {
<h1 className="text-2xl font-bold mb-4">Local Authentication</h1>
<p className="text-gray-600">Local authentication is enabled. No sign-in required.</p>
</div>
<Footer />
</div>
);
}
return <SignIn />;
return (
<>
<SignIn />
<Footer />
</>
);
}