From f87d8bdda97f115bee37900d1e24f2cba91d794d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Fri, 23 Jan 2026 16:51:53 +0700 Subject: [PATCH] Improve save button styles --- app/components/icon.gjs | 12 +++++--- app/components/place-details.gjs | 7 +++-- app/services/osm.js | 3 +- app/styles/app.css | 52 ++++++++++++++++++++++++++++---- 4 files changed, 59 insertions(+), 15 deletions(-) diff --git a/app/components/icon.gjs b/app/components/icon.gjs index cf772dd..e0ccc11 100644 --- a/app/components/icon.gjs +++ b/app/components/icon.gjs @@ -1,6 +1,8 @@ import Component from '@glimmer/component'; import { htmlSafe } from '@ember/template'; +import arrowLeft from 'feather-icons/dist/icons/arrow-left.svg?raw'; +import bookmark from 'feather-icons/dist/icons/bookmark.svg?raw'; import clock from 'feather-icons/dist/icons/clock.svg?raw'; import globe from 'feather-icons/dist/icons/globe.svg?raw'; import home from 'feather-icons/dist/icons/home.svg?raw'; @@ -8,22 +10,22 @@ import map from 'feather-icons/dist/icons/map.svg?raw'; import mapPin from 'feather-icons/dist/icons/map-pin.svg?raw'; import navigation from 'feather-icons/dist/icons/navigation.svg?raw'; import phone from 'feather-icons/dist/icons/phone.svg?raw'; -import user from 'feather-icons/dist/icons/user.svg?raw'; import settings from 'feather-icons/dist/icons/settings.svg?raw'; -import arrowLeft from 'feather-icons/dist/icons/arrow-left.svg?raw'; +import user from 'feather-icons/dist/icons/user.svg?raw'; import x from 'feather-icons/dist/icons/x.svg?raw'; const ICONS = { + 'arrow-left': arrowLeft, + bookmark, clock, globe, home, map, - mapPin, + 'map-pin': mapPin, navigation, phone, - user, settings, - 'arrow-left': arrowLeft, + user, x }; diff --git a/app/components/place-details.gjs b/app/components/place-details.gjs index 2240eee..cf0af21 100644 --- a/app/components/place-details.gjs +++ b/app/components/place-details.gjs @@ -130,10 +130,11 @@ export default class PlaceDetails extends Component {
@@ -185,7 +186,7 @@ export default class PlaceDetails extends Component { {{/if}}

- + {{this.visibleGeoLink}} diff --git a/app/services/osm.js b/app/services/osm.js index 7f09866..2f17fcb 100644 --- a/app/services/osm.js +++ b/app/services/osm.js @@ -100,7 +100,8 @@ out center; `.trim(); } - const url = `https://overpass-api.de/api/interpreter?data=${encodeURIComponent( + const url = `https://overpass.bke.ro/api/interpreter?data=${encodeURIComponent( + // const url = `https://overpass-api.de/api/interpreter?data=${encodeURIComponent( query )}`; const res = await this.fetchWithRetry(url); diff --git a/app/styles/app.css b/app/styles/app.css index d1da790..1563461 100644 --- a/app/styles/app.css +++ b/app/styles/app.css @@ -105,23 +105,63 @@ body { .place-details .actions { padding-bottom: 0.3rem; + /* display: flex; */ + /* flex-direction: row; */ + /* gap: 1rem; */ } -.btn-primary { - background: #007bff; - color: white; - border: none; +.btn { padding: 0.75rem 1.5rem; border-radius: 4px; cursor: pointer; - width: 100%; + /* width: 50%; */ font-size: 1rem; + display: flex; + align-items: center; + justify-content: center; + gap: 0.5rem; } -.btn-primary:hover { +.btn-outline { + background: transparent; + color: #333; + border: 1px solid #ccc; +} + +.btn-outline:hover { + border: 1px solid #898989; +} + +.btn-secondary { + color: #333; + border: 1px solid rgba(255, 204, 51, 0.2); + background: rgba(255, 204, 51, 0.2); +} + +.btn-secondary:hover { + border: 1px solid #898989; +} + +.btn-blue { + background: #007bff; + color: white; + border: none; +} + +.btn-blue:hover { background: #0056b3; } +.btn-green { + background: #198754; + color: white; + border: none; +} + +.btn-green:hover { + background: #157347; +} + .places-list { list-style: none; padding: 0;