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.
Users should be able to:
- View the optimal layout for the interface depending on their device's screen size
- Live Site URL: Bento Grid
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
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;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.
- Github - @harryjupiter148

