Repository navigation
Expand file tree
/
Copy pathFooter.js
More file actions
63 lines (56 loc) · 3.34 KB
/
Copy pathFooter.js
File metadata and controls
63 lines (56 loc) · 3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
'use client';
import Link from 'next/link';
import { ArrowUpRight } from 'lucide-react';
import { usePathname } from 'next/navigation';
import { useSettings } from '@/hooks/useSettings';
const groups = [
{ title: 'Solutions', links: [['Custom web apps', '/#services'], ['Enterprise systems', '/#services'], ['AI and automation', '/#services'], ['API architecture', '/#services']] },
{ title: 'Company', links: [['About', '/about'], ['FAQ', '/faq'], ['Contact', '/contact']] },
{ title: 'Legal', links: [['Privacy policy', '/privacy'], ['Terms of service', '/terms']] },
];
export default function Footer() {
const pathname = usePathname();
const { settings } = useSettings();
const companyName = settings?.company_name || 'BuildInByte';
const description = settings?.address || 'Production-grade software engineering for ambitious companies.';
const showProjectCta = pathname !== '/contact';
return (
<footer className="mt-auto border-t border-slate-200 bg-white dark:border-white/10 dark:bg-transparent">
<div className="mx-auto max-w-7xl px-6 py-16">
{showProjectCta && (
<div className="mb-14 flex flex-col justify-between gap-6 rounded-2xl border border-brand-200 bg-brand-50 p-7 sm:flex-row sm:items-center dark:border-brand-400/20 dark:bg-brand-950/30">
<div>
<p className="text-sm font-semibold text-brand-700 dark:text-brand-300">Have a project in mind?</p>
<h2 className="mt-1 font-display text-2xl font-semibold tracking-tight text-slate-950 sm:text-3xl dark:text-foreground">Let’s build something useful.</h2>
</div>
<Link href="/contact#project-brief" className="inline-flex min-h-11 shrink-0 items-center justify-center gap-2 rounded-lg bg-primary px-5 text-sm font-semibold text-primary-foreground shadow-sm hover:bg-brand-400">
Start a conversation <ArrowUpRight size={17} />
</Link>
</div>
)}
<div className="grid gap-10 sm:grid-cols-2 lg:grid-cols-5">
<div className="sm:col-span-2">
<Link href="/" className="inline-flex items-center gap-3">
<img src="/brand-logo.png" alt="" className="h-10 w-10 rounded-xl object-cover ring-1 ring-slate-200 dark:ring-white/10" />
<span className="font-display text-xl font-semibold tracking-tight text-slate-950 dark:text-foreground">{companyName}</span>
</Link>
<p className="mt-4 max-w-sm text-sm leading-6 text-slate-600 dark:text-zinc-400">{description}</p>
</div>
{groups.map(group => (
<div key={group.title}>
<h3 className="text-sm font-semibold text-slate-950 dark:text-foreground">{group.title}</h3>
<ul className="mt-4 space-y-3">
{group.links.map(([label, href]) => (
<li key={label}><Link href={href} className="text-sm text-slate-600 hover:text-brand-600 dark:text-zinc-400 dark:hover:text-brand-400">{label}</Link></li>
))}
</ul>
</div>
))}
</div>
<div className="mt-14 flex flex-col gap-3 border-t border-slate-200 pt-6 text-sm text-slate-500 sm:flex-row sm:items-center sm:justify-between dark:border-white/10 dark:text-zinc-500">
<p>© {new Date().getFullYear()} {companyName}</p>
</div>
</div>
</footer>
);
}