Skip to content

kewlinnn/bento-grid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Bento grid solution

This is a solution to the Bento grid challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

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

Screenshot

Desktop View

Desktop Screenshot

Mobile View

Mobile Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid

What I learned

Working on this project reinforced my understanding of CSS Grid and its versatility in creating complex layouts. Here's an example of a key takeaway:

.grid-container {
  display: grid;
  grid-template-areas:
    "A B B C"
    "A D E C"
    "F D E C"
    "F G H H";
  grid-template-columns: 20% 30% 30% 20%;
  gap: 20px;
  grid-template-rows: auto;
}

This structure allowed for a dynamic, responsive grid layout that adapts to various screen sizes.

Useful resources