Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

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 Mobile View

Link

My process

Built with

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

What I learnt

I was impressed with myself for getting to understand the usage of this:

main {
    grid-template-areas:
      "seven one one four"
      "seven two three four"
      "eight two three four"
      "eight two three four"
      "eight six five five";
}

main section {
    &:first-child {
        grid-area: one;
    &:nth-child(2) {
        grid-area: two;
    &:nth-child(3) {
        grid-area: three;
    &:nth-child(4) {
        grid-area: four;
    &:nth-child(5) {
        grid-area: five;
    &:nth-child(6) {
        grid-area: six;
    &:nth-child(7) {
        grid-area:  seven;
    &:last-child {
        grid-area: eight;

Continued development

The grid property is something I would like to go deeper into soon, as there are other properties associated with it. Playing around with it was fun, especially the grid-template-areas property, where I had to manipulate certain selectors to placements of my choice. This wouldn't have been possible without the grid-area property I learnt along with the others.

Author

About

Another challenge I tried from Frontend Mentor.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages