Footer 1
Footer4 ColumnsText Align LeftNewsletter Sign UpFooter

Code
relume-footer1.tsx
"use client";
import { useState } from "react";
import { Button, type ButtonProps } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { FacebookLogo, InstagramLogo, LinkedinLogo, XLogo, YoutubeLogo } from "relume-icons";
type ImageProps = {
url?: string;
src: string;
alt?: string;
};
type Links = {
title: string;
url: string;
icon?: React.ReactNode;
};
type ColumnLinks = {
title: string;
links: Links[];
};
type FooterLink = {
title: string;
url: string;
};
type Props = {
logo: ImageProps;
newsletterDescription: string;
inputPlaceholder?: string;
button: ButtonProps;
termsAndConditions: string;
columnLinks: ColumnLinks[];
footerText: string;
footerLinks: FooterLink[];
};
export type Footer1Props = React.ComponentPropsWithoutRef<"section"> & Partial<Props>;
export const Footer1 = (props: Footer1Props) => {
const {
logo,
newsletterDescription,
inputPlaceholder,
button,
termsAndConditions,
columnLinks,
footerText,
footerLinks,
} = {
...Footer1Defaults,
...props,
};
const [emailInput, setEmailInput] = useState<string>("");
const handleSubmit = (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault();
console.log({
emailInput,
});
};
return (
<footer className="px-[5%] py-12 md:py-18 lg:py-20">
<div className="container">
<div className="grid grid-cols-1 gap-x-[8vw] gap-y-12 pb-12 md:gap-y-16 md:pb-18 lg:grid-cols-[0.75fr_1fr] lg:gap-y-4 lg:pb-20">
<div className="flex flex-col">
<a href={logo.url} className="mb-5 md:mb-6">
<img src={logo.src} alt={logo.alt} className="inline-block" />
</a>
<p className="mb-5 md:mb-6">{newsletterDescription}</p>
<div className="w-full max-w-md">
<form
className="mb-3 grid grid-cols-1 gap-x-4 gap-y-3 sm:grid-cols-[1fr_max-content] md:gap-y-4"
onSubmit={handleSubmit}
>
<Input
id="email"
type="email"
placeholder={inputPlaceholder}
value={emailInput}
onChange={(e) => setEmailInput(e.target.value)}
/>
<Button {...button}>{button.title}</Button>
</form>
<div dangerouslySetInnerHTML={{ __html: termsAndConditions }} />
</div>
</div>
<div className="grid grid-cols-1 items-start gap-y-10 sm:grid-cols-3 sm:gap-x-6 md:gap-x-8 md:gap-y-4">
{columnLinks.map((column, index) => (
<div key={index} className="flex flex-col items-start justify-start">
<h2 className="mb-3 font-semibold md:mb-4">{column.title}</h2>
<ul>
{column.links.map((link, linkIndex) => (
<li key={linkIndex} className="py-2 text-small">
<a href={link.url} className="flex items-center gap-3">
{link.icon && <span>{link.icon}</span>}
<span>{link.title}</span>
</a>
</li>
))}
</ul>
</div>
))}
</div>
</div>
<div className="h-px w-full bg-scheme-border" />
<div className="flex flex-col-reverse items-start justify-between pt-6 pb-4 text-small md:flex-row md:items-center md:pt-8 md:pb-0">
<p className="mt-6 md:mt-0">{footerText}</p>
<ul className="grid grid-flow-row grid-cols-[max-content] justify-center gap-y-4 text-small md:grid-flow-col md:gap-x-6 md:gap-y-0">
{footerLinks.map((link, index) => (
<li key={index} className="underline">
<a href={link.url}>{link.title}</a>
</li>
))}
</ul>
</div>
</div>
</footer>
);
};
export const Footer1Defaults: Props = {
logo: {
url: "#",
src: "https://d22po4pjz3o32e.cloudfront.net/logo-image.svg",
alt: "Logo image",
},
newsletterDescription: "Join our newsletter to stay up to date on features and releases.",
inputPlaceholder: "Enter your email",
button: {
title: "Subscribe",
variant: "secondary",
size: "sm",
},
termsAndConditions: `
<p class='text-tiny'>
By subscribing you agree to with our
<a href='#' class='underline'>Privacy Policy</a>
and provide consent to receive updates from our company.
</p>
`,
columnLinks: [
{
title: "Column One",
links: [
{ title: "Link One", url: "#" },
{ title: "Link Two", url: "#" },
{ title: "Link Three", url: "#" },
{ title: "Link Four", url: "#" },
{ title: "Link Five", url: "#" },
],
},
{
title: "Column Two",
links: [
{ title: "Link Six", url: "#" },
{ title: "Link Seven", url: "#" },
{ title: "Link Eight", url: "#" },
{ title: "Link Nine", url: "#" },
{ title: "Link Ten", url: "#" },
],
},
{
title: "Follow us",
links: [
{ title: "Facebook", url: "#", icon: <FacebookLogo className="size-6 text-scheme-text" /> },
{
title: "Instagram",
url: "#",
icon: <InstagramLogo className="size-6 text-scheme-text" />,
},
{ title: "X", url: "#", icon: <XLogo className="size-6 p-0.5 text-scheme-text" /> },
{ title: "LinkedIn", url: "#", icon: <LinkedinLogo className="size-6 text-scheme-text" /> },
{ title: "Youtube", url: "#", icon: <YoutubeLogo className="size-6 text-scheme-text" /> },
],
},
],
footerText: "© 2025 Relume. All rights reserved.",
footerLinks: [
{ title: "Privacy Policy", url: "#" },
{ title: "Terms of Service", url: "#" },
{ title: "Cookies Settings", url: "#" },
],
};npm i @radix-ui/react-checkbox @radix-ui/react-label @radix-ui/react-slot class-variance-authority@0.7.1 clsx@^2.1.1 embla-carousel-react@^8.5.2 motion@^12.15.0 relume-icons@1.3.0 tailwind-merge@^2.2.2


