perf(mobile): add cart aria-label, fix heading levels h3, and remove duplicate font network chains
Deploy Canina / deploy (push) Successful in 2m2s
E2E Playwright Tests / Run Full E2E & Security Suites (push) Failing after 8s

This commit is contained in:
parsa aghaei committed 2026-09-02 14:21:11 +03:30
1 parent 98e20269a3
commit 062718fb84
5 files changed
+16 -84

No files matched your search

+6 -75
View File
@@ -1,82 +1,13 @@
@font-face {
font-family: 'Vazirmatn';
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: var(--font-vazir), "Vazirmatn", system-ui, sans-serif;
--font-vazir: var(--font-vazir), "Vazirmatn", sans-serif;
--font-shabnam: "Shabnam", sans-serif;
--font-sahel: "Sahel", sans-serif;
--font-lalezar: var(--font-lalezar), "Lalezar", cursive;
--font-sans: var(--font-vazir), system-ui, -apple-system, sans-serif;
--font-vazir: var(--font-vazir), sans-serif;
--font-shabnam: var(--font-vazir), sans-serif;
--font-sahel: var(--font-vazir), sans-serif;
--font-lalezar: var(--font-lalezar), cursive, sans-serif;
--font-nastaliq: "IranNastaliq", serif;
--font-iranian-sans: "IranianSans", sans-serif;
--font-iranian-sans: var(--font-vazir), sans-serif;
/* Brand Colors */
--color-canina-blue: #1E4053;
@@ -44,9 +44,9 @@ export default function BannerPlacement({
{(banner.title || banner.subtitle) && (
<div className="absolute inset-0 bg-gradient-to-t from-black/80 via-black/30 to-transparent p-6 flex flex-col justify-end text-white text-right pointer-events-none">
{banner.title && (
<h4 className="text-lg sm:text-xl font-black mb-1 leading-tight">
<h3 className="text-lg sm:text-xl font-black mb-1 leading-tight">
{banner.title}
</h4>
</h3>
)}
{banner.subtitle && (
<p className="text-xs sm:text-sm text-medical-gray-200 font-bold opacity-90 line-clamp-2">
@@ -106,9 +106,9 @@ export default function BannerPlacement({
{(banner.title || banner.subtitle) && (
<div className="absolute inset-0 bg-gradient-to-l from-black/80 via-black/40 to-transparent p-6 sm:p-10 flex flex-col justify-center text-white text-right pointer-events-none">
{banner.title && (
<h4 className="text-xl sm:text-3xl font-black mb-2 leading-tight">
<h3 className="text-xl sm:text-3xl font-black mb-2 leading-tight">
{banner.title}
</h4>
</h3>
)}
{banner.subtitle && (
<p className="text-xs sm:text-base text-medical-gray-200 font-bold max-w-xl">
+2 -1
View File
@@ -372,7 +372,8 @@ export default function Header({
<button
data-testid="cart-header-btn"
onClick={onCartOpen}
className="relative px-3.5 py-2 bg-canina-blue text-white rounded-xl text-xs font-black hover:bg-medical-gray-900 transition-all flex items-center gap-2 shadow-sm"
aria-label="سبد خرید"
className="relative px-3.5 py-2 bg-canina-blue text-white rounded-xl text-xs font-black hover:bg-medical-gray-900 transition-all flex items-center gap-2 shadow-sm cursor-pointer"
>
<ShoppingBag className="w-4 h-4" />
<span className="hidden sm:inline">سبد خرید</span>
@@ -135,9 +135,9 @@ export default function TestimonialsSection() {
)}
</div>
<div>
<h4 className="font-extrabold text-sm text-medical-gray-900 leading-tight">
<h3 className="font-extrabold text-sm text-medical-gray-900 leading-tight">
{item.authorName}
</h4>
</h3>
{item.roleTitle && (
<p className="text-xs text-canina-blue font-bold mt-0.5">
{item.roleTitle}
@@ -160,9 +160,9 @@ export default function VetGallery({ testimonials = [] }: { testimonials?: Testi
</div>
)}
</div>
<h4 className="text-lg font-black text-medical-gray-900 mb-2 group-hover:text-canina-blue transition-colors leading-tight font-vazir">
<h3 className="text-lg font-black text-medical-gray-900 mb-2 group-hover:text-canina-blue transition-colors leading-tight font-vazir">
{video.title}
</h4>
</h3>
<div className="flex items-center gap-2 text-medical-gray-500 font-bold text-sm font-vazir">
<ShieldCheck className="w-4 h-4 text-canina-blue" />
{video.doctor || 'کادر علمی کنینا'}