|
| 1 | +import Link from "next/link" |
| 2 | +import { SITE_CONFIG, SITE_NAP, SITE_SLUGS } from "@/config/siteConfig" |
| 3 | +import { SocialLinks } from "./SocialLinks" |
| 4 | + |
| 5 | +const year = new Date().getFullYear() |
| 6 | + |
| 7 | +export const Footer: React.FC = () => { |
| 8 | + return ( |
| 9 | + <footer className="bg-background-alt mt-10 overflow-hidden"> |
| 10 | + <div className="p-10"> |
| 11 | + {/* Main Footer Grid */} |
| 12 | + <div className="grid grid-cols-1 gap-12 pt-16 pb-8 md:pt-32 lg:grid-cols-3"> |
| 13 | + {/* Navigation Links */} |
| 14 | + <div> |
| 15 | + <h3 className="after:bg-primary relative mb-4 after:absolute after:bottom-0 after:mt-2 after:block after:h-[3px] after:w-12">Navigate</h3> |
| 16 | + <nav className="flex flex-col gap-5"> |
| 17 | + <Link href={SITE_SLUGS.home}>Home</Link> |
| 18 | + <Link href={SITE_SLUGS.contact}>Contact</Link> |
| 19 | + <Link href={SITE_SLUGS.services}>Services</Link> |
| 20 | + <Link rel="noopener noreferrer" target="_blank" href={SITE_NAP.googleReviewLink}> |
| 21 | + Write Review |
| 22 | + </Link> |
| 23 | + </nav> |
| 24 | + </div> |
| 25 | + |
| 26 | + {/* Contact Info */} |
| 27 | + <div className="h-card"> |
| 28 | + <h3 className="after:bg-primary relative mb-4 after:absolute after:bottom-0 after:mt-2 after:block after:h-[3px] after:w-16">Contact</h3> |
| 29 | + <div className="grid grid-cols-1 gap-4"> |
| 30 | + <Link href={`tel:${SITE_NAP.phone}`} className="p-tel" aria-label={`Call ${SITE_CONFIG.title} in ${SITE_NAP.city} at ${SITE_NAP.formattedPhone}`}> |
| 31 | + {SITE_NAP.formattedPhone} |
| 32 | + </Link> |
| 33 | + <Link href={`mailto:${SITE_NAP.email}`} className="u-email" aria-label={`Email ${SITE_CONFIG.title} at ${SITE_NAP.email}`}> |
| 34 | + {SITE_NAP.email} |
| 35 | + </Link> |
| 36 | + <Link href={SITE_NAP.profiles.gbp} className="p-adr" target="_blank" rel="noopener noreferrer" aria-label="View our location on Google Maps"> |
| 37 | + <span className="p-street-address">{SITE_NAP.address}</span>,<span className="p-locality"> {SITE_NAP.city}</span>, |
| 38 | + <span className="p-region"> {SITE_NAP.state}</span>,<span className="p-postal-code">{SITE_NAP.zipCode}</span> |
| 39 | + </Link> |
| 40 | + </div> |
| 41 | + </div> |
| 42 | + |
| 43 | + {/* Business Hours Column */} |
| 44 | + <div> |
| 45 | + <h3 className="after:bg-primary relative mb-4 after:absolute after:bottom-0 after:mt-2 after:block after:h-[3px] after:w-16">Hours</h3> |
| 46 | + |
| 47 | + <div className="flex flex-col gap-2"> |
| 48 | + {SITE_NAP.openingHours.map(({ days, hours }) => ( |
| 49 | + <p key={days}> |
| 50 | + <span className="text-nowrap">{days}: </span> |
| 51 | + <span className="text-nowrap">{hours}</span> |
| 52 | + </p> |
| 53 | + ))} |
| 54 | + </div> |
| 55 | + </div> |
| 56 | + </div> |
| 57 | + <div className="mb-5 flex justify-center"> |
| 58 | + <SocialLinks /> |
| 59 | + </div> |
| 60 | + {/* Bottom Section */} |
| 61 | + <div className="flex flex-col items-center justify-between border-t border-neutral-600 pt-4 pb-4 lg:flex-row lg:items-end"> |
| 62 | + <div className="flex w-fit flex-col items-center lg:items-start lg:justify-between"> |
| 63 | + {/* Logo */} |
| 64 | + <div className="h-card flex w-fit items-center"> |
| 65 | + {/* <Image src={Logo} alt={`{SITE_CONFIG.title} Kirkland Logo" width={50} height={50} className="u-logo`} /> */} |
| 66 | + <span className="p-name xs:text-[24px] text-xl font-extrabold text-nowrap uppercase italic">{SITE_CONFIG.title}</span> |
| 67 | + </div> |
| 68 | + |
| 69 | + {/* Copyright */} |
| 70 | + <p className="mt-4 w-full text-center text-base! text-neutral-500 md:mt-0 lg:text-start"> |
| 71 | + {year} Copyright © {SITE_CONFIG.title} | Website by |
| 72 | + <Link title="Seattle Web Design & SEO | Serbyte Development" href="https://www.serbyte.net/" className="text-primary font-medium hover:underline"> |
| 73 | + {" "} |
| 74 | + Serbyte Development |
| 75 | + </Link> |
| 76 | + </p> |
| 77 | + </div> |
| 78 | + <div className="mt-4 flex w-fit items-center justify-center lg:mt-0"> |
| 79 | + <Link |
| 80 | + title={`Terms of Service | ${SITE_CONFIG.title}`} |
| 81 | + href={`${SITE_CONFIG.url}/privacy-policy`} |
| 82 | + className="text-sm! text-nowrap text-neutral-500" |
| 83 | + > |
| 84 | + Privacy Policy{" "} |
| 85 | + </Link> |
| 86 | + <span className="mx-1 text-neutral-500">|</span> |
| 87 | + <Link |
| 88 | + title={`Privacy Policy | ${SITE_CONFIG.title}`} |
| 89 | + href={`${SITE_CONFIG.url}/terms-of-service`} |
| 90 | + className="text-sm! text-nowrap text-neutral-500" |
| 91 | + > |
| 92 | + Terms of Service |
| 93 | + </Link> |
| 94 | + </div> |
| 95 | + </div> |
| 96 | + </div> |
| 97 | + </footer> |
| 98 | + ) |
| 99 | +} |
0 commit comments