Write CSS code to create a 2x2 grid layout with the following cell distribution. You have to use only the grid-template and grid-area CSS properties to complete this task.
- The first row should have 2 cells of the area named
headerwith a size of 50px each. - The second row should have 2 cells of the area named
mainwith a size of 100px each. - The third row should have 2 cells of the area named
footerwith the size of 30px each. - The first column (30px) should be half of the second column.