Skip to content
Submitted 6 days ago

designo-multi-page-website with next-leaflet-tailwind-framer

next, tailwind-css, react, animation
LVL 3
@ebenezerejeh
A solution to the Designo multi-page website challenge

Solution retrospective


What are you most proud of, and what would you do differently next time?

Most proud of: Completing the bonus challenge — integrating interactive Leaflet maps with OpenStreetMap in a Next.js App Router project, including solving the SSR issue with a two-layer next/dynamic approach.

Do differently next time: Start with the design system tokens and shared components fully locked in before touching any page, to avoid going back to fix inconsistencies across multiple files.

What challenges did you encounter, and how did you overcome them?

The biggest challenge was integrating Leaflet with Next.js App Router. Leaflet relies on the browser's window object, which doesn't exist during server-side rendering, causing build failures. I overcame this by splitting the map into two layers — a "use client" Leaflet component and a separate client wrapper using next/dynamic with ssr: false — which is what Turbopack strictly requires.

Code
Loading...

Please log in to post a comment

Log in

Community feedback

No feedback yet. Be the first to give feedback on ebenezerejeh’s solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord