diff --git a/app/globals.css b/app/globals.css index 31d121a..26d6184 100644 --- a/app/globals.css +++ b/app/globals.css @@ -74,6 +74,60 @@ body { background: #fafafa; } + +/* ── توکنهای جریان رزرو ────────────────────────────────────────────────── + * + * جریان رزرو رنگهایش را hard-code داشت، پس در دارکمود دقیقاً همان سفید میماند. + * اینها **رنگ تازه نیستند**: مقادیر روشن عیناً همان چیزی است که تا امروز بود، و + * نسخهٔ تیره از همانها مشتق شده. طراحی تازهای اینجا اختراع نشده. + */ +:root { + --ap-surface: #ffffff; + --ap-surface-2: #fafafa; + --ap-surface-3: #f5f5f5; + --ap-border: #efefef; + --ap-border-2: #d7d7d7; + --ap-heading: #2f2f2f; + --ap-text: #3b3b3b; + --ap-text-2: #616161; + --ap-text-3: #7a7a7a; + --ap-text-4: #9b9b9b; + --ap-muted: #525252; + --ap-primary: #5559ce; + --ap-accent: #f17732; + --ap-accent-strong: #b4541f; + --ap-danger: #e0383b; + --ap-danger-bg: #fdeeee; + --ap-danger-border: #f3c0c1; + --ap-warning: #f4b740; + --ap-warning-bg: #fff8e8; + --ap-warning-text: #8a6100; +} + +[data-theme="dark"] { + --ap-surface: #1b1b20; + --ap-surface-2: #232329; + --ap-surface-3: #2a2a31; + --ap-border: #2e2e36; + --ap-border-2: #3a3a44; + --ap-heading: #f0f0f2; + --ap-text: #e8e8ea; + --ap-text-2: #b8b8be; + --ap-text-3: #98989f; + --ap-text-4: #82828a; + --ap-muted: #c9c9cf; + /* بنفش و نارنجی روی زمینهٔ تیره کمکنتراستاند؛ کمی روشنتر شدهاند نه عوض. */ + --ap-primary: #8a8de6; + --ap-accent: #ff9152; + --ap-accent-strong: #ffb184; + --ap-danger: #ff6b6e; + --ap-danger-bg: #3a1f20; + --ap-danger-border: #5a2e30; + --ap-warning: #ffca5c; + --ap-warning-bg: #33290f; + --ap-warning-text: #ffd98a; +} + /* transition-colors only on theme-sensitive elements, not every DOM node */ .dark, [data-theme] { diff --git a/components/appointment/Container.js b/components/appointment/Container.js index 4ebddb2..912e22a 100644 --- a/components/appointment/Container.js +++ b/components/appointment/Container.js @@ -61,7 +61,7 @@ function Container({ let dateStep; if (bookingLocations.length === 0) { dateStep = ( -
+
نوبتدهی آنلاین برای این پزشک فعال نیست.
); diff --git a/components/appointment/date/Time/index.js b/components/appointment/date/Time/index.js index b11d6a1..5b67844 100644 --- a/components/appointment/date/Time/index.js +++ b/components/appointment/date/Time/index.js @@ -3,7 +3,7 @@ import SelectDatePicker from "./SelectDatePicker"; function Time({ isStep, setDate, disabledDates, clinicUuid }) { return (+
1. انتخاب روز
+
2. انتخاب ساعت
+
«{selectedLocation?.title}» در روز انتخابشده نوبتدهی ندارد. {onChangeLocation && ( diff --git a/components/appointment/detail/Content.js b/components/appointment/detail/Content.js index b4e1297..f4334fd 100644 --- a/components/appointment/detail/Content.js +++ b/components/appointment/detail/Content.js @@ -2,9 +2,9 @@ function Content({ isConfirmed, children, title }) { return (
{title}
+{title}
{isConfirmed && ( -+
تایید شده
)} diff --git a/components/appointment/detail/Form.js b/components/appointment/detail/Form.js index 25bc022..2695ac4 100644 --- a/components/appointment/detail/Form.js +++ b/components/appointment/detail/Form.js @@ -27,8 +27,8 @@ function Form({ changeData, insurance, supplementaryInsurance, data, isForAnothe {isForAnother ? (ثبت اطلاعات
diff --git a/components/appointment/detail/index.js b/components/appointment/detail/index.js index 57e132a..f243b68 100644 --- a/components/appointment/detail/index.js +++ b/components/appointment/detail/index.js @@ -78,10 +78,10 @@ function Detail({ }, []); return ( - // ${typePay === 'success' || typePay === 'failed' ? 'bg-transparent border-transparent md:bg-[#FFF] md:border-[#EFEFEF]' : ''} + // ${typePay === 'success' || typePay === 'failed' ? 'bg-transparent border-transparent md:bg-[var(--ap-surface)] md:border-[var(--ap-border)]' : ''}+
{isForAnother ? "اطلاعات کاربر جدید" : "اطلاعات حساب کاربری"}