1. <div className="home">
    2. <header style={{ backgroundImage: `url(${headerBg})` }} />
    3. <main>
    4. <section className="section1"></section>
    5. <section className="section2"></section>
    6. <section className="section3"></section>
    7. <section className="section4"></section>
    8. <section className="section5"></section>
    9. </main>
    10. </div>
    1. @import '../shared/helper';
    2. .home {
    3. flex: 1;
    4. display: flex;
    5. flex-direction: column;
    6. > header {
    7. height: px(99);
    8. background-size: cover;
    9. }
    10. > main {
    11. flex: 1;
    12. display: grid;
    13. grid-template:
    14. 'box1 box2 box4 box5' 755fr
    15. 'box3 box3 box4 box5' 363fr / 366fr 361fr 811fr 747fr;
    16. gap: px(28);
    17. > .section1 {
    18. grid-area: box1;
    19. background: lightgray;
    20. }
    21. > .section2 {
    22. grid-area: box2;
    23. background: lightgray;
    24. }
    25. > .section3 {
    26. grid-area: box3;
    27. background: lightblue;
    28. }
    29. > .section4 {
    30. grid-area: box4;
    31. background: lightcyan;
    32. }
    33. > .section5 {
    34. grid-area: box5;
    35. background: lightyellow;
    36. }
    37. }
    38. }

    image.png