1 estrella en GitHub = 1 componente nuevo.

Dar una estrella
Agencia y Marketing

Agency Team Grid

Retratos del equipo con cargo, ciudad, dato curioso al pasar el ratón o enfocar, redes y tarjeta «estamos contratando».

teampeopleagencyhiring
Vista Previa en Vivo

The studio

Small team, senior people

No juniors hidden behind account managers. You work directly with the people who do the work.

Fun factDesigned her first logo at 12 — for her cat.

Marta Ibáñez

Founder & creative director · Madrid

Fun factOwns 41 typefaces, uses three.

Jonas Weber

Head of design · Berlin

Fun factRan a marathon and a product launch the same week.

Aisha Bello

Growth lead · Lisbon

Fun factShips to production from a sailboat.

Leo Martins

Lead developer · Remote

We are hiringSenior designers and React developers — remote in Europe.See open roles ↗

Uso

Copia y pega este código directamente en tu componente React:

tsx
import { AgencyTeamGrid } from 'react-component-kit-ui/sections';

<AgencyTeamGrid people={[{ name: 'Marta Ibáñez', role: 'Founder', location: 'Madrid', fact: 'Managed €20M in ads.' }]} />

Instalación Manual

Si no estás usando el paquete npm, crea un archivo nuevo y pega el siguiente código: src/components/sections/AgencyTeamGrid.tsx + AgencyTeamGrid.css:

AgencyTeamGrid.tsx
'use client';

import type { CSSProperties } from 'react';
import './AgencyTeamGrid.css';

/** class:list → className */
function cx(...args: unknown[]): string {
  const out: string[] = [];
  const walk = (v: unknown) => {
    if (!v) return;
    if (typeof v === 'string' || typeof v === 'number') out.push(String(v));
    else if (Array.isArray(v)) v.forEach(walk);
    else if (typeof v === 'object') for (const [k, on] of Object.entries(v as Record<string, unknown>)) if (on) out.push(k);
  };
  args.forEach(walk);
  return out.join(' ');
}

/** "a: b; --c: d" → style object */
function st(css: string | undefined): CSSProperties {
  const o: Record<string, string> = {};
  for (const decl of String(css ?? '').split(';')) {
    const i = decl.indexOf(':');
    if (i < 0) continue;
    const k = decl.slice(0, i).trim();
    if (k) o[k.startsWith('--') ? k : k.replace(/-([a-z])/g, (_, c) => c.toUpperCase())] = decl.slice(i + 1).trim();
  }
  return o as CSSProperties;
}

interface Person { name: string; role: string; location?: string; fact?: string; photo?: string; links?: Array<{ label: string; href: string }> }

/**
 * AgencyTeamGrid — Team portraits with name, role, location, a personal "fun fact" revealed on
 * hover/focus and social links, plus an optional "we're hiring" card.
 *
 * @param {string} eyebrow - Small label. Default 'The studio'.
 * @param {string} title - Heading. Default 'Small team, senior people'.
 * @param {string} text - Intro paragraph.
 * @param {Array<{name: string, role: string, location?: string, fact?: string, photo?: string, links?: {label: string, href: string}[]}>} people - Team members.
 * @param {{title: string, text: string, href: string, label?: string}} hiring - Hiring card (optional).
 * @param {number} columns - Desktop columns (3–4). Default 4.
 * @param {string} variant - Style (portrait|compact). Default 'portrait'.
 * @param {string} className - Extra class.
 *
 * Accessibility: each person is an article with a heading; the fun fact is real text (visible on
 * hover and on keyboard focus of the card); social links have descriptive labels.
 */
export interface AgencyTeamGridProps {
  eyebrow?: string;
  title?: string;
  text?: string;
  people?: Person[];
  hiring?: { title: string; text: string; href: string; label?: string };
  columns?: 3 | 4;
  variant?: 'portrait' | 'compact';
  className?: string;
}

