Aimpress-site/src/components/blocks/BlockGallery.css
Vadym Samoilenko 6cd63f1bdf Add Page Builder: 15 block types + publish/unpublish via TinaCMS
- New TinaCMS collection 'pages' with 15 block templates:
  Hero, TextBlock, TwoColumn, Features, Stats, Testimonials,
  Team, FAQ, CTABanner, Video, Gallery, Pricing, Timeline,
  Divider, ContactForm
- Each page has published toggle (unpublished → 404)
- Route /p/:slug renders dynamic pages from content/pages/*.json
- scripts/copy-pages.mjs copies content/pages → public/pages at build
- prerender.mjs extended to prerender published pages
- All blocks styled with design tokens + Framer Motion animations

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 22:29:51 +00:00

38 lines
634 B
CSS

.block-gallery {
padding: 60px 24px;
}
.block-gallery-grid {
max-width: 1100px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.block-gallery-item {
margin: 0;
padding: 0;
overflow: hidden;
}
.block-gallery-item img {
width: 100%;
height: 240px;
object-fit: cover;
border-radius: 8px;
display: block;
transition: transform 0.3s ease;
}
.block-gallery-item:hover img {
transform: scale(1.05);
}
.block-gallery-item figcaption {
font-size: 0.8rem;
color: var(--light-grey-100);
opacity: 0.7;
text-align: center;
margin-top: 8px;
}