Skip to content

Commit

Permalink
Added logo
Browse files Browse the repository at this point in the history
  • Loading branch information
dhochbaum-dcp committed Jul 5, 2024
1 parent c0384aa commit c207997
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion app/components/atlas.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export function Atlas() {

const isMobile = useMediaQuery("(max-width: 767px)")[0];
const widgetPlacement = isMobile ? "top-right" : "bottom-right";
const widgetStyles = isMobile ? {} : { position: "relative", bottom: "2rem" };
const widgetStyles = isMobile
? {}
: { position: "relative", bottom: "4.5rem" };

const ZoomControls = new ZoomWidget({
id: "zoom",
Expand Down Expand Up @@ -78,6 +80,25 @@ export function Atlas() {
<Map
mapStyle={"https://tiles.planninglabs.nyc/styles/positron/style.json"}
></Map>
<img
style={
isMobile
? {
position: "absolute",
top: "0.5rem",
left: "0.5rem",
height: "2rem",
}
: {
position: "absolute",
bottom: "2.5rem",
right: "1rem",
height: "2rem",
}
}
alt="NYC Planning"
src="https://raw.githubusercontent.com/NYCPlanning/dcp-logo/master/dcp_logo_772.png"
/>
</DeckGL>
);
}

0 comments on commit c207997

Please sign in to comment.