Initial commit
This commit is contained in:
44
editor/components/logos/logos.tsx
Normal file
44
editor/components/logos/logos.tsx
Normal file
@@ -0,0 +1,44 @@
|
||||
export type LogosProps = {
|
||||
tagline: string;
|
||||
items: Array<{ src: string; alt: string }>;
|
||||
layout: "row" | "marquee";
|
||||
};
|
||||
|
||||
export function Logos({ tagline, items, layout }: LogosProps) {
|
||||
return (
|
||||
<section className="border-y border-border bg-muted/40 py-12">
|
||||
<div className="container mx-auto max-w-7xl px-6">
|
||||
{tagline ? (
|
||||
<p className="mb-8 text-center text-xs uppercase tracking-[0.2em] text-muted-foreground">
|
||||
{tagline}
|
||||
</p>
|
||||
) : null}
|
||||
{layout === "marquee" ? (
|
||||
<div className="overflow-hidden">
|
||||
<div className="flex animate-[marquee_30s_linear_infinite] gap-16 [--gap:4rem]">
|
||||
{[...items, ...items].map((it, i) => (
|
||||
<img
|
||||
key={i}
|
||||
src={it.src}
|
||||
alt={it.alt}
|
||||
className="h-7 w-auto opacity-60 grayscale"
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
) : (
|
||||
<div className="flex flex-wrap items-center justify-center gap-x-12 gap-y-6">
|
||||
{items.map((it, i) => (
|
||||
<img
|
||||
key={i}
|
||||
src={it.src}
|
||||
alt={it.alt}
|
||||
className="h-7 w-auto opacity-60 grayscale"
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user