MeDo

Gerador de Galeria com IA.

Descreva o grid que você quer e MeDo gera uma galeria de imagens totalmente estilizada em segundos. Layouts masonry, overlays de lightbox, efeitos hover, breakpoints responsivos — tudo a partir de um único prompt.

Galeria
Galeria

Uma boa galeria transforma visitantes em convencidos.

Imagens são o sinal de confiança mais rápido na web — visitantes formam uma opinião sobre sua qualidade visual em menos de 200ms. Uma galeria bem estruturada permite que essa qualidade fale em escala, seja exibindo um portfólio, catálogo de produtos ou fotos de eventos. O layout certo também afeta o SEO: componentes de imagem devidamente estruturados com texto alternativo e dados estruturados contribuem para a visibilidade na busca de imagens e métricas de engajamento da página.

6 modelos

Modelos de Galeria que você pode gerar

Cada modelo é um prompt real, não uma captura de tela. Copie para qualquer editor de IA, ou rode no MeDo e receba código React + Tailwind.

Uniform gridAcme

Fixed Aspect-Ratio Image Grid

Every tile the same shape, so the grid reads as one object rather than a collage. The right default for product shots — and the wrong one for editorial photography, where cropping to a square throws away the composition.

Create a responsive image grid: four columns on desktop, three on tablet, two on mobile, with a consistent gap. Wrap each image in a 4:3 aspect-ratio box with object-fit: cover so the grid never reflows as images resolve, and set explicit width and height attributes on every img. Use loading="lazy" and decoding="async" on everything below the first row, and eager loading plus fetchpriority="high" on the first row so the largest contentful paint is not deferred. Add a hover state that lifts the tile slightly and fades in a caption over a gradient scrim; drive the same state from :focus-visible so keyboard users see it. Render each item as a figure with figcaption.

Teste no MeDo
MasonryMega

Column Masonry With Mixed Heights

Keeps the original aspect ratio of every shot, which is the point for photography. The trap is CSS columns — they order items top-to-bottom per column, so a chronological set reads out of sequence.

Create a masonry image gallery that preserves each image's native aspect ratio. Use CSS grid with grid-auto-rows set to a small row unit and a span calculated per item from its intrinsic ratio, rather than CSS multi-column, so reading order stays left-to-right and matches the source order. Set the aspect-ratio property on every image wrapper from the known width and height so the grid reserves the exact space before the file loads and nothing shifts. Three columns on desktop, two on tablet, one on mobile. Lazy load below the fold, add a blurred low-resolution placeholder that cross-fades to the full image, and keep a fixed gap on both axes.

Teste no MeDo
LightboxLumen

Grid With a Full-Screen Lightbox

The interaction most galleries get half right: the overlay opens, then Escape does nothing and focus is still behind it. Trap focus and restore it to the thumbnail on close or the gallery is unusable by keyboard.

Create an image grid where clicking a tile opens a full-screen lightbox. The overlay renders as a dialog with aria-modal, moves focus to the close button on open, traps Tab within the overlay, closes on Escape and on backdrop click, and returns focus to the thumbnail that opened it. Support left and right arrow keys plus on-screen previous and next buttons, show a counter such as 4 of 18, and render the caption beneath the image. Preload the neighbouring two images so navigation is instant, lock body scroll while open, and add touch swipe on mobile. Respect prefers-reduced-motion by dropping the zoom transition.

Teste no MeDo
FilterableStudio

Category Filters Above the Grid

Worth adding past a dozen images and a liability below it — three filter chips over nine photos is furniture. Filter in the URL, not just in state, so a client can send a link to one category.

Create a filterable image gallery: a horizontal row of category chips above a responsive grid, with an All chip active by default and a count beside each label. Filtering hides non-matching items and animates the remaining tiles to their new positions with a transform-based transition rather than re-laying out abruptly. Reflect the active filter in the URL query string so a filtered view is linkable and survives reload. Use real button semantics with aria-pressed on each chip, announce the resulting item count in an aria-live region, and show an empty state when a category has no items. Keep the aspect-ratio boxes fixed so filtering never changes tile size.

Teste no MeDo
CarouselReel

Scroll-Snap Thumbnail Carousel

