File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed
client/src/components/LandingPage Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import 'mapbox-gl/dist/mapbox-gl.css';
44import MapGL , { Marker , Popup } from 'react-map-gl' ;
55import Geocoder from 'react-map-gl-geocoder' ;
66
7+
78import {
89 MapWindow ,
910 ShowMarker ,
@@ -23,6 +24,7 @@ import CompanyPin from '../../images/EMarker.png';
2324const MAPBOX_TOKEN =
2425 'pk.eyJ1IjoibG5kdWJvc2UiLCJhIjoiY2pvNmF1ZnowMGo3MDNrbmw4ZTVmb2txMyJ9.UpxjYyEOBnCJjw_qE_N8Kw' ;
2526
27+
2628class LandingPage extends React . Component {
2729 state = {
2830 viewport : {
Original file line number Diff line number Diff 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: rgba(109, 7, 26, 0.95);
82+ }
83+ }
7884` ;
7985
8086export 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' ) } ;
@@ -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: rgba(109, 7, 26, 0.95);
157+ border-bottom-right-radius: 20px;
158+ border-bottom-left-radius: 20px;
159+ padding: 5px 0px;
146160` ;
147161
148162export 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
159174export const LogoImg = styled . img `
You can’t perform that action at this time.
0 commit comments