- Added `DEMO_MODE` to backend configuration with relaxed security support for specific demo accounts. - Updated password validators to allow predefined weak passwords in demo mode. - Auto-fill login forms with demo credentials via query parameters for improved demo accessibility. - Introduced demo user creation logic during database initialization if `DEMO_MODE` is enabled. - Replaced `img` tags with `next/image` for consistent and optimized visuals in branding elements. - Refined footer, header, and layout components to incorporate improved logo handling.
49 lines
1.4 KiB
TypeScript
49 lines
1.4 KiB
TypeScript
/**
|
|
* Footer Component
|
|
* Simple footer for authenticated pages
|
|
*/
|
|
|
|
'use client';
|
|
|
|
import Image from 'next/image';
|
|
import { Link } from '@/lib/i18n/routing';
|
|
|
|
export function Footer() {
|
|
const currentYear = new Date().getFullYear();
|
|
|
|
return (
|
|
<footer className="border-t bg-muted/30">
|
|
<div className="container mx-auto px-4 py-6">
|
|
<div className="flex flex-col items-center justify-between space-y-4 md:flex-row md:space-y-0">
|
|
<div className="flex items-center gap-2 text-center text-sm text-muted-foreground md:text-left">
|
|
<Image
|
|
src="/logo-icon.svg"
|
|
alt="PragmaStack Logo"
|
|
width={20}
|
|
height={20}
|
|
className="h-5 w-5 opacity-70"
|
|
/>
|
|
<span>© {currentYear} PragmaStack. All rights reserved.</span>
|
|
</div>
|
|
<div className="flex space-x-6">
|
|
<Link
|
|
href="/settings/profile"
|
|
className="text-sm text-muted-foreground hover:text-foreground transition-colors"
|
|
>
|
|
Settings
|
|
</Link>
|
|
<a
|
|
href="https://github.com/cardosofelipe/pragmastack"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className="text-sm text-muted-foreground hover:text-foreground transition-colors"
|
|
>
|
|
GitHub
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
);
|
|
}
|