Skip to content

Commit 98d1fdb

Browse files
authored
Merge pull request BloomTech-Labs#152 from Lambda-School-Labs/popupstyle
Popupstyle
2 parents b577d0e + 4e10a85 commit 98d1fdb

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

client/src/components/LandingPage/LandingPage.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import 'mapbox-gl/dist/mapbox-gl.css';
44
import MapGL, { Marker, Popup, FlyToInterpolator } from 'react-map-gl';
55
import Geocoder from 'react-map-gl-geocoder';
66

7+
78
import {
89
MapWindow,
910
ShowMarker,
@@ -23,6 +24,7 @@ import CompanyPin from '../../images/EMarker.png';
2324
const MAPBOX_TOKEN =
2425
'pk.eyJ1IjoibG5kdWJvc2UiLCJhIjoiY2pvNmF1ZnowMGo3MDNrbmw4ZTVmb2txMyJ9.UpxjYyEOBnCJjw_qE_N8Kw';
2526

27+
2628
class LandingPage extends React.Component {
2729
state = {
2830
viewport: {

client/src/components/LandingPage/MapWindowStyle.js

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,19 @@ export const MapWindow = styled.div`
7575
padding: 0;
7676
border-radius: 20px;
7777
}
78+
79+
.mapboxgl-popup-anchor-bottom {
80+
.mapboxgl-popup-tip {
81+
border-top-color: rgb(35, 34, 48);
82+
}
83+
}
7884
`;
7985

8086
export const ShowMarker = styled.img`
8187
height: 35px;
8288
width: 25px;
8389
cursor: pointer;
90+
8491
8592
&.company {
8693
display: ${props => (props.show.company ? 'block' : 'none')};
@@ -98,7 +105,7 @@ export const CloseX = styled.p`
98105
font-size: 19px;
99106
cursor: pointer;
100107
background-color: rgb(37, 36, 48);
101-
color: white;
108+
color: rgb(255,255,255);
102109
border-radius: 50%;
103110
padding: 3px 6px;
104111
`;
@@ -109,12 +116,14 @@ export const PopupInfo = styled.div`
109116
justify-content: center;
110117
align-items: center;
111118
max-width: 200px;
112-
padding: 8px 10px;
119+
padding: 8px 0px 0px 0px;
113120
114121
.container {
115122
display: flex;
116123
justify-content: center;
117124
align-items: center;
125+
padding: 8px 6px;
126+
118127
}
119128
120129
div {
@@ -140,9 +149,14 @@ export const PopupInfo = styled.div`
140149
}
141150
`;
142151

143-
export const Link = styled.p`
144-
color: rgb(30, 144, 255);
152+
export const Link = styled.div`
153+
color: white;
145154
cursor: pointer;
155+
width: 100%;
156+
background: rgb(35, 34, 48);
157+
border-bottom-right-radius: 20px;
158+
border-bottom-left-radius: 20px;
159+
padding: 5px 0px;
146160
`;
147161

148162
export const PopupImg = styled.div`
@@ -154,6 +168,7 @@ export const PopupImg = styled.div`
154168
background-repeat: no-repeat;
155169
border-radius: 50%;
156170
background-position: top;
171+
margin-right: 5px;
157172
`;
158173

159174
export const LogoImg = styled.img`

0 commit comments

Comments
 (0)