Skip to content

Commit

Permalink
add strava branding
Browse files Browse the repository at this point in the history
  • Loading branch information
carderne committed Apr 14, 2024
1 parent d132d97 commit 37acfc3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ map.addControl(
new maplibregl.NavigationControl({
showCompass: false,
}),
"bottom-right",
);

map.on("load", () => {
Expand Down
2 changes: 1 addition & 1 deletion static/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions templates/index.html.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
<body>
<div id="map" class="w-screen h-screen"></div>

<div class="fixed top-2 right-2 w-1/3 md:w-1/6">
<img src="/static/strava-logo.png" alt="Powered by Strava">
</div>

{{#if logged_in}}
<div id="legend" class="text-center fixed top-2 left-2 w-2/5 md:w-1/6 text-3xl bg-white/90 p-4 rounded-md shadow-md grid grid-cols-2 grid-rows-3 gap-2">
<div id="btnRide" class="cursor-pointer aspect-square bg-[#d5b8da] rounded flex justify-center items-center">🚲</div>
Expand All @@ -38,8 +42,8 @@
</div>
<p class="text-center">Login to see your Strava stuff on the map (with hexagons!)</p>
<div class="flex justify-center mt-4">
<a href="/auth" class="bg-gray-700 hover:bg-gray-800 text-white font-bold py-2 px-6 rounded-md shadow-md transition-colors duration-300 inline-block cursor-pointer">
Login
<a href="/auth" class="py-2 px-6 hover:shadow-md inline-block cursor-pointer">
<img src="/static/strava-button.png" alt="Connect with Strava">
</a>
</div>
</div>
Expand All @@ -50,8 +54,8 @@
<div class="bg-white/90 p-8 rounded-lg shadow-lg">
<p>Authentication error, try logging in again.</p>
<div class="flex justify-center mt-4">
<a href="/auth" class="bg-gray-700 hover:bg-gray-800 text-white font-bold py-2 px-6 rounded-md shadow-md transition-colors duration-300 inline-block cursor-pointer">
Login
<a href="/auth" class="py-2 px-6 hover:shadow-md inline-block cursor-pointer">
<img src="/static/strava-button.png" alt="Connect with Strava">
</a>
</div>
</div>
Expand Down

0 comments on commit 37acfc3

Please sign in to comment.