feat: add Persian fonts, fix UI bugs, improve frontend quality

- Add local Persian fonts: Vazirmatn, Sahel, Shabnam, Lalezar, IranNastaliq
- Configure @font-face in globals.css with all font weights
- Set Vazirmatn as primary font, Lalezar for headings, Sahel for alt text
- Fix Hero image loading with crossOrigin and error fallback
- Fix SmartAdvisor disabled button contrast (WCAG compliance)
- Add visible labels for form inputs in SmartAdvisor step 1
- Fix UserDashboard null safety for walletBalance
- Fix announcement bar hydration mismatch (loading state guard)
- Fix UserDashboard null checks for profile fields
- Improve overall frontend robustness and data-loading guards
This commit is contained in:
parsa aghaei committed 2026-07-11 19:48:43 +03:30
1 parent 40d750ad4b
commit 508356b8d3
1007 files changed
+8093 -64

No files matched your search

+68 -2
View File
@@ -1,16 +1,82 @@
@font-face {
font-family: 'Vazirmatn';
src: url('/fonts/VazirmatnVariable.woff2') format('woff2 supports variations'),
url('/fonts/VazirmatnVariable.woff2') format('woff2-variations');
src: url('/fonts/vazirmatn-v33.003/fonts/webfonts/Vazirmatn[wght].woff2') format('woff2-variations'),
url('/fonts/vazirmatn-v33.003/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Shabnam';
src: url('/fonts/shabnam-font-v5.0.1/Shabnam.woff2') format('woff2'),
url('/fonts/shabnam-font-v5.0.1/Shabnam.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Shabnam';
src: url('/fonts/shabnam-font-v5.0.1/Shabnam-Bold.woff2') format('woff2'),
url('/fonts/shabnam-font-v5.0.1/Shabnam-Bold.woff') format('woff');
font-weight: bold;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Shabnam';
src: url('/fonts/shabnam-font-v5.0.1/Shabnam-Medium.woff2') format('woff2'),
url('/fonts/shabnam-font-v5.0.1/Shabnam-Medium.woff') format('woff');
font-weight: 500;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Sahel';
src: url('/fonts/sahel-font-v3.4.0/Sahel-VF.woff2') format('woff2-variations'),
url('/fonts/sahel-font-v3.4.0/Sahel.woff2') format('woff2');
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Lalezar';
src: url('/fonts/Lalezar-Font-fontyab.com_/Lalezar-Font/TTF/Lalezar-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'IranNastaliq';
src: url('/fonts/IranNastaliq/IranNastaliq/IranNastaliq.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'IranianSans';
src: url('/fonts/A-Iranian-Sans/A-Iranian-Sans/Iranian Sans.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@import "tailwindcss";
@theme {
--font-sans: "Vazirmatn", sans-serif;
--font-vazir: "Vazirmatn", sans-serif;
--font-shabnam: "Shabnam", sans-serif;
--font-sahel: "Sahel", sans-serif;
--font-lalezar: "Lalezar", cursive;
--font-nastaliq: "IranNastaliq", serif;
--font-iranian-sans: "IranianSans", sans-serif;
/* Brand Colors */
--color-canina-blue: #1E4053;