diff --git a/public/satelliet.png b/public/satelliet.png new file mode 100644 index 0000000..11cb309 Binary files /dev/null and b/public/satelliet.png differ diff --git a/src/app/(customer)/location/error/page.tsx b/src/app/(customer)/location/error/page.tsx index 9478550..5346038 100644 --- a/src/app/(customer)/location/error/page.tsx +++ b/src/app/(customer)/location/error/page.tsx @@ -37,16 +37,15 @@ function LocationErrorPageInner() { return (
- - - -
+ + +

موقعیت مکانی شناسایی نشد

-

مشکلی در دریافت موقعیت شما پیش آمد. لطفاً محله خود را دستی انتخاب کنید.

+

مشکلی در دریافت موقعیت شما پیش آمد. لطفاً محله خود را دستی انتخاب کنید.

-
+
- پشتیبانی + پشتیبانی
); diff --git a/src/app/(customer)/location/permission/page.tsx b/src/app/(customer)/location/permission/page.tsx index 7ac9986..fd5e47e 100644 --- a/src/app/(customer)/location/permission/page.tsx +++ b/src/app/(customer)/location/permission/page.tsx @@ -12,8 +12,7 @@ const BENEFITS = [ { icon: Store, text: "کشف بازارچه‌های اطراف" }, ]; -// L01 — winofyfrontenddoc (1).md §4.1. No illustration asset was provided; -// approximated with a simple icon badge rather than the isometric map graphic. +// L01 — winofyfrontenddoc (1).md §4.1. export default function LocationPermissionPage() { return ( @@ -32,7 +31,11 @@ function LocationPermissionPageInner() { setLoading(true); navigator.geolocation.getCurrentPosition( (position) => { - setLocation({ mode: "geo", lat: position.coords.latitude, lng: position.coords.longitude }); + setLocation({ + mode: "geo", + lat: position.coords.latitude, + lng: position.coords.longitude, + }); router.push(next); router.refresh(); }, @@ -45,42 +48,52 @@ function LocationPermissionPageInner() { } return ( -
- - - +
+ {/* eslint-disable-next-line @next/next/no-img-element */} + -
-

بازارچه محلی شما

-

برای نمایش فروشگاه‌های نزدیک، به موقعیت مکانی شما نیاز داریم

-
+
+
+

+ بازارچه محلی شما +

+

+ برای نمایش فروشگاه‌های نزدیک، به موقعیت مکانی شما نیاز داریم +

+
-
- {BENEFITS.map(({ icon: Icon, text }) => ( -
- - {text} -
- ))} -
+
+ {BENEFITS.map(({ icon: Icon, text }) => ( +
+ + {text} +
+ ))} +
-
- - - پشتیبانی +
+ + + پشتیبانی +
); diff --git a/src/components/location/neighborhood-search.tsx b/src/components/location/neighborhood-search.tsx index 9e293d3..dbf5623 100644 --- a/src/components/location/neighborhood-search.tsx +++ b/src/components/location/neighborhood-search.tsx @@ -55,9 +55,9 @@ export function NeighborhoodSearch({ -

انتخاب محله

+

انتخاب محله

- + setQuery(e.target.value)} onFocus={() => setFocused(true)} onBlur={() => setFocused(false)} - placeholder="با نام محله خود را جستجو کنید" - className="h-full flex-1 bg-transparent text-body-medium text-foreground placeholder:text-gray-500 focus:outline-none" + placeholder="شهر یا محله خود را جستجو کنید" + className="h-full flex-1 bg-transparent text-body-medium text-foreground placeholder:text-gray-600 focus:outline-none" autoFocus />
@@ -125,7 +125,7 @@ export function NeighborhoodSearch({ {(state === "idle" || state === "empty") && (
-

محله‌های پیشنهادی

+

محله‌های پیشنهادی

{suggestions.map((n) => ( ))}