hero
This commit is contained in:
parent
8ebfe5d05f
commit
df12084e38
1 changed files with 12 additions and 14 deletions
|
|
@ -2,7 +2,6 @@ import { getCachedGlobal } from '@/utilities/getGlobals'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
|
||||||
import { ThemeSelector } from '@/providers/Theme/ThemeSelector'
|
|
||||||
import { CMSLink } from '@/components/Link'
|
import { CMSLink } from '@/components/Link'
|
||||||
import { Logo } from '@/components/Logo/Logo'
|
import { Logo } from '@/components/Logo/Logo'
|
||||||
|
|
||||||
|
|
@ -12,21 +11,20 @@ export async function Footer() {
|
||||||
const navItems = footerData?.navItems || []
|
const navItems = footerData?.navItems || []
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<footer className="mt-auto border-t border-border bg-black dark:bg-card text-white">
|
<footer className="mt-auto border-t border-border bg-black text-white">
|
||||||
<div className="container py-8 gap-8 flex flex-col md:flex-row md:justify-between">
|
<div className="container py-8 gap-8 flex flex-col md:flex-row md:justify-between md:items-center">
|
||||||
<Link className="flex items-center" href="/">
|
<Link className="flex items-center" href="/">
|
||||||
<Logo />
|
<Logo />
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<div className="flex flex-col-reverse items-start md:flex-row gap-4 md:items-center">
|
<nav className="flex flex-col md:flex-row gap-4">
|
||||||
<ThemeSelector />
|
{navItems.map(({ link }, i) => {
|
||||||
<nav className="flex flex-col md:flex-row gap-4">
|
return <CMSLink className="text-white/60 hover:text-white transition-colors text-sm" key={i} {...link} />
|
||||||
{navItems.map(({ link }, i) => {
|
})}
|
||||||
return <CMSLink className="text-white" key={i} {...link} />
|
</nav>
|
||||||
})}
|
|
||||||
</nav>
|
<p className="text-white/40 text-sm">
|
||||||
</div>
|
© {new Date().getFullYear()} Mackie. All rights reserved.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
)
|
|
||||||
}
|
|
||||||
Loading…
Add table
Reference in a new issue