fix: bug font

This commit is contained in:
hamid zarghami
2026-07-13 16:27:24 +03:30
parent 51e9f598c1
commit 4b8031b9e5
12 changed files with 57 additions and 15 deletions
+47 -3
View File
@@ -1,6 +1,50 @@
@import "tailwindcss";
body {
background-color: #fff;
color: #000;
html {
direction: rtl;
max-width: 100%;
}
body {
font-family: IRANYekan;
margin: 0;
padding: 0;
width: 100%;
direction: rtl;
background: #fff;
font-feature-settings: "lnum"; /* اطمینان از نمایش اعداد انگلیسی */
}
html,
body {
height: 100%;
margin: 0;
}
html,
body,
#root {
min-height: 100% !important;
height: 100%;
}
* {
outline: none;
}
input::placeholder,
textarea::placeholder {
color: #888888;
}
input.place-black::placeholder {
color: black;
}
textarea.place-black::placeholder {
color: black;
}
@theme {
--color-primary: black;
--color-description: #888888;
--spacing-maxWidth: 1100px;
}
+1 -1
View File
@@ -1,5 +1,5 @@
const Home = () => {
return <div>Home</div>;
return <div>صفحه اصلی</div>;
};
export default Home;
+2 -4
View File
@@ -1,3 +1,4 @@
import "@/assets/iranyekan/fonts.css";
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
@@ -23,10 +24,7 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
<html
lang="en"
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
>
<html lang="en" className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}>
<body className="min-h-full flex flex-col">{children}</body>
</html>
);
@@ -1,6 +1,6 @@
@font-face {
font-family: "IRANYekan";
src: url("./Qs_Iranyekan%20thin.ttf") format("truetype");
src: url("./Qs_Iranyekan thin.ttf") format("truetype");
font-weight: 100;
font-style: normal;
font-display: swap;
@@ -8,7 +8,7 @@
@font-face {
font-family: "IRANYekan";
src: url("./Qs_Iranyekan%20light.ttf") format("truetype");
src: url("./Qs_Iranyekan light.ttf") format("truetype");
font-weight: 300;
font-style: normal;
font-display: swap;
@@ -24,7 +24,7 @@
@font-face {
font-family: "IRANYekan";
src: url("./Qs_Iranyekan%20medium.ttf") format("truetype");
src: url("./Qs_Iranyekan medium.ttf") format("truetype");
font-weight: 500;
font-style: normal;
font-display: swap;
@@ -32,7 +32,7 @@
@font-face {
font-family: "IRANYekan";
src: url("./Qs_Iranyekan%20bold.ttf") format("truetype");
src: url("./Qs_Iranyekan bold.ttf") format("truetype");
font-weight: 700;
font-style: normal;
font-display: swap;
@@ -40,7 +40,7 @@
@font-face {
font-family: "IRANYekan";
src: url("./Qs_Iranyekan%20extrabold.ttf") format("truetype");
src: url("./Qs_Iranyekan extrabold.ttf") format("truetype");
font-weight: 800;
font-style: normal;
font-display: swap;
@@ -48,7 +48,7 @@
@font-face {
font-family: "IRANYekan";
src: url("./Qs_Iranyekan%20black.ttf") format("truetype");
src: url("./Qs_Iranyekan black.ttf") format("truetype");
font-weight: 900;
font-style: normal;
font-display: swap;
@@ -56,7 +56,7 @@
@font-face {
font-family: "IRANYekan";
src: url("./Qs_Iranyekan%20extrablack.ttf") format("truetype");
src: url("./Qs_Iranyekan extrablack.ttf") format("truetype");
font-weight: 950;
font-style: normal;
font-display: swap;