For a strip inside a page rather than a full section — a product detail block or a case study. Build it on scroll-snap, not a JavaScript slider, so it still works with a trackpad and a touch drag.

Create a horizontal image carousel using CSS scroll-snap: a flex row with overflow-x auto, scroll-snap-type x mandatory and scroll-snap-align center on each slide, so native touch and trackpad scrolling work without a slider library. Sit a thumbnail strip beneath it where the active thumb is outlined and clicking one scrolls the main rail to that slide via scrollIntoView with smooth behaviour. Add previous and next buttons that disable at each end, hide the scrollbar visually while keeping keyboard scrolling intact, and give the rail a role and label so it is announced as a group. Fixed aspect-ratio slides, lazy loading past the second image.

Teste no MeDo
MosaicEditorial

Asymmetric Feature Mosaic

One image spans two columns and two rows, the rest fill around it. Gives a set of otherwise equal photographs a focal point — but only ever promote one tile, because two hero cells cancel each other out.

Create an asymmetric mosaic gallery on a six-column CSS grid: the first item spans four columns and two rows, two items span two columns each, and the remainder fill single cells, with explicit grid-column and grid-row spans rather than auto-placement. Give every cell a fixed aspect-ratio box and object-fit: cover so the mosaic holds its shape at any image size. Collapse to a two-column grid on tablet and a single column on mobile, keeping the feature image first. Add a hover scrim with a title and a year, lazy load everything after the feature cell, and eager load the feature image so it can be the largest contentful paint.

Teste no MeDo

Como personalizar seu Galeria

Escolha um layout que combine com a densidade do seu conteúdo

Grids uniformes funcionam bem para fotografia de produto onde consistência importa. Grids masonry brilham com conteúdo de proporções mistas como fotos editoriais ou tomadas de portfólio. Peça ao MeDo para trocar de layout apenas atualizando seu prompt — sem refatoração estrutural necessária.

Adicione filtros de categoria para grandes coleções

Quando sua galeria contém mais de uma dúzia de imagens, filtrar por tag ou categoria melhora drasticamente a usabilidade. Peça ao MeDo para incluir uma barra de filtros acima do grid e animar a transição do layout ao alternar entre categorias.

Otimize Core Web Vitals com lazy loading

Galerias estão entre os principais contribuintes para pontuações ruins de LCP e layout shift. Peça ao MeDo para incluir lazy loading nativo, dimensões explícitas de imagem e efeitos de blur placeholder para manter as métricas de performance limpas.

Torne o lightbox acessível por teclado e leitor de tela

Um lightbox que captura o foco, responde a Escape e teclas de seta, e anuncia descrições de imagem para leitores de tela é muito mais inclusivo — e evita falhas em auditorias de acessibilidade. Especifique esses requisitos no seu prompt MeDo e eles serão incorporados desde o início.

Quem usa o componente Galeria

Portfólios criativos

Designers, fotógrafos e ilustradores dependem de galerias como peça central do seu site. Um grid masonry com lightbox limpo deixa o trabalho respirar sem que a UI concorra pela atenção.

Páginas de produto e-commerce

Galerias de produto multi-imagem com faixas de miniaturas e funcionalidade de zoom influenciam diretamente decisões de compra. Uma galeria bem construída reduz devoluções ao ajudar compradores a examinar produtos detalhadamente antes de comprar.

Sites de eventos e casamentos

Fotógrafos de eventos e espaços usam galerias para exibir trabalhos anteriores e construir prova social. Grids filtráveis organizados por tipo de evento facilitam que clientes potenciais encontrem exemplos relevantes rapidamente.

Listagens de imóveis

Listagens de propriedades com galeria de fotos completa — incluindo imagem hero proeminente, faixa de miniaturas e lightbox em tela cheia — geram significativamente mais consultas do que listagens com apenas imagens estáticas.

Padrões de Galeria para diferentes sites

O mesmo componente galeria, ajustado ao tipo de site em que ele entra.

01 / 06

Photography Portfolio Gallery

Masonry, no crops, and a lightbox that shows the frame at full width. Square-cropping a photographer's work into a uniform grid destroys the composition they were hired for. Keep the chrome minimal — captions on hover, not permanently on top of the image.

Estilos e variações de Galeria

