Skip to content

Commit

Permalink
Merge pull request #2 from mit-spatial-action/main
Browse files Browse the repository at this point in the history
globe pitch (optionalied), address2
  • Loading branch information
ericrobskyhuntley authored Feb 29, 2024
2 parents 47ca9b7 + 4b175a2 commit 2650b26
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const { navItems } = Astro.props;
<li>{data.email && <a href={"mailto:".concat(data.email)} class="has-text-white">{data.email}</a>}</li>
<li>{data.phone && <a href={"tel:".concat(data.phone)} class="has-text-white">{data.phone}</a>}</li>
<li class="has-text-white">{data.office.address}</li>
<li class="has-text-white">{data.office.address2}</li>
<li class="has-text-white">{data.office.city}, {data.office.state} {data.office.postal}</li>
</ul>
</div>
Expand Down
7 changes: 5 additions & 2 deletions src/components/Globe.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ interface Props {
zoom: number;
mapstyle: string;
bearing: number;
pitch?: number;
accesstoken: string;
interactive?: boolean;
sec?: number;
}
const { lng, lat, zoom, mapstyle, bearing, accesstoken, interactive = false, sec} = Astro.props;
const { lng, lat, zoom, mapstyle, bearing, pitch = 0, accesstoken, interactive = false, sec} = Astro.props;
---

Expand All @@ -22,6 +23,7 @@ const { lng, lat, zoom, mapstyle, bearing, accesstoken, interactive = false, sec
data-zoom={zoom}
data-mapstyle={mapstyle}
data-bearing={bearing}
data-pitch={pitch}
data-accesstoken={accesstoken}
data-interactive={interactive}
data-sec={sec}
Expand All @@ -39,6 +41,7 @@ const { lng, lat, zoom, mapstyle, bearing, accesstoken, interactive = false, sec
center: [this.dataset.lng, this.dataset.lat],
interactive: this.dataset.interactive,
bearing: this.dataset.bearing,
pitch: this.dataset.pitch,
zoom: this.dataset.zoom,
style: this.dataset.mapstyle
})
Expand All @@ -59,7 +62,7 @@ const { lng, lat, zoom, mapstyle, bearing, accesstoken, interactive = false, sec

<style>
#map {
mix-blend-mode: screen;
/* mix-blend-mode: screen; */
height: 100%;
width: 100vw;
position: fixed;
Expand Down
2 changes: 2 additions & 0 deletions src/components/Organization.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ interface Props {
description?: string;
office?: {
address?: string;
address2?: string;
city?: string;
state?: string;
postal?: string;
Expand Down Expand Up @@ -41,6 +42,7 @@ const { org, columns = true} = Astro.props;
<li>{org.email && <a href={"mailto:".concat(org.email)} class="has-text-white">{org.email}</a>}</li>
<li>{org.phone && <a href={"tel:".concat(org.phone)} class="has-text-white">{org.phone}</a>}</li>
<li class="has-text-white">{org.office.address}</li>
<li class="has-text-white">{org.office.address2}</li>
<li class="has-text-white">{org.office.city}, {org.office.state} {org.office.postal}</li>
</ul>
</div>
Expand Down
9 changes: 9 additions & 0 deletions src/sass/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@
}
}

a {
text-decoration-line: underline;
text-decoration-style: dashed;
}

a.button {
text-decoration-line: none;
}

.text-shadow-danger {
text-shadow: $shadow-offset $shadow-offset $danger;
}
Expand Down

0 comments on commit 2650b26

Please sign in to comment.