feat: dynamic UI texts system + admin panel editor + Vazirmatn local font + bug fixes

- Add getText() system for all homepage sections (Header, Hero, FeaturedProducts, SmartAdvisor, VetGallery, Footer)
- Add UITexts admin page in frontend/admin-panel with search, group collapse, per-key save
- Add seed-ui-texts.ts with 102 texts in 9 groups
- Add local VazirmatnVariable.woff2 font, remove CDN + Inter references
- Fix hero image path, productService return type { data, meta }
- Fix ArchivePage pagination + CATEGORIES list + breadcrumbs
- Fix BlogPage/Wiki page links + brightness-0 invert removal
- Fix IngredientWiki search + product links + placeholder
- Fix all getProducts() callers for { data } destructuring
- Fix sitemap.ts, CartDrawer, B2BPortal, CheckoutPage type issues
- Add .gitignore for /fonts/ and /backend/uploads/
This commit is contained in:
parsa aghaei committed 2026-07-11 17:19:55 +03:30
1 parent ab7ed279c8
commit 1a0c98a34e
26 files changed
+653 -132

No files matched your search

+11 -5
View File
@@ -1,10 +1,16 @@
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;300;400;500;700;900&family=Inter:wght@400;500;600;700;800;900&display=swap');
@font-face {
font-family: 'Vazirmatn';
src: url('/fonts/VazirmatnVariable.woff2') format('woff2 supports variations'),
url('/fonts/VazirmatnVariable.woff2') format('woff2-variations');
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
@import "tailwindcss";
@theme {
--font-sans: "Vazirmatn", "Inter", sans-serif;
--font-sans: "Vazirmatn", sans-serif;
--font-vazir: "Vazirmatn", sans-serif;
--font-inter: "Inter", sans-serif;
/* Brand Colors */
--color-canina-blue: #1E4053;
@@ -27,11 +33,11 @@
@layer base {
:root {
font-family: "Vazirmatn", "Inter", sans-serif !important;
font-family: "Vazirmatn", sans-serif !important;
}
html, body, #root {
font-family: "Vazirmatn", "Inter", sans-serif !important;
font-family: "Vazirmatn", sans-serif !important;
@apply bg-medical-gray-50 text-medical-gray-900 antialiased;
font-feature-settings: "ss01", "ss02", "cv01", "cv11";
}
+2 -2
View File
@@ -40,9 +40,9 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
// Dynamic products
try {
const products = await productService.getProducts();
const { data: products } = await productService.getProducts();
const productRoutes: MetadataRoute.Sitemap = products.map((product) => ({
url: `${baseUrl}/shop/${product.id}`,
url: `${baseUrl}/shop/${product.slug || product.id}`,
lastModified: new Date(),
changeFrequency: 'weekly',
priority: 0.7,