Skip to content

Logo Cloud 2

Logo grid with a hover state that reveals a customers link.

02 / 03

Installation

Run this in a project that already uses shadcn/ui. The CLI adds the block, its components and npm dependencies.

pnpm dlx shadcn@latest add https://ui.sumansharma.info.np/r/logo-cloud-2.json
Prefer to iterate with AI?Open in

Usage

The CLI writes the block to components/logo-cloud.tsx. Import it anywhere:

Loading...

Source

The CLI writes this component to components/logo-cloud.tsx.

import { ChevronRight } from 'lucide-react'
import Link from 'next/link'

export default function LogoCloudTwo() {
    return (
        <section className="bg-background py-16">
            <div className="group relative m-auto max-w-5xl px-6">
                <div className="absolute inset-0 z-10 flex scale-95 items-center justify-center opacity-0 duration-500 group-hover:scale-100 group-hover:opacity-100">
                    <Link
                        href="/"
                        className="block text-sm duration-150 hover:opacity-75">
                        <span> Meet Our Customers</span>

                        <ChevronRight className="ml-1 inline-block size-3" />
                    </Link>
                </div>
                <div className="group-hover:blur-xs mx-auto mt-12 grid max-w-2xl grid-cols-4 gap-x-12 gap-y-8 transition-all duration-500 group-hover:opacity-50 sm:gap-x-16 sm:gap-y-14">
                    <div className="flex">
                        <img
                            className="mx-auto h-5 w-fit dark:invert"
                            src="https://cdn.jsdelivr.net/npm/simple-icons@16.32.0/icons/nvidia.svg"
                            alt="Nvidia Logo"
                            height="20"
                            width="auto"
                        />
                    </div>

                    <div className="flex">
                        <img
                            className="mx-auto h-4 w-fit dark:invert"
                            src="https://cdn.jsdelivr.net/npm/simple-icons@16.32.0/icons/stripe.svg"
                            alt="Stripe Logo"
                            height="16"
                            width="auto"
                        />
                    </div>
                    <div className="flex">
                        <img
                            className="mx-auto h-4 w-fit dark:invert"
                            src="https://cdn.jsdelivr.net/npm/simple-icons@16.32.0/icons/github.svg"
                            alt="GitHub Logo"
                            height="16"
                            width="auto"
                        />
                    </div>
                    <div className="flex">
                        <img
                            className="mx-auto h-5 w-fit dark:invert"
                            src="https://cdn.jsdelivr.net/npm/simple-icons@16.32.0/icons/nike.svg"
                            alt="Nike Logo"
                            height="20"
                            width="auto"
                        />
                    </div>
                    <div className="flex">
                        <img
                            className="mx-auto h-5 w-fit dark:invert"
                            src="https://cdn.jsdelivr.net/npm/simple-icons@16.32.0/icons/lemonsqueezy.svg"
                            alt="Lemon Squeezy Logo"
                            height="20"
                            width="auto"
                        />
                    </div>
                    <div className="flex">
                        <img
                            className="mx-auto h-4 w-fit dark:invert"
                            src="https://cdn.jsdelivr.net/npm/simple-icons@16.32.0/icons/laravel.svg"
                            alt="Laravel Logo"
                            height="16"
                            width="auto"
                        />
                    </div>
                    <div className="flex">
                        <img
                            className="mx-auto h-7 w-fit dark:invert"
                            src="https://cdn.jsdelivr.net/npm/simple-icons@16.32.0/icons/supabase.svg"
                            alt="Supabase Logo"
                            height="28"
                            width="auto"
                        />
                    </div>

                    <div className="flex">
                        <img
                            className="mx-auto h-6 w-fit dark:invert"
                            src="https://cdn.jsdelivr.net/npm/simple-icons@16.32.0/icons/anthropic.svg"
                            alt="Anthropic Logo"
                            height="24"
                            width="auto"
                        />
                    </div>
                </div>
            </div>
        </section>
    )
}