Art Gallery Website using Eleventy and Lightning CSS

Solution retrospective
This challege presents a somewhat complex layout that varied between the mobile, tablet, and desktop designs. I wanted the website to scale well across screen sizes, not just at the design points. I think I've achieved that, though it took a good deal of trial and error before landing on an approach scaling selected dimensions with viewport width.
Complexity is my constant antagonist, and though this is a simple site, the design is not. I chose Eleventy for its simplicity and added Lightning CSS to transpile and bundle modern CSS. Yet the CSS is more complex that I'd like. In future projects, I would like to better separate concerns in both HTML and CSS.
What challenges did you encounter, and how did you overcome them?Mistakes, typos and missed details are always a challenge, and I reached for helpers:
- VSCode extensions for formatting and checking errors include Prettier, Shopify Liquid, and Stylelint.
- Claude Code to check for errors and, using the Figma MCP, to compare the build to the design.
I used the CSS property mix-blend-mode: difference to invert the background and wordmark colors on the left side of the hero image on the desktop home page. This method could come close but could not match the dark gray (#151515) of the background or stark white of the title overlap that was in the design. Is there a better way of doing this?
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on John F MacDonald’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