Objective
Show resident and guest artists' work and route booking requests to WhatsApp.
Artist profiles and blog posts live in MongoDB and are rendered as static pages. The home page combines a video hero, an autoplay studio carousel, the guest artist grid and featured posts.
Challenges
- 01Guest artists rotate often, each with their own profile and portfolio
- 02Portfolio images need full-size viewing on mobile and desktop
- 03Blog likes should not be inflated by repeated clicks
How it was solved
- 01Artist documents in MongoDB, with one static page generated per artist
- 02Image grid that opens a looping Embla carousel inside a modal
- 03Server Action that counts one like per visitor, tracked by cookie
Overview
The site is in Spanish only and has no contact form: booking requests go straight to the studio’s WhatsApp.
Technical Implementation
Data layer
Server Actions query the artist and post collections. Artist and post routes are generated with generateStaticParams, and unknown slugs return 404.
Artist pages
Each profile combines a cover image, a bio card and a portfolio grid. Artists flagged as private are left out of the guest listing and served with noindex.
Blog
Post HTML stored in the database is sanitized before rendering. The like counter updates through a Server Action that revalidates the post page.
Features
- Video hero with booking call to action
- Autoplay studio carousel
- Guest artist grid and individual profile pages
- Portfolio modal with looping carousel
- Blog with featured posts and like counter
- Floating WhatsApp button
Technologies
- Next.js
- React
- JavaScript
- Framer Motion
- MongoDB
- Tailwind CSS
- Embla Carousel
- sanitize-html
