diff --git a/components/landing/footer.tsx b/components/landing/footer.tsx index c9b4e6f..75476c5 100644 --- a/components/landing/footer.tsx +++ b/components/landing/footer.tsx @@ -1,14 +1,10 @@ import { Logo } from "@/components/landing/logo"; import { SocialButtons } from "@/components/landing/social-buttons"; +import { FOOTER_NAV_LINKS } from "@/lib/landing-nav"; import { getDappUrl, siteConfig } from "@/lib/site"; const FOOTER_LINKS = { - links: [ - { label: "Problem", href: "#problem" }, - { label: "Solution", href: "#solution" }, - { label: "FAQ", href: "#faq" }, - { label: "Contact", href: siteConfig.issues }, - ], + links: FOOTER_NAV_LINKS, resources: [ { label: "GitHub", href: siteConfig.github, external: true }, { label: "API", href: siteConfig.backendRepo, external: true }, diff --git a/components/landing/landing-nav.tsx b/components/landing/landing-nav.tsx index 99ae0dc..30c414b 100644 --- a/components/landing/landing-nav.tsx +++ b/components/landing/landing-nav.tsx @@ -4,16 +4,10 @@ import { useEffect, useState } from "react"; import { Menu, X, ArrowUpRight } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Logo } from "@/components/landing/logo"; +import { HEADER_NAV_LINKS } from "@/lib/landing-nav"; import { cn } from "@/lib/utils"; import { getDappUrl } from "@/lib/site"; -const NAV_LINKS = [ - { href: "#problem", label: "Problem" }, - { href: "#solution", label: "Solution" }, - { href: "#score", label: "Score" }, - { href: "#faq", label: "FAQ" }, -]; - export function LandingNav() { const [open, setOpen] = useState(false); const [scrolled, setScrolled] = useState(false); @@ -46,7 +40,7 @@ export function LandingNav() {
- {NAV_LINKS.map(({ href, label }) => ( + {HEADER_NAV_LINKS.map(({ href, label }) => (
- {NAV_LINKS.map(({ href, label }) => ( + {HEADER_NAV_LINKS.map(({ href, label }) => ( showInHeader +); + +export const FOOTER_NAV_LINKS = LANDING_SECTION_LINKS.filter( + ({ showInFooter }) => showInFooter +);