export function AgencyTeamGrid({
  eyebrow = 'The studio',
  title = 'Small team, senior people',
  text = 'No juniors hidden behind account managers. You work directly with the people who do the work.',
  people = [
    { name: 'Marta Ibáñez', role: 'Founder & creative director', location: 'Madrid', fact: 'Designed her first logo at 12 — for her cat.', links: [{ label: 'LinkedIn', href: '#' }] },
    { name: 'Jonas Weber', role: 'Head of design', location: 'Berlin', fact: 'Owns 41 typefaces, uses three.', links: [{ label: 'Dribbble', href: '#' }] },
    { name: 'Aisha Bello', role: 'Growth lead', location: 'Lisbon', fact: 'Ran a marathon and a product launch the same week.', links: [{ label: 'LinkedIn', href: '#' }] },
    { name: 'Leo Martins', role: 'Lead developer', location: 'Remote', fact: 'Ships to production from a sailboat.', links: [{ label: 'GitHub', href: '#' }] },
  ],
  hiring = { title: 'We are hiring', text: 'Senior designers and React developers — remote in Europe.', href: '#', label: 'See open roles' },
  columns = 4,
  variant = 'portrait',
  className = '',
}: AgencyTeamGridProps) {
  const hues = [80, 280, 20, 190, 330, 140];
  const initials = (n: string) => n.split(/\s+/).slice(0, 2).map((p) => p[0]).join('');
  return (
    <>
      <div className="cq-agency-team" data-rk-28a916="">
      <section className={cx(['atg', `atg--${variant}`, className])} style={st(`--cols: ${columns}`)} aria-labelledby="atg-title" data-rk-28a916="">
        <header className="atg__head" data-rk-28a916="">
          <p className="atg__eyebrow" data-rk-28a916="">{eyebrow}</p>
          <h2 className="atg__title" id="atg-title" data-rk-28a916="">{title}</h2>
          {text && <p className="atg__text" data-rk-28a916="">{text}</p>}
        </header>
        <div className="atg__grid" data-rk-28a916="">
          {people.map((p, i) => (
            <article key={i} className="atg__person" tabIndex={0} aria-labelledby={`atg-p-${i}`} data-rk-28a916="">
              <div className="atg__photo" style={st(`--h: ${hues[i % hues.length]}`)} data-rk-28a916="">
                {p.photo ? <img src={p.photo} alt={`Portrait of ${p.name}`} loading="lazy" decoding="async" data-rk-28a916="" /> : <span className="atg__initials" aria-hidden="true" data-rk-28a916="">{initials(p.name)}</span>}
                {p.fact && <p className="atg__fact" data-rk-28a916=""><span data-rk-28a916="">Fun fact</span>{p.fact}</p>}
              </div>
              <h3 className="atg__name" id={`atg-p-${i}`} data-rk-28a916="">{p.name}</h3>
              <p className="atg__role" data-rk-28a916="">{p.role}{p.location && <span data-rk-28a916=""> · {p.location}</span>}</p>
              {p.links && <p className="atg__links" data-rk-28a916="">{p.links.map((l, __i: number) => <a key={__i} href={l.href} aria-label={`${p.name} on ${l.label}`} data-rk-28a916="">{l.label}</a>)}</p>}
            </article>
          ))}
          {hiring && (
            <a className="atg__hiring" href={hiring.href} data-rk-28a916="">
              <strong data-rk-28a916="">{hiring.title}</strong>
              <span data-rk-28a916="">{hiring.text}</span>
              <em data-rk-28a916="">{hiring.label ?? 'Open roles'} ↗</em>
            </a>
          )}
        </div>
      </section>
      </div>
    </>
  );
}

