Skip to content

Commit

Permalink
[feat] add osm link to page
Browse files Browse the repository at this point in the history
  • Loading branch information
Type-Style committed Feb 13, 2025
1 parent c315ed7 commit fd353d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/client/css/start.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
display: inline-block;
padding-inline: 1em;
border-right: 0.1rem solid;
color: inherit;

&:last-child,
&.noDivider {
Expand Down
2 changes: 1 addition & 1 deletion src/client/pages/Start.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function Start() {
{entries.length > 0 &&
<>
<strong className="info noDivider">GPS:</strong>
<span className="info">{entries.at(-1)!.lat} / {entries.at(-1)!.lon}</span>
<a href={`https://www.openstreetmap.org/?mlat=${entries.at(-1)!.lat}&mlon=${entries.at(-1)!.lon}&zoom=12&marker=${entries.at(-1)!.lat}/${entries.at(-1)!.lon}#map=13/${entries.at(-1)!.lat}/${entries.at(-1)!.lon}`} className="info">{entries.at(-1)!.lat} / {entries.at(-1)!.lon}</a>
<span className="info">{contextObj.isLoggedIn ? timeAgo(entries.at(-1)!.time.created) : entries.at(-1)!.time.createdString}</span>
</>
}
Expand Down

0 comments on commit fd353d6

Please sign in to comment.