Skip to content

Commit bf7e42c

Browse files
committed
completed the place-to-stay page
1 parent bcce636 commit bf7e42c

22 files changed

+326
-23
lines changed

src/components/Houses.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function Houses() {
77
return (
88
<section className="houses">
99
<h2>Inspiration for your next adventure</h2>
10-
<Housescontainer />
10+
<Housescontainer />
1111
</section>
1212
);
1313
}

src/components/Housescontainer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import Card from './Card';
33
import House5 from "../images/house5.svg";
4+
45
import House6 from "../images/house6.svg";
56
import House7 from "../images/house7.svg";
67
import House8 from "../images/house8.svg";
@@ -10,7 +11,7 @@ import House11 from "../images/house11.svg";
1011
import House12 from "../images/house12.svg";
1112

1213

13-
function Housescontainer() {
14+
function Housescontainer({children}) {
1415
return (
1516
<div className="houses-lists_container grid">
1617
<div className="houses-lists">
@@ -22,6 +23,7 @@ function Housescontainer() {
2223
<Card src={House10} />
2324
<Card src={House11} />
2425
<Card src={House12} />
26+
{children}
2527
</div>
2628
</div>
2729
);
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
import React from 'react';
2+
import Card from './Card';
3+
import "../styles/houses.css";
4+
import "../styles/styles.css";
5+
6+
import House16 from "../images/house16.svg";
7+
import House17 from "../images/house17.svg";
8+
import House18 from "../images/house18.svg";
9+
import House19 from "../images/house19.svg";
10+
import House20 from "../images/house20.svg";
11+
import House21 from "../images/house21.svg";
12+
import House22 from "../images/house22.svg";
13+
import House23 from "../images/house23.svg";
14+
import House24 from "../images/house24.svg";
15+
import House25 from "../images/house25.svg";
16+
import House26 from "../images/house26.svg";
17+
import House27 from "../images/house27.svg";
18+
import House28 from "../images/house28.svg";
19+
import House29 from "../images/house29.svg";
20+
import House30 from "../images/house30.svg";
21+
import House31 from "../images/house31.svg";
22+
23+
24+
function Housescontainerplace() {
25+
return (
26+
<section className='house-places grid'>
27+
<div className='house-places_container'>
28+
<Card src={House16} />
29+
<Card src={House17} />
30+
<Card src={House18} />
31+
<Card src={House19} />
32+
<Card src={House20} />
33+
<Card src={House21} />
34+
<Card src={House22} />
35+
<Card src={House23} />
36+
<Card src={House24} />
37+
<Card src={House25} />
38+
39+
<Card src={House26} />
40+
41+
<Card src={House27} />
42+
<Card src={House28} />
43+
<Card src={House29} />
44+
<Card src={House30} />
45+
<Card src={House31} />
46+
</div>
47+
</section>
48+
);
49+
}
50+
51+
export default Housescontainerplace

src/components/Place.js

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
11
import React from "react";
22
import "../styles/styles.css";
33
import "../styles/place.css";
4-
import './Button'
4+
import "./Button";
55
import Button from "./Button";
6-
import Setting from '../images/setting.svg'
6+
import Setting from "../images/setting.svg";
7+
import Housescontainerplace from './Housescontainerplace'
78

89
function Place() {
910
return (
10-
<section className="place grid">
11-
<div className="place-content">
12-
<div className="places-list">
13-
<p>Restaurant</p>
14-
<p>Cottage</p>
15-
<p>Castle</p>
16-
<p>fantas city</p>
17-
<p>beach</p>
18-
<p>Carbins</p>
19-
<p>Off-grid</p>
20-
<p>Farm</p>
21-
<Button name='Location' styleclass='btn-location'>
22-
<img className="setting" src={Setting} alt='filter'></img>
23-
</Button>
11+
<section className="place">
12+
<div className="place-content grid">
13+
<div className="places-list ">
14+
<p>Restaurant</p>
15+
<p>Cottage</p>
16+
<p>Castle</p>
17+
<p>fantas city</p>
18+
<p>beach</p>
19+
<p>Carbins</p>
20+
<p>Off-grid</p>
21+
<p>Farm</p>
22+
<Button name="Location" styleclass="btn-location">
23+
<img className="setting" src={Setting} alt="filter"></img>
24+
</Button>
2425
</div>
25-
26-
<div className="house-list">LIST</div>
2726
</div>
27+
<Housescontainerplace/>
28+
29+
2830
</section>
2931
);
3032
}

src/images/house16.svg

Lines changed: 15 additions & 0 deletions
Loading

src/images/house17.svg

Lines changed: 15 additions & 0 deletions
Loading

src/images/house18.svg

Lines changed: 15 additions & 0 deletions
Loading

src/images/house19.svg

Lines changed: 15 additions & 0 deletions
Loading

src/images/house20.svg

Lines changed: 15 additions & 0 deletions
Loading

src/images/house21.svg

Lines changed: 15 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)