Footer 1
uifoundry/footer-1UnverifiedBlock
Footer 1 Block with centered layout, brand logo, navigation links, social icons, and copyright
Install it
npx shadcn@latest add https://raw.githubusercontent.com/UIFoundry/uifoundry/master/footer-1.jsonSource
1"use client";23import Image from "next/image";4import Link from "next/link";5import { type ComponentPropsWithRef } from "react";6import type { Footer_1_Block, Media } from "~/payload-types";7import SocialIcon from "@/registry/default/lib/fields/socialLinks";89export default function Footer_1({10 brandLogo,11 links,12 socialLinks,13 copyright,14 ...divProps15}: Footer_1_Block & ComponentPropsWithRef<"div">) {16 return (17 <footer {...divProps}>18 <div className="mx-auto max-w-5xl px-6 py-8 md:py-16">19 <Link href="/" aria-label="go home" className="mx-auto block size-fit">20 {brandLogo && (21 <Image22 src={(brandLogo as Media).url!}23 alt={(brandLogo as Media).alt}24 width={200}25 height={150}26 />27 )}28 </Link>2930 <div className="flex flex-wrap justify-center gap-6 text-sm">31 {(links ?? []).map((link, index) => (32 <Link33 key={index}34 href={link.href}35 className="text-muted-foreground hover:text-primary block duration-150"36 >37 <span>{link.label}</span>38 </Link>39 ))}40 </div>41 <div className="my-8 flex flex-wrap justify-center gap-6 text-sm">42 {socialLinks.map((icon, index) => (43 <SocialIcon icon={icon.icon} href={icon.href} key={`${index}`} />44 ))}45 </div>46 <span className="text-muted-foreground block text-center text-sm">47 {" "}48 © {new Date().getFullYear()} {copyright}49 </span>50 </div>51 </footer>52 );53}
What it pulls in
npm packages
Other registry items
Files it writes
More from uifoundry
All 54 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Color Fieldcolor-field | uifoundry | Blocks | Unverified | 4 deps · 2 files | |
| Coming Soon 1coming-soon-1 | uifoundry | Blocks | Unverified | 3 deps · 2 files | |
| CTA 1cta-1 | uifoundry | Blocks | Unverified | 3 deps · 2 files | |
| CTA 2cta-2 | uifoundry | Blocks | Unverified | 3 deps · 2 files | |
| CTA 3cta-3 | uifoundry | Blocks | Unverified | 3 deps · 2 files | |
| Custom Headercustom-header | uifoundry | Blocks | Unverified | 4 deps · 3 files | |
| Features 1features-1 | uifoundry | Blocks | Unverified | 3 deps · 2 files | |
| Features 2features-2 | uifoundry | Blocks | Unverified | 4 deps · 2 files |
