34 lines
1.3 KiB
TypeScript
34 lines
1.3 KiB
TypeScript
'use client'
|
|
|
|
import { usePathname } from 'next/navigation'
|
|
|
|
export function DashboardFooter() {
|
|
const pathname = usePathname()
|
|
|
|
// Don't show footer on login page (/)
|
|
if (pathname === '/') {
|
|
return null
|
|
}
|
|
|
|
return (
|
|
<footer className="bg-black text-white py-6 md:py-8 px-4 md:px-8 mt-auto w-full">
|
|
<div className="max-w-6xl mx-auto flex flex-col items-center gap-4 text-center">
|
|
|
|
<div className="flex flex-col items-center gap-2">
|
|
<p className="text-sm font-medium">
|
|
© 2024 <span className="font-bold">HealthPortal Posyandu</span>. Hak Cipta Dilindungi.
|
|
</p>
|
|
<div className="flex items-center gap-2 text-[10px] font-bold tracking-widest text-gray-400 uppercase">
|
|
<a href="#" className="hover:text-white transition-colors">Privasi</a>
|
|
<span>•</span>
|
|
<a href="#" className="hover:text-white transition-colors">Syarat & Ketentuan</a>
|
|
<span>•</span>
|
|
<a href="#" className="hover:text-white transition-colors">Bantuan</a>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</footer>
|
|
)
|
|
}
|