Escolha a variação que combina com o resto da página e gere-a.

01 / 06

Uniform Grid

Equal tiles at one aspect ratio. Reads as a single object and is trivially responsive, at the cost of cropping every image to the same shape — fine for products, destructive for photography.

Galeria em React, Next.js, Vue e Svelte

React, Next.js, Vue 3, SvelteKit, Astro ou HTML puro — o mesmo galeria, seis formas de integrar.

01 / 06

React Gallery

Map over an images array where each entry carries its intrinsic width and height, and use them to set the aspect-ratio box. Only the lightbox needs state — the grid itself is pure markup.

src/components/Gallery.tsx

export function Gallery({ images }) {
  const [open, setOpen] = useState(null)
  return (
    <ul className="grid gap-4 md:grid-cols-3">
      {images.map((img, i) => (
        <li key={img.src} style={{ aspectRatio: img.w / img.h }}>
          <button onClick={() => setOpen(i)}>
            <img src={img.src} alt={img.alt} width={img.w} height={img.h} loading="lazy" />
          </button>
        </li>
      ))}
    </ul>
  )
}

Como adicionar o seu Galeria a um projeto

Quatro passos, de escolher um modelo de galeria até subir para produção.

01~30s

Pick a Gallery Layout

Choose by what your images have in common — uniform grid when the shapes match, masonry when they do not, mosaic when one image should lead, carousel when the gallery is a block inside a longer page.

02~10s

Copy the Prompt

Take the prompt into MeDo, or paste it into Lovable, Bolt, v0 or Cursor. Set your real column counts and aspect ratio before running it, since those two decisions drive every breakpoint that follows.

03~1min

Generate and Refine

You get React + Tailwind back with a live preview. Follow up in plain English — "add Escape to close", "two columns on tablet", "captions under the image instead of over it" — rather than editing grid spans by hand.

04~2min

Wire Up Your Images

Swap the placeholders for your own files with real alt text and intrinsic width and height on every one. That is what keeps the grid from shifting as images resolve, and it is the step most likely to be skipped.

Perguntas comuns sobre Galeria

Como criar uma galeria de imagens com IA?

Abra o MeDo e descreva a galeria que você quer — estilo de layout, número de colunas, comportamento no hover e se precisa de lightbox. MeDo gera um componente de galeria completo e pronto para produção em segundos. Você pode iterar refinando seu prompt até que o resultado corresponda à sua visão.

Qual é o melhor gerador de galeria com IA?

MeDo é construído especificamente para gerar componentes UI a partir de prompts em linguagem natural. Ao contrário de ferramentas de IA gerais, MeDo entende convenções de frontend como grids responsivos, transições CSS, lazy loading e padrões de acessibilidade — então a galeria gerada é realmente implantável, não apenas visualmente prototipada.

Posso gerar uma galeria masonry com IA?

Sim. Basta especificar "layout masonry" no seu prompt MeDo. MeDo gerará um layout baseado em CSS Grid ou Masonry que lida elegantemente com imagens de altura variável, com espaçamento correto e contagens de colunas responsivas em cada breakpoint.

Como adicionar um lightbox a uma galeria gerada por IA?

Inclua "lightbox" no seu prompt MeDo — por exemplo, "clicar em uma imagem deve abrir um lightbox em tela cheia com setas de navegação." MeDo conectará o handler de clique, overlay e controles de teclado. Você também pode pedir recursos como suporte a swipe, legendas de imagem ou botão de fechar no mesmo prompt.

O gerador de galeria com IA pode criar uma galeria filtrável?

Sim. Peça ao MeDo para incluir uma barra de filtros ou navegação baseada em tags no seu prompt de galeria. MeDo gerará a UI de filtros, atribuirá categorias a cada slot de imagem e animará a transição do grid ao alternar filtros — tudo em uma única passagem.

Como tornar uma galeria gerada por IA amigável ao SEO?

Diga ao MeDo para incluir placeholders de texto alternativo descritivos, marcação figure/figcaption adequada e atributos de lazy loading. Para SEO de imagens mais rico, você também pode pedir ao MeDo para adicionar dados estruturados ImageObject (schema.org) a cada item da galeria, o que ajuda mecanismos de busca a indexar suas imagens com precisão.