Add podcasts and map view

This commit is contained in:
2023-06-18 15:53:49 +10:00
parent 85dd61510e
commit 0cf6d0d540
17 changed files with 2558 additions and 24 deletions

View File

@@ -1,8 +1,14 @@
- context.content_for(:title, "Places | ")
div class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:text-gray-200"
div class="mb-4 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:text-gray-200"
h1 Places
/ div id='map' data-markers="#{JSON.generate(places.map{|p| [p.lon,p.lat]})}" style='width: 400px; height: 300px;'
div class="mb-12 max-w-prose mx-auto text-gray-800 dark:text-gray-200"
nav class="space-x-1 text-sm md:text-sm uppercase md:block"
span
| 🗺️ 
a href="/places/map" View map
div class="mb-12 max-w-prose mx-auto"
- places.each do |post|

View File

@@ -0,0 +1,3 @@
div class="p-2 bg-white absolute bg-opacity-75 z-40 w-screen"
button id="go-back" ← Back
div id='map' style='width: 100%; height: 100%;' data-markers="#{JSON.generate(places.map(&:value))}"