diff --git a/frontend/public/fonts/peyda/FontLicense.txt b/frontend/public/fonts/peyda/FontLicense.txt new file mode 100644 index 0000000..cc48e1b --- /dev/null +++ b/frontend/public/fonts/peyda/FontLicense.txt @@ -0,0 +1,18 @@ +Peyda fonts are considered a proprietary software. +To gain information about the laws regarding the use of these fonts, please visit www.fontiran.com + +This set of fonts are used in this project under the license: (3YFCCT) + +''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' +In case you use this set of fonts in a software product, write the license code in the specified place and place this file next to the fonts. + +''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' +فونت های پیدا يک نرم افزار مالکيتی محسوب می شود جهت آگاهی از قوانين استفاده از اين فونت‌ها لطفاً به وبسايت +www.fontiran.com +مراجعه نماييد +اين مجموعه فونت تحت اجازه نامه +(3YFCCT) +در اين پروژه استفاده می شود + +''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' +در صورت استفاده از این مجموعه فونت در یک محصول نرم افزاری‌ یا وب‌سایت کد ۶ رقمی لایسنس خود را در محل مشخص شده (3YFCCT) درج کنید و این فایل را در کنار فونت ها قرار دهید. diff --git a/frontend/public/fonts/peyda/Peyda-Black.woff b/frontend/public/fonts/peyda/Peyda-Black.woff new file mode 100644 index 0000000..a13d9e3 Binary files /dev/null and b/frontend/public/fonts/peyda/Peyda-Black.woff differ diff --git a/frontend/public/fonts/peyda/Peyda-Bold.woff b/frontend/public/fonts/peyda/Peyda-Bold.woff new file mode 100644 index 0000000..0634657 Binary files /dev/null and b/frontend/public/fonts/peyda/Peyda-Bold.woff differ diff --git a/frontend/public/fonts/peyda/Peyda-ExtraBold.woff b/frontend/public/fonts/peyda/Peyda-ExtraBold.woff new file mode 100644 index 0000000..648fd5b Binary files /dev/null and b/frontend/public/fonts/peyda/Peyda-ExtraBold.woff differ diff --git a/frontend/public/fonts/peyda/Peyda-ExtraLight.woff b/frontend/public/fonts/peyda/Peyda-ExtraLight.woff new file mode 100644 index 0000000..973f0c8 Binary files /dev/null and b/frontend/public/fonts/peyda/Peyda-ExtraLight.woff differ diff --git a/frontend/public/fonts/peyda/Peyda-Light.woff b/frontend/public/fonts/peyda/Peyda-Light.woff new file mode 100644 index 0000000..a14727b Binary files /dev/null and b/frontend/public/fonts/peyda/Peyda-Light.woff differ diff --git a/frontend/public/fonts/peyda/Peyda-Medium.woff b/frontend/public/fonts/peyda/Peyda-Medium.woff new file mode 100644 index 0000000..d65b949 Binary files /dev/null and b/frontend/public/fonts/peyda/Peyda-Medium.woff differ diff --git a/frontend/public/fonts/peyda/Peyda-Regular.woff b/frontend/public/fonts/peyda/Peyda-Regular.woff new file mode 100644 index 0000000..9f71076 Binary files /dev/null and b/frontend/public/fonts/peyda/Peyda-Regular.woff differ diff --git a/frontend/public/fonts/peyda/Peyda-SemiBold.woff b/frontend/public/fonts/peyda/Peyda-SemiBold.woff new file mode 100644 index 0000000..9ee4c08 Binary files /dev/null and b/frontend/public/fonts/peyda/Peyda-SemiBold.woff differ diff --git a/frontend/public/fonts/peyda/Peyda-Thin.woff b/frontend/public/fonts/peyda/Peyda-Thin.woff new file mode 100644 index 0000000..352b53c Binary files /dev/null and b/frontend/public/fonts/peyda/Peyda-Thin.woff differ diff --git a/frontend/src/app/fonts.ts b/frontend/src/app/fonts.ts new file mode 100644 index 0000000..b513ecc --- /dev/null +++ b/frontend/src/app/fonts.ts @@ -0,0 +1,18 @@ +import localFont from 'next/font/local'; + +// Peyda — Persian/Arabic typeface served locally from public/fonts/peyda. +export const peyda = localFont({ + src: [ + { path: '../../public/fonts/peyda/Peyda-Thin.woff', weight: '100', style: 'normal' }, + { path: '../../public/fonts/peyda/Peyda-ExtraLight.woff', weight: '200', style: 'normal' }, + { path: '../../public/fonts/peyda/Peyda-Light.woff', weight: '300', style: 'normal' }, + { path: '../../public/fonts/peyda/Peyda-Regular.woff', weight: '400', style: 'normal' }, + { path: '../../public/fonts/peyda/Peyda-Medium.woff', weight: '500', style: 'normal' }, + { path: '../../public/fonts/peyda/Peyda-SemiBold.woff', weight: '600', style: 'normal' }, + { path: '../../public/fonts/peyda/Peyda-Bold.woff', weight: '700', style: 'normal' }, + { path: '../../public/fonts/peyda/Peyda-ExtraBold.woff', weight: '800', style: 'normal' }, + { path: '../../public/fonts/peyda/Peyda-Black.woff', weight: '900', style: 'normal' }, + ], + variable: '--font-peyda', + display: 'swap', +}); diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index 1336202..c956d2e 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -1,13 +1,7 @@ import type { Metadata } from 'next'; -import { Vazirmatn } from 'next/font/google'; +import { peyda } from './fonts'; import { LandingPage } from '@/components/landing/LandingPage'; -const vazir = Vazirmatn({ - subsets: ['arabic'], - variable: '--font-vazir', - display: 'swap', -}); - export const metadata: Metadata = { title: 'ابربان | زیرساخت ابری، در کنترل تو', description: @@ -16,7 +10,7 @@ export const metadata: Metadata = { export default function Home() { return ( -
+
); diff --git a/frontend/src/components/auth/AuthShell.tsx b/frontend/src/components/auth/AuthShell.tsx index 7549f52..6ee0a00 100644 --- a/frontend/src/components/auth/AuthShell.tsx +++ b/frontend/src/components/auth/AuthShell.tsx @@ -1,10 +1,8 @@ import type { ReactNode } from 'react'; -import { Vazirmatn } from 'next/font/google'; import Link from 'next/link'; +import { peyda } from '@/app/fonts'; import { Logo } from '@/components/landing/Logo'; -const vazir = Vazirmatn({ subsets: ['arabic'], variable: '--font-vazir', display: 'swap' }); - // Cinematic auth shell that echoes the Abrban landing: a calm blue sky (the // "clear sky" finale), soft drifting clouds, a warm sun glow, the brand logo, // and the form inside a frosted dark-glass panel. Persian / RTL. @@ -28,7 +26,7 @@ export function AuthShell({ return (
{/* Sky atmosphere: warm sun glow, drifting clouds, soft vignette */}
diff --git a/frontend/tailwind.config.ts b/frontend/tailwind.config.ts index 2ae3800..0af2960 100644 --- a/frontend/tailwind.config.ts +++ b/frontend/tailwind.config.ts @@ -9,7 +9,7 @@ const config: Config = { theme: { extend: { fontFamily: { - vazir: ['var(--font-vazir)', 'system-ui', 'sans-serif'], + peyda: ['var(--font-peyda)', 'system-ui', 'sans-serif'], }, colors: { primary: {