bokub / stravanity

👟 Easy to beat Strava segments
https://stravanity.boris.sh
MIT License
19 stars 2 forks source link

Introduce activity type so user can switch between Run and Ride. #5

Closed sourcx closed 1 year ago

sourcx commented 1 year ago

Hi,

I took the liberty of customizing this app to fit my cycling needs 🚴🏻‍♂️!

Things in this PR

  1. Introduce activity type so user can switch between Run/Ride
  2. Add developer instructions to README.md
  3. Replace deprecated substr method

By default the type will be Run. When a user chooses activity type it will be set in local storage. The map is also reloaded by clearing the existing drawn routes and then re-calling onMapReady and loadSegments.

I've modified the utils so that we have pace for running and speed for cycling as well.

Let me know what you think of it!

PS: You can test it out on https://stravanity-six.vercel.app.

vercel[bot] commented 1 year ago

Someone is attempting to deploy a commit to a Personal Account owned by @bokub on Vercel.

@bokub first needs to authorize it.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
stravanity ✅ Ready (Inspect) Visit Preview Aug 15, 2023 4:39pm
bokub commented 1 year ago

Wow that's great! Thanks a lot!

I'll need some time to review but I'll try to do it before the end of the week

Thanks again 👍

bokub commented 1 year ago

This is great work ! Thanks a lot for your work :+1:

sourcx commented 1 year ago

Oh that was fast, nice!