Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 5 months ago

Four Card Feature Using Stylus

accessibility, stylus
BlankZTheather•290
@BlankZTheather
A solution to the Four card feature section challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

I'm most proud of being able to leverage Stylus' features a bit better in this challenge. Things such as taking advantage of iterations, conditional statements, placeholder selectors, etc. I also divided my stylesheets into 3 different files, each having a single responsibility (i.e. Globals, Utility, Style). This made it easier to navigate through my styles more effectively.

It's a bit early to switch to a different CSS preprocessor, but next time I'll use LESS instead of Stylus in order to have some experience with it.

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

A challenge I encountered was figuring out how to setup the four cards to look like the desktop version. I knew that there were two ways I could go about solving this, but didn't know which method I wanted to use i.e. Grid or 2 Flexboxes. In the end, CSS grid was my go to answer, but then I had issues visualizing how to setup the columns and rows. So, I used this CSS interactive Grid website to come up with a solution. Neat, huh?

What specific areas of your project would you like help with?

How can I make this website even more accessible?

Otherwise, all feedback welcome!

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on BlankZTheather'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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License