Skip to content

Commit d33d5ef

Browse files
committed
Added bootstrap buttons below map
1 parent 97bd260 commit d33d5ef

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to release number versioning.
1313
- Added Docker containers with docker-compose [#10](https://github.com/CodeForPhilly/third-places/pull/10)
1414
- Set up Leaflet React component and boiletplate homepage[#7](https://github.com/CodeForPhilly/third-places/issues/7)
1515
- Added initial Django models & migration [#21](https://github.com/CodeForPhilly/third-places/pull/21)
16+
- Added buttons at bottom of Map [#28](https://github.com/CodeForPhilly/third-places/issues/28)
1617

1718
### Changed
1819
- Made Leaflet map element fullscreen and rmeoved title[#27](https://github.com/CodeForPhilly/third-places/issues/27)

src/app/src/Map/Map.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
.leaflet-container {
22
width: 100vw;
33
height: 100vh;
4+
}
5+
6+
.button-container {
7+
padding-left: 1rem;
8+
padding-right: 1rem;
9+
margin-top: 2rem;
410
}

src/app/src/Map/Map.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ function Map() {
2121
</Marker>
2222
</MapContainer>
2323
</div>
24-
<Button style={{backgroundColor:"#ADD8E6"}} variant="primary">Primary</Button>{' '}
25-
<Button style={{backgroundColor:"#ADD8E6"}} variant="secondary">Secondary</Button>
26-
<Button style={{backgroundColor:"#ADD8E6"}} variant="success">Success</Button>
24+
<div className="button-container">
25+
<Button style={{backgroundColor:"#ADD8E6", marginLeft: '1rem', marginRight: '1rem'}} variant="primary">Near Me</Button>
26+
<Button style={{backgroundColor:"#ADD8E6", marginLeft: '1rem', marginRight: '1rem'}} variant="primary">On the Way To</Button>
27+
<Button style={{backgroundColor:"#ADD8E6", marginLeft: '1rem', marginRight: '1rem'}} variant="primary">Around Destination</Button>
28+
</div>
2729
</div>
2830
)
2931
}

0 commit comments

Comments
 (0)