diff --git a/app/components/place-details.gjs b/app/components/place-details.gjs index 91d7569..2240eee 100644 --- a/app/components/place-details.gjs +++ b/app/components/place-details.gjs @@ -67,6 +67,11 @@ export default class PlaceDetails extends Component { return this.place.url || this.tags.website || this.tags['contact:website']; } + get websiteDomain() { + const url = new URL(this.website); + return url.hostname; + } + get openingHours() { return this.tags.opening_hours; } @@ -106,6 +111,10 @@ export default class PlaceDetails extends Component { return `https://www.openstreetmap.org/${type}/${id}`; } + get gmapsUrl() { + return `https://www.google.com/maps/search/?api=1&query=${this.name}&query=${this.place.lat},${this.place.lon}`; + } + diff --git a/app/components/places-sidebar.gjs b/app/components/places-sidebar.gjs index a4db86c..029cdb0 100644 --- a/app/components/places-sidebar.gjs +++ b/app/components/places-sidebar.gjs @@ -124,7 +124,6 @@ export default class PlacesSidebar extends Component { class="back-btn" {{on "click" this.clearSelection}} >← -

Details

{{else}}

Nearby Places

{{/if}} diff --git a/app/styles/app.css b/app/styles/app.css index a5c6dae..a22e89c 100644 --- a/app/styles/app.css +++ b/app/styles/app.css @@ -97,6 +97,10 @@ body { .place-details .place-description { } +.place-details .actions { + padding-bottom: 0.3rem; +} + .btn-primary { background: #007bff; color: white; @@ -149,13 +153,16 @@ body { } .meta-info { - margin-top: 1.5rem; - padding-top: 1rem; - border-top: 1px solid #eee; font-size: 0.9rem; text-align: left; } +.meta-info p:first-child { + margin-top: 1.2rem; + padding-top: 1.2rem; + border-top: 1px solid #eee; +} + .meta-info p { margin: 0.75rem 0; line-height: 1.4; @@ -169,18 +176,13 @@ body { .meta-info a { color: #007bff; text-decoration: none; + padding-bottom: 4rem; } .meta-info a:hover { text-decoration: underline; } -.meta-divider { - border: 0; - border-top: 1px dashed #ddd; - margin: 1rem 0; -} - /* Map Search Pulse Animation */ .search-pulse { border-radius: 50%; diff --git a/app/templates/place.gjs b/app/templates/place.gjs index 74113e9..d5a5b13 100644 --- a/app/templates/place.gjs +++ b/app/templates/place.gjs @@ -53,7 +53,7 @@ export default class PlaceTemplate extends Component { geohash: undefined }; } - + return model; }