Skip to content

Commit 1aa4408

Browse files
committed
Finishing Realtors Section
1 parent 7b520e6 commit 1aa4408

File tree

3 files changed

+68
-4
lines changed

3 files changed

+68
-4
lines changed

css/style.css

+22-2
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,28 @@ body {
141141
filter: brightness(70%); }
142142

143143
.realtors {
144-
background-color: royalblue;
145-
grid-column: col-start 7 / full-end; }
144+
background-color: #101d2c;
145+
grid-column: col-start 7 / full-end;
146+
padding: 3rem;
147+
display: grid;
148+
justify-content: center;
149+
justify-content: center;
150+
align-content: center;
151+
grid-row-gap: 2rem; }
152+
.realtors__list {
153+
display: grid;
154+
grid-template-columns: min-content max-content;
155+
grid-column-gap: 2rem;
156+
grid-row-gap: 5vh;
157+
align-items: center; }
158+
.realtors__img {
159+
display: block;
160+
width: 7rem;
161+
border-radius: 50%; }
162+
.realtors__sold {
163+
text-transform: uppercase;
164+
color: #aaa;
165+
margin-top: -3px; }
146166

147167
.features {
148168
grid-column: center-start / center-end;

index.html

+20-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,26 @@ <h1 class="heading-1">The Ultimate Personal Freedom</h1>
2929
</div>
3030
</header>
3131
<div class="realtors">
32-
Top 3 Realtors
32+
<h3 class="heading-3">Top 3 Realtors</h3>
33+
<div class="realtors__list">
34+
<img src="images/realtor-1.jpeg" alt="Realtor 1" class="realtors__img">
35+
<div class="realtors__details">
36+
<h4 class="heading-4 heading-4--light">Erik Fineman</h4>
37+
<p class="realtors__sold">245 houses sold</p>
38+
</div>
39+
40+
<img src="images/realtor-2.jpeg" alt="Realtor 2" class="realtors__img">
41+
<div class="realtors__details">
42+
<h4 class="heading-4 heading-4--light">Kim Brown</h4>
43+
<p class="realtors__sold">212 houses sold</p>
44+
</div>
45+
46+
<img src="images/realtor-3.jpeg" alt="Realtor 3" class="realtors__img">
47+
<div class="realtors__details">
48+
<h4 class="heading-4 heading-4--light">Toby Ramsey</h4>
49+
<p class="realtors__sold">198 houses sold</p>
50+
</div>
51+
</div>
3352
</div>
3453
<section class="features">
3554
<div class="feature">

sass/_realtors.scss

+26-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,29 @@
11
.realtors {
2-
background-color: royalblue;
2+
background-color: $color-secondary;
33
grid-column: col-start 7 / full-end;
4+
padding: 3rem;
5+
display: grid;
6+
justify-content: center;
7+
justify-content: center;
8+
align-content: center;
9+
grid-row-gap: 2rem;
10+
&__list {
11+
display: grid;
12+
grid-template-columns: min-content max-content;
13+
grid-column-gap: 2rem;
14+
grid-row-gap: 5vh;
15+
align-items: center;
16+
}
17+
18+
&__img {
19+
display: block;
20+
width: 7rem;
21+
border-radius: 50%;
22+
}
23+
24+
&__sold {
25+
text-transform: uppercase;
26+
color: $color-grey-light-2;
27+
margin-top: -3px;
28+
}
429
}

0 commit comments

Comments
 (0)