Skip to content

Ehsan-Yari/four-card-feature-section

Repository files navigation

Frontend Mentor - Four card feature section solution

This is a solution to the Four card feature section challenge on Frontend Mentor.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout for the site depending on their device's screen size

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • React - JS library
  • Tailwind CSS - For styling
  • Vite - Build tool

What I learned

The most challenging part of this project was implementing the card layout for the desktop version. To tackle this challenge, I decided to utilize the CSS Grid layout. Firstly, I changed the flow direction of the Grid by using the grid-auto-flow: column property. This adjustment arranged the grid items in a column-wise order. Additionally, I applied grid-row: span 2 / span 2 to both the first and last child elements of the grid, which caused them to span across two rows, providing the desired layout. These modifications successfully resolved the challenges I encountered with the card layout in the desktop version.

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published