File tree Expand file tree Collapse file tree 15 files changed +264
-1
lines changed Expand file tree Collapse file tree 15 files changed +264
-1
lines changed Original file line number Diff line number Diff line change
1
+ import React from "react" ;
2
+
3
+ import "../styles/card.css" ;
4
+ import "../styles/houses.css" ;
5
+ import Star from "../images/star.svg" ;
6
+
7
+ function Card ( { src } ) {
8
+ return (
9
+ < div className = "card" >
10
+ < img className = "card-house" src = { src } alt = "another beautiful house" > </ img >
11
+ < div className = "card-house_info" >
12
+ < p > Desert King</ p >
13
+ < p className = "house-info_bold" > 1MBT per night</ p >
14
+ </ div >
15
+ < div className = "card-house_distance" >
16
+ < p > 2345km away</ p >
17
+ < p > available for 2 weeks stay</ p >
18
+ </ div >
19
+ < img src = { Star } alt = "5 beautiful rate stars" />
20
+ </ div >
21
+ ) ;
22
+ }
23
+
24
+ export default Card ;
Original file line number Diff line number Diff line change @@ -3,12 +3,15 @@ import "../styles/homepage.css";
3
3
import "../styles/styles.css" ;
4
4
import Header from "../components/Header"
5
5
import Wallets from "../components/Wallets" ;
6
+ import Houses from "../components/Houses" ;
7
+
6
8
7
9
function Homepage ( ) {
8
10
return (
9
11
< div className = "homepage" >
10
12
< Header />
11
- < Wallets />
13
+ < Wallets />
14
+ < Houses />
12
15
</ div >
13
16
) ;
14
17
}
Original file line number Diff line number Diff line change
1
+ import React from "react" ;
2
+ import "../styles/houses.css" ;
3
+ import "../styles/styles.css" ;
4
+ import Housescontainer from "./Housescontainer" ;
5
+
6
+ function Houses ( ) {
7
+ return (
8
+ < section className = "houses" >
9
+ < h2 > Inspiration for your next adventure</ h2 >
10
+ < Housescontainer />
11
+ </ section >
12
+ ) ;
13
+ }
14
+
15
+ export default Houses ;
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import Card from './Card' ;
3
+ import House5 from "../images/house5.svg" ;
4
+ import House6 from "../images/house6.svg" ;
5
+ import House7 from "../images/house7.svg" ;
6
+ import House8 from "../images/house8.svg" ;
7
+ import House9 from "../images/house9.svg" ;
8
+ import House10 from "../images/house10.svg" ;
9
+ import House11 from "../images/house11.svg" ;
10
+ import House12 from "../images/house12.svg" ;
11
+
12
+
13
+ function Housescontainer ( ) {
14
+ return (
15
+ < div className = "houses-lists_container grid" >
16
+ < div className = "houses-lists" >
17
+ < Card src = { House5 } />
18
+ < Card src = { House6 } />
19
+ < Card src = { House7 } />
20
+ < Card src = { House8 } />
21
+ < Card src = { House9 } />
22
+ < Card src = { House10 } />
23
+ < Card src = { House11 } />
24
+ < Card src = { House12 } />
25
+ </ div >
26
+ </ div >
27
+ ) ;
28
+ }
29
+
30
+ export default Housescontainer
You can’t perform that action at this time.
0 commit comments