Closed sgarrity closed 2 years ago
I'm not sure if this is something nextjs can provide, or needs to be handled by a routing let, but I think the basics should work something like this:
https://healthicons.org/
https://healthicons.org/#syringe
)#syringe
fragment from the URLhttps://healthicons.org/#syringe
URL to a friend, the site will load with the Syringe icon modal openJust using a short-name URL fragment may not be sufficient, since there are filled and outline variations. This could be addressed with something fairly simple, like /#syringe-outline
, or we could get fancier, and define a hackable URL scheme.
For example:
https://healthicons.org/[icon-style]/[icon]
https://healthicons.org/outline/syringe
With this approach, https://healthicons.org/outline/
could pre-populate the style filter requested in https://github.com/resolvetosavelives/healthicons/issues/76
I prefer this URL structure: https://healthicons.org/[style]/[icon]
I don't know why I added an "Easy" tag to this! It was not easy. But it's now done.
Right now, you can't send someone a link to an icon on healthicons.org without getting the SVG source URL directly.
Let's create discrete URLs for each icon that will be visible when the modal for that icon is open (and will open the modal if you navigate to that URL).