mirror of
https://github.com/yusufipk/nexter-react.git
synced 2026-09-11 09:36:09 +00:00
created and styled realtors
This commit is contained in:
@@ -1,3 +1,29 @@
|
||||
import realtor1 from "./img/realtor-1.jpeg";
|
||||
import realtor2 from "./img/realtor-2.jpeg";
|
||||
import realtor3 from "./img/realtor-3.jpeg";
|
||||
|
||||
export default function Realtors() {
|
||||
return <div className="realtors">Top 3 realtors</div>;
|
||||
return (
|
||||
<div className="realtors">
|
||||
<h3 className="heading-3">Top 3 realtors</h3>
|
||||
<div className="realtors__list">
|
||||
<img src={realtor1} alt="Realtor 1" className="realtors__img" />
|
||||
<div className="realtors__details">
|
||||
<h4 className="heading-4 heading-4--light">Erik Feinman</h4>
|
||||
<p className="realtors__sold">245 houses sold</p>
|
||||
</div>
|
||||
|
||||
<img src={realtor2} alt="Realtor 2" className="realtors__img" />
|
||||
<div className="realtors__details">
|
||||
<h4 className="heading-4 heading-4--light">Kim Brown</h4>
|
||||
<p className="realtors__sold">212 houses sold</p>
|
||||
</div>
|
||||
<img src={realtor3} alt="Realtor 2" className="realtors__img" />
|
||||
<div className="realtors__details">
|
||||
<h4 className="heading-4 heading-4--light">Toby Ramsey</h4>
|
||||
<p className="realtors__sold">198 houses sold</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,30 @@
|
||||
.realtors {
|
||||
background-color: $color-secondary;
|
||||
grid-column: col-start 7 / ful-end;
|
||||
padding: 3rem;
|
||||
display: grid;
|
||||
align-content: center;
|
||||
justify-content: center;
|
||||
row-gap: 2rem;
|
||||
justify-items: center;
|
||||
|
||||
&__list {
|
||||
display: grid;
|
||||
grid-template-columns: min-content max-content;
|
||||
column-gap: 2rem;
|
||||
row-gap: 5vh;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
&__img {
|
||||
width: 7rem;
|
||||
border-radius: 50%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
&__sold {
|
||||
text-transform: uppercase;
|
||||
color: $color-grey-light-2;
|
||||
margin-top: -3px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user