Skip to content

Content 6

Community section with a grid of contributor avatars.

06 / 07

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/content-6.json
Prefer to iterate with AI?Open in

Usage

The CLI writes the block to components/content-6.tsx. Import it anywhere:

Loading...

Source

The CLI writes this component to components/content-6.tsx.

import Link from 'next/link'

export default function CommunitySection() {
    return (
        <section className="py-16 md:py-32">
            <div className="mx-auto max-w-5xl px-6">
                <div className="text-center">
                    <h2 className="text-3xl font-semibold">
                        Built by the Community <br /> for the Community
                    </h2>
                    <p className="mt-6">Thousands of developers ship with Lyra every day.</p>
                </div>
                <div className="mx-auto mt-12 flex max-w-lg flex-wrap justify-center gap-3">
                    <Link href="#" title="Community member" className="size-16 rounded-full border *:size-full *:rounded-full *:object-cover">
                        <img alt="Community member" src="https://randomuser.me/api/portraits/men/1.jpg" loading="lazy" width={120} height={120} />
                    </Link>
                    <Link href="#" title="Community member" className="size-16 rounded-full border *:size-full *:rounded-full *:object-cover">
                        <img alt="Community member" src="https://randomuser.me/api/portraits/men/2.jpg" loading="lazy" width={120} height={120} />
                    </Link>
                    <Link href="#" title="Community member" className="size-16 rounded-full border *:size-full *:rounded-full *:object-cover">
                        <img alt="Community member" src="https://randomuser.me/api/portraits/men/3.jpg" loading="lazy" width={120} height={120} />
                    </Link>
                    <Link href="#" title="Community member" className="size-16 rounded-full border *:size-full *:rounded-full *:object-cover">
                        <img alt="Community member" src="https://randomuser.me/api/portraits/men/4.jpg" loading="lazy" width={120} height={120} />
                    </Link>
                    <Link href="#" title="Community member" className="size-16 rounded-full border *:size-full *:rounded-full *:object-cover">
                        <img alt="Community member" src="https://randomuser.me/api/portraits/men/5.jpg" loading="lazy" width={120} height={120} />
                    </Link>
                    <Link href="#" title="Community member" className="size-16 rounded-full border *:size-full *:rounded-full *:object-cover">
                        <img alt="Community member" src="https://randomuser.me/api/portraits/men/6.jpg" loading="lazy" width={120} height={120} />
                    </Link>
                    <Link href="#" title="Community member" className="size-16 rounded-full border *:size-full *:rounded-full *:object-cover">
                        <img alt="Community member" src="https://randomuser.me/api/portraits/men/7.jpg" loading="lazy" width={120} height={120} />
                    </Link>
                    <Link href="#" title="Community member" className="size-16 rounded-full border *:size-full *:rounded-full *:object-cover">
                        <img alt="Community member" src="https://randomuser.me/api/portraits/men/1.jpg" loading="lazy" width={120} height={120} />
                    </Link>
                    <Link href="#" title="Community member" className="size-16 rounded-full border *:size-full *:rounded-full *:object-cover">
                        <img alt="Community member" src="https://randomuser.me/api/portraits/men/8.jpg" loading="lazy" width={120} height={120} />
                    </Link>
                    <Link href="#" title="Community member" className="size-16 rounded-full border *:size-full *:rounded-full *:object-cover">
                        <img alt="Community member" src="https://randomuser.me/api/portraits/men/9.jpg" loading="lazy" width={120} height={120} />
                    </Link>
                    <Link href="#" title="Community member" className="size-16 rounded-full border *:size-full *:rounded-full *:object-cover">
                        <img alt="Community member" src="https://randomuser.me/api/portraits/men/10.jpg" loading="lazy" width={120} height={120} />
                    </Link>
                </div>
            </div>
        </section>
    )
}