From f8415a3ca96aaf9e864d4c5ddf9ce663c9d4e46d Mon Sep 17 00:00:00 2001 From: Ikki Date: Wed, 30 Oct 2024 14:26:08 +0530 Subject: [PATCH] button-css-improved --- src/components/ui/MapModal.module.css | 21 ++++++++++++++----- src/components/ui/MapModal.tsx | 29 +++++++++------------------ 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/components/ui/MapModal.module.css b/src/components/ui/MapModal.module.css index fbaf6b2..49b339c 100644 --- a/src/components/ui/MapModal.module.css +++ b/src/components/ui/MapModal.module.css @@ -75,26 +75,37 @@ border: none; border-radius: 4px; cursor: pointer; + background-color: #333; + } + .closeButton:hover{ + background-color: black; } .mapLinks { margin-top: 10px; gap: 2px; + display: flex; + justify-content: space-between; } .mapLinks a { - display: inline-block; - color: #007aff; + white-space: nowrap; + color: white; + background-color: #333; + padding: 8px 16px; + margin: 5px; + justify-self: center; text-align: center; border-radius: 4px; font-weight: 500; } .mapLinks a:hover { - text-decoration: underline; + background-color: black; } .mapLinks .icon { - margin-right: 8px; + position: relative; display: inline-flex; - align-items: center; + margin-right: 2px; + top: 2px; } \ No newline at end of file diff --git a/src/components/ui/MapModal.tsx b/src/components/ui/MapModal.tsx index 0361081..0956c15 100644 --- a/src/components/ui/MapModal.tsx +++ b/src/components/ui/MapModal.tsx @@ -78,32 +78,21 @@ const MapModal: React.FC = ({
- Google Maps + - - - + + + + Google Maps - Apple Maps - - - + + + + Apple Maps