Skip to content

Commit 828e855

Browse files
committed
reusable grid
1 parent 695559e commit 828e855

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

starter/07-Omnifood-Desktop/css/style.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,29 @@ body {
6262
/* Genral Reusable Components */
6363
/**************************/
6464

65+
.container {
66+
/* 1140px */
67+
max-width: 120rem;
68+
padding: 0 3.2rem;
69+
margin: 0 auto;
70+
}
71+
72+
.grid {
73+
display: grid;
74+
gap: 9.6rem;
75+
}
76+
77+
.grid--2-cols {
78+
grid-template-columns: repeat(2, 1fr);
79+
}
80+
81+
.grid--3-cols {
82+
grid-template-columns: repeat(3, 1fr);
83+
}
84+
.grid--4-cols {
85+
grid-template-columns: repeat(4, 1fr);
86+
}
87+
6588
.heading-primary {
6689
font-size: 5.2rem;
6790
font-weight: 700;
@@ -225,3 +248,12 @@ body {
225248
color: #cf711f;
226249
font-weight: 700;
227250
}
251+
252+
/**************************/
253+
/* How it works Section */
254+
/**************************/
255+
256+
.section-how {
257+
padding: 9.6rem 0;
258+
background-color: orangered;
259+
}

starter/07-Omnifood-Desktop/index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ <h1 class="heading-primary">
6666
</div>
6767
</div>
6868
</section>
69+
70+
<section class="section-how">
71+
<div class="container grid grid--2-cols">
72+
<div>Test 1</div>
73+
<div>Test 2</div>
74+
<div>Test 3</div>
75+
<div>Test 4</div>
76+
</div>
77+
</section>
6978
</main>
7079
</body>
7180
</html>

0 commit comments

Comments
 (0)