export default AgencyTeamGrid;
AgencyTeamGrid.css
.cq-agency-team:where([data-rk-28a916]) { container-type: inline-size; }
.atg:where([data-rk-28a916]) { color: var(--c-text-1, #fff); }
.atg__head:where([data-rk-28a916]) { display: grid; gap: var(--sp-2, 0.5rem); max-width: 46rem; margin-bottom: var(--sp-8, 2rem); }
.atg__eyebrow:where([data-rk-28a916]) { margin: 0; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-2, #a3a3a3); }
.atg__title:where([data-rk-28a916]) { margin: 0; font-size: clamp(2.2rem, 6cqi, 4.2rem); font-weight: 900; letter-spacing: -0.05em; line-height: 0.95; }
.atg__text:where([data-rk-28a916]) { margin: var(--sp-2, 0.5rem) 0 0; font-size: 1.05rem; line-height: 1.6; color: var(--c-text-2, #a3a3a3); }
.atg__grid:where([data-rk-28a916]) { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(1rem, 2.5cqi, 1.75rem); }
.atg__person:where([data-rk-28a916]) { display: grid; gap: 4px; outline: none; }
.atg__photo:where([data-rk-28a916]) { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: radial-gradient(circle at 30% 25%, hsl(var(--h) 80% 70%), transparent 60%), hsl(var(--h) 40% 22%); margin-bottom: var(--sp-3, 0.75rem); }
.atg--compact:where([data-rk-28a916]) .atg__photo:where([data-rk-28a916]) { aspect-ratio: 1; }
.atg__photo:where([data-rk-28a916]) img:where([data-rk-28a916]) { width: 100%; height: 100%; object-fit: cover; }
.atg__initials:where([data-rk-28a916]) { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(3rem, 9cqi, 5.5rem); font-weight: 900; letter-spacing: -0.06em; color: rgba(255, 255, 255, 0.9); }
.atg__fact:where([data-rk-28a916]) { position: absolute; inset: auto 10px 10px; margin: 0; padding: var(--sp-3, 0.75rem) var(--sp-4, 1rem); border-radius: 16px; background: var(--agency-accent, var(--c-primary-light, #d4a017)); color: var(--c-on-primary, #050505); font-size: 0.88rem; font-weight: 600; line-height: 1.4; opacity: 0; transform: translateY(12px) rotate(-1.5deg); transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.atg__fact:where([data-rk-28a916]) span:where([data-rk-28a916]) { display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.atg__person:hover:where([data-rk-28a916]) .atg__fact:where([data-rk-28a916]), .atg__person:focus-within:where([data-rk-28a916]) .atg__fact:where([data-rk-28a916]), .atg__person:focus:where([data-rk-28a916]) .atg__fact:where([data-rk-28a916]) { opacity: 1; transform: rotate(-1.5deg); }
.atg__person:focus-visible:where([data-rk-28a916]) .atg__photo:where([data-rk-28a916]) { outline: 3px solid var(--agency-accent, var(--c-primary-light, #d4a017)); outline-offset: 3px; }
.atg__name:where([data-rk-28a916]) { margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.atg__role:where([data-rk-28a916]) { margin: 0; font-size: 0.88rem; color: var(--c-text-2, #a3a3a3); }
.atg__links:where([data-rk-28a916]) { display: flex; gap: var(--sp-3, 0.75rem); margin: 4px 0 0; }
.atg__links:where([data-rk-28a916]) a:where([data-rk-28a916]) { min-height: 32px; display: inline-flex; align-items: center; font-size: 0.85rem; font-weight: 700; color: var(--c-text-1, #fff); text-decoration: underline; text-underline-offset: 3px; }
.atg__links:where([data-rk-28a916]) a:focus-visible:where([data-rk-28a916]), .atg__hiring:focus-visible:where([data-rk-28a916]) { outline: 2px solid var(--agency-accent, var(--c-primary-light, #d4a017)); outline-offset: 3px; }
.atg__hiring:where([data-rk-28a916]) { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--sp-2, 0.5rem); aspect-ratio: 4 / 5; padding: var(--sp-6, 1.5rem); border-radius: 24px; border: 2px dashed var(--c-border, rgba(255, 255, 255, 0.25)); color: inherit; text-decoration: none; transition: background 0.3s ease, border-color 0.3s ease; }
.atg__hiring:hover:where([data-rk-28a916]) { background: var(--agency-accent, var(--c-primary-light, #d4a017)); border-color: transparent; color: var(--c-on-primary, #050505); }
.atg__hiring:where([data-rk-28a916]) strong:where([data-rk-28a916]) { font-size: 1.8rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.atg__hiring:where([data-rk-28a916]) span:where([data-rk-28a916]) { font-size: 0.92rem; opacity: 0.8; }
.atg__hiring:where([data-rk-28a916]) em:where([data-rk-28a916]) { font-style: normal; font-weight: 800; }
@container (max-width: 900px) { .atg__grid:where([data-rk-28a916]) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 460px) { .atg__grid:where([data-rk-28a916]) { grid-template-columns: 1fr; } .atg__hiring:where([data-rk-28a916]) { aspect-ratio: auto; min-height: 200px; } }
@media (hover: none) { .atg__fact:where([data-rk-28a916]) { position: static; opacity: 1; transform: none; margin: var(--sp-2, 0.5rem); } .atg__photo:where([data-rk-28a916]) { display: flex; flex-direction: column; justify-content: flex-end; } }
@media (prefers-reduced-motion: reduce) { .atg__fact:where([data-rk-28a916]), .atg__hiring:where([data-rk-28a916]) { transition: none; } }