Use local Madani Arabic font files instead of CDN
All checks were successful
Build frontend / build (push) Successful in 1m2s

- Added @font-face for all 9 weights (Thin to Black)
- Removed CDN links from layout.js
- Font loads locally from public/fonts/
This commit is contained in:
Claw AI
2026-03-28 16:52:31 +00:00
parent f6f0f5a5ea
commit 48523067fc
2 changed files with 74 additions and 10 deletions

View File

@ -1,5 +1,78 @@
@import "tailwindcss"; @import "tailwindcss";
/* ─── Madani Arabic Font ─── */
@font-face {
font-family: 'Madani Arabic';
src: url('/fonts/Madani Arabic Thin.ttf') format('truetype');
font-weight: 100;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Madani Arabic';
src: url('/fonts/Madani Arabic Extra Light.ttf') format('truetype');
font-weight: 200;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Madani Arabic';
src: url('/fonts/Madani Arabic Light.ttf') format('truetype');
font-weight: 300;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Madani Arabic';
src: url('/fonts/Madani-Arabic-Regular.ttf') format('truetype');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Madani Arabic';
src: url('/fonts/Madani Arabic Medium.ttf') format('truetype');
font-weight: 500;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Madani Arabic';
src: url('/fonts/Madani Arabic Semi Bold.ttf') format('truetype');
font-weight: 600;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Madani Arabic';
src: url('/fonts/Madani-Arabic-Bold.ttf') format('truetype');
font-weight: 700;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Madani Arabic';
src: url('/fonts/Madani Arabic Extra Bold.ttf') format('truetype');
font-weight: 800;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Madani Arabic';
src: url('/fonts/Madani Arabic Black.ttf') format('truetype');
font-weight: 900;
font-style: normal;
font-display: swap;
}
:root { :root {
--background: #ede6e6; --background: #ede6e6;
--foreground: #156874; --foreground: #156874;

View File

@ -25,16 +25,7 @@ export const metadata = {
export default function Layout({ children }) { export default function Layout({ children }) {
return ( return (
<html lang="ar" dir="rtl"> <html lang="ar" dir="rtl">
<head> <head />
<link
href="https://db.onlinewebfonts.com/c/5f92c3a05f1a5243b55892723e55b1c3?family=Madani+Arabic+DEMO+Thin"
rel="stylesheet"
/>
<link
href="https://db.onlinewebfonts.com/c/64ab2a7ae4cb5dbb5b5a1e1d2c5e7a3d?family=Madani+Arabic"
rel="stylesheet"
/>
</head>
<body <body
className={`${geistSans.variable} ${geistMono.variable} antialiased`} className={`${geistSans.variable} ${geistMono.variable} antialiased`}
style={{ fontFamily: "'Madani Arabic', 'Noto Sans Arabic', 'Cairo', Arial, sans-serif" }} style={{ fontFamily: "'Madani Arabic', 'Noto Sans Arabic', 'Cairo', Arial, sans-serif" }}