From 3efee9fb61c922d6bd647f6393f938632bac5743 Mon Sep 17 00:00:00 2001 From: NCanggoro Date: Sun, 17 Sep 2023 20:39:47 +0700 Subject: [PATCH] fix type and and anchor --- src/components/Header/index.tsx | 2 +- src/pages/BestLocations/index.tsx | 32 +++++++++++++++++-------------- src/pages/BestLocations/style.css | 6 ++++++ 3 files changed, 25 insertions(+), 15 deletions(-) diff --git a/src/components/Header/index.tsx b/src/components/Header/index.tsx index 18caff8..1103426 100644 --- a/src/components/Header/index.tsx +++ b/src/components/Header/index.tsx @@ -50,7 +50,7 @@ function Header() {
{dropdown && - Home + Home } Top Places Discover diff --git a/src/pages/BestLocations/index.tsx b/src/pages/BestLocations/index.tsx index fc75777..34a0894 100644 --- a/src/pages/BestLocations/index.tsx +++ b/src/pages/BestLocations/index.tsx @@ -130,24 +130,28 @@ function BestLocation() {
{topLocations.map(x => ( <> -
+ {/* UNCOMMENT....IF THERES A PURPOSE FOR RIGHT THREE DOTS */} + {/*
... -
-
-

{x.row_number}.{x.name}

+
*/} +
+ {x.row_number}.{x.name}
- + + +
-
{x.address}
+
{x.regency_name}
+
{x.address}
$$$ (IDR 1000-12000)
-
Maps
-
-
-
CRITICS SCORE
-
+
Maps Location
+
+
+
CRITICS SCORE
+

{x.critic_score.Valid ? Number(x.critic_score.Int32) / Number(x.critic_count) * 10 : "N/A"}

@@ -157,9 +161,9 @@ function BestLocation() {

{x.critic_count} reviews

-
-
USERS SCORE
-
+
+
USERS SCORE
+

{x.user_score.Valid ? x.user_score.Int32 : "N/A" }

diff --git a/src/pages/BestLocations/style.css b/src/pages/BestLocations/style.css index fe62f1f..82dbc01 100644 --- a/src/pages/BestLocations/style.css +++ b/src/pages/BestLocations/style.css @@ -17,6 +17,12 @@ z-index: 1; } +.best-locations-title a:hover { + cursor: pointer; + color: white; + border-bottom: 1px solid white; +} + .regions-dropdown:hover .dropdown-content { display: block; }