From 917f374122e148541d83dc8cd6db28ff72c8aa66 Mon Sep 17 00:00:00 2001 From: Yusuf Ipek Date: Fri, 14 May 2021 10:11:32 +0300 Subject: [PATCH] created and styled homes section --- src/commons/features.jsx | 12 +-- src/commons/homes.jsx | 173 ++++++++++++++++++++++++++++++++++++++- src/sass/_homes.scss | 80 +++++++++++++++++- 3 files changed, 257 insertions(+), 8 deletions(-) diff --git a/src/commons/features.jsx b/src/commons/features.jsx index b5ac1ba..2dca447 100644 --- a/src/commons/features.jsx +++ b/src/commons/features.jsx @@ -2,7 +2,7 @@ export default function Features() { return (
- +

World's best luxury homes

Lorem ipsum dolor sit amet consectetur, adipisicing elit. Ex @@ -10,7 +10,7 @@ export default function Features() {

- +

Only the best properties.

Voluptatum mollitia quae. Vero ipsum sapiente molestias accusamus @@ -18,7 +18,7 @@ export default function Features() {

- +

All homes in top locations

@@ -28,7 +28,7 @@ export default function Features() {

- +

New home in one week

Vero ipsum sapiente molestias accusamus rerum. Lorem, ipsum dolor sit @@ -36,7 +36,7 @@ export default function Features() {

- +

Top 1% realtors

Quidem consequatur harum, voluptatum mollitia quae. Tenetur distinctio @@ -44,7 +44,7 @@ export default function Features() {

- +

Secure payments on nexter

Pariatur voluptatibus quidem consequatur harum, voluptatum mollitia diff --git a/src/commons/homes.jsx b/src/commons/homes.jsx index 9a822cb..ecc0afd 100644 --- a/src/commons/homes.jsx +++ b/src/commons/homes.jsx @@ -1,3 +1,174 @@ +import house1 from "./img/house-1.jpeg"; +import house2 from "./img/house-2.jpeg"; +import house3 from "./img/house-3.jpeg"; +import house4 from "./img/house-4.jpeg"; +import house5 from "./img/house-5.jpeg"; +import house6 from "./img/house-6.jpeg"; + export default function Homes() { - return

Homes
; + return ( +
+
+ House 1 +
+ +
+
Beautiful Family House
+
+ +

USA

+
+
+ +

5 rooms

+
+
+ +

+ 325 m2 +

+
+
+ +

$1.200.000

+
+ +
+ +
+ House 2 +
+ +
+
Modern Glass Villa
+
+ +

Canada

+
+
+ +

6 rooms

+
+
+ +

+ 450 m2 +

+
+
+ +

$2.750.000

+
+ +
+ +
+ House 3 +
+ +
+
Cozy country House
+
+ +

UK

+
+
+ +

4 rooms

+
+
+ +

+ 250 m2 +

+
+
+ +

$850.000

+
+ +
+ +
+ House 4 +
+ +
+
Large Rustical Villa
+
+ +

Portugal

+
+
+ +

6 rooms

+
+
+ +

+ 480 m2 +

+
+
+ +

$1.950.000

+
+ +
+ +
+ House 5 +
+ +
+
Majestic Palace House
+
+ +

Germany

+
+
+ +

18 rooms

+
+
+ +

+ 4230 m2 +

+
+
+ +

$9.500.000

+
+ +
+ +
+ House 6 +
+ +
+
Modern Family Apartment
+
+ +

Italy

+
+
+ +

3 rooms

+
+
+ +

+ 180 m2 +

+
+
+ +

$600.000

+
+ +
+
+ ); } diff --git a/src/sass/_homes.scss b/src/sass/_homes.scss index bd12135..4e0a006 100644 --- a/src/sass/_homes.scss +++ b/src/sass/_homes.scss @@ -1,4 +1,82 @@ .homes { - background-color: $color-secondary; grid-column: center-start / center-end; + margin: 15rem 0; + + display: grid; + grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr)); + gap: 7rem; + + .home { + background-color: $color-grey-light-1; + + display: grid; + grid-template-columns: repeat(2, 1fr); + row-gap: 3.5rem; + + &__img { + width: 100%; + grid-row: 1 / 2; + grid-column: 1 / -1; + z-index: 1; + } + + &__like { + grid-row: 1 / 2; + grid-column: 2 / 3; + z-index: 2; + justify-self: end; + + .card__icon { + color: $color-primary; + font-size: 2.5rem; + margin: 1rem; + cursor: pointer; + } + } + + &__name { + grid-column: 1 / -1; + grid-row: 1 / 2; + + font-family: $font-display; + font-size: 1.6rem; + text-align: center; + padding: 1.25rem; + background-color: $color-secondary; + color: #fff; + font-weight: 400; + + width: 80%; + justify-self: center; + align-self: end; + transform: translateY(50%); + z-index: 2; + } + + &__button { + grid-column: 1 / -1; + } + + &__location, + &__rooms { + margin-top: 2.5rem; + } + + &__location, + &__rooms, + &__area, + &__price { + font-size: 1.5rem; + margin-left: 2rem; + + display: flex; + align-items: center; + + .card__icon { + color: $color-primary; + font-size: 2rem; + margin-right: 1rem; + } + } + } }