feat: add Persian fonts, fix UI bugs, improve frontend quality
- Add local Persian fonts: Vazirmatn, Sahel, Shabnam, Lalezar, IranNastaliq - Configure @font-face in globals.css with all font weights - Set Vazirmatn as primary font, Lalezar for headings, Sahel for alt text - Fix Hero image loading with crossOrigin and error fallback - Fix SmartAdvisor disabled button contrast (WCAG compliance) - Add visible labels for form inputs in SmartAdvisor step 1 - Fix UserDashboard null safety for walletBalance - Fix announcement bar hydration mismatch (loading state guard) - Fix UserDashboard null checks for profile fields - Improve overall frontend robustness and data-loading guards
This commit is contained in:
1 parent
40d750ad4b
commit
508356b8d3
1007 files changed
+8093
-64
No files matched your search
@@ -25,15 +25,28 @@ export default function ClientLayout({ children }: { children: React.ReactNode }
|
||||
|
||||
const { fetchProfile } = useUserStore();
|
||||
const fetchSettings = useSettingsStore(state => state.fetchSettings);
|
||||
const isInitialized = useSettingsStore(state => state.isInitialized);
|
||||
|
||||
useEffect(() => {
|
||||
fetchSettings();
|
||||
const token = localStorage.getItem('accessToken');
|
||||
if (token) {
|
||||
fetchProfile().catch(e => console.error("Auth init failed:", e));
|
||||
fetchProfile().catch(e => console.error("Auth init failed:", e));
|
||||
}
|
||||
}, [fetchProfile, fetchSettings]);
|
||||
|
||||
if (!isInitialized) {
|
||||
return (
|
||||
<div className="min-h-screen bg-medical-gray-50 flex flex-col items-center justify-center font-sans" dir="rtl">
|
||||
<div className="flex flex-col items-center gap-4 text-center">
|
||||
<div className="w-12 h-12 border-4 border-canina-blue border-t-transparent rounded-full animate-spin" />
|
||||
<h2 className="text-xl font-black text-medical-gray-900 font-lalezar tracking-wide">در حال بارگذاری اطلاعات سایت...</h2>
|
||||
<p className="text-sm text-medical-gray-500 font-shabnam">لطفاً شکیبا باشید</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
// Derived currentView from pathname for Header
|
||||
let currentView = "home";
|
||||
if (pathname?.includes("/shop")) currentView = "shop";
|
||||
|
||||
@@ -1,16 +1,82 @@
|
||||
@font-face {
|
||||
font-family: 'Vazirmatn';
|
||||
src: url('/fonts/VazirmatnVariable.woff2') format('woff2 supports variations'),
|
||||
url('/fonts/VazirmatnVariable.woff2') format('woff2-variations');
|
||||
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: "Vazirmatn", sans-serif;
|
||||
--font-vazir: "Vazirmatn", sans-serif;
|
||||
--font-shabnam: "Shabnam", sans-serif;
|
||||
--font-sahel: "Sahel", sans-serif;
|
||||
--font-lalezar: "Lalezar", cursive;
|
||||
--font-nastaliq: "IranNastaliq", serif;
|
||||
--font-iranian-sans: "IranianSans", sans-serif;
|
||||
|
||||
/* Brand Colors */
|
||||
--color-canina-blue: #1E4053;
|
||||
|
||||
@@ -1,23 +1,25 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect, useState } from "react";
|
||||
import Hero from "../components/Hero";
|
||||
import SmartAdvisor from "../components/SmartAdvisor";
|
||||
import FeaturedProducts from "../components/FeaturedProducts";
|
||||
import VetGallery from "../components/VetGallery";
|
||||
import Link from 'next/link';
|
||||
import { toPersian } from "../lib/utils";
|
||||
import { useSettingsStore } from "../lib/store/settingsStore";
|
||||
import api from "../lib/services/api";
|
||||
|
||||
async function getHomeData() {
|
||||
try {
|
||||
const res = await fetch('http://localhost:4000/api/home', { next: { revalidate: 60 } });
|
||||
if (!res.ok) throw new Error('Failed to fetch home data');
|
||||
return res.json();
|
||||
} catch (error) {
|
||||
console.error('Home data fetch error:', error);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
export default function Home() {
|
||||
const getText = useSettingsStore(state => state.getText);
|
||||
const [data, setData] = useState<any>(null);
|
||||
|
||||
useEffect(() => {
|
||||
api.get('/home')
|
||||
.then(res => setData(res.data))
|
||||
.catch(err => console.error('Home data fetch error:', err));
|
||||
}, []);
|
||||
|
||||
export default async function Home() {
|
||||
const data = await getHomeData();
|
||||
const banners = data?.heroBanners || [];
|
||||
const testimonials = data?.vetTestimonials || [];
|
||||
const rules = data?.smartAdvisorRules || [];
|
||||
@@ -30,16 +32,20 @@ export default async function Home() {
|
||||
<VetGallery testimonials={testimonials} />
|
||||
|
||||
{/* Navigation to Sections */}
|
||||
<section className="py-20 bg-medical-gray-50 border-y border-medical-gray-100">
|
||||
<section className="py-20 bg-medical-gray-50 border-y border-medical-gray-100 font-sans">
|
||||
<div className="max-w-7xl mx-auto px-4 grid md:grid-cols-2 gap-8">
|
||||
<Link
|
||||
href="/shop"
|
||||
className="bg-white p-12 rounded-[3.5rem] border border-medical-gray-200 shadow-sm hover:shadow-2xl hover:-translate-y-2 transition-all cursor-pointer group block"
|
||||
>
|
||||
<h3 className="text-3xl font-black text-medical-gray-900 mb-4 group-hover:text-canina-blue transition-colors italic">فروشگاه تخصصی</h3>
|
||||
<p className="text-medical-gray-500 mb-8 leading-relaxed">دسترسی به تمامی محصولات بر اساس علائم بالینی و نیازهای پت شما.</p>
|
||||
<div className="flex items-center gap-2 text-canina-blue font-black tracking-widest uppercase text-xs">
|
||||
کاتالوگ کامل محصولات
|
||||
<h3 className="text-3xl font-black text-medical-gray-900 mb-4 group-hover:text-canina-blue transition-colors font-lalezar tracking-wide">
|
||||
{getText('nav_card_shop_title', "فروشگاه تخصصی")}
|
||||
</h3>
|
||||
<p className="text-medical-gray-500 mb-8 leading-relaxed font-shabnam">
|
||||
{getText('nav_card_shop_desc', "دسترسی به تمامی محصولات بر اساس علائم بالینی و نیازهای پت شما.")}
|
||||
</p>
|
||||
<div className="flex items-center gap-2 text-canina-blue font-black tracking-widest uppercase text-xs font-vazir">
|
||||
{getText('nav_card_shop_cta', "کاتالوگ کامل محصولات")}
|
||||
<span className="text-lg">←</span>
|
||||
</div>
|
||||
</Link>
|
||||
@@ -47,10 +53,14 @@ export default async function Home() {
|
||||
href="/wiki"
|
||||
className="bg-medical-gray-900 p-12 rounded-[3.5rem] text-white hover:shadow-2xl hover:-translate-y-2 transition-all cursor-pointer group block"
|
||||
>
|
||||
<h3 className="text-3xl font-black mb-4 group-hover:text-canina-blue transition-colors italic">دانشنامه علمی</h3>
|
||||
<p className="text-white/60 mb-8 leading-relaxed">آشنایی با ترکیبات نایاب و استانداردهای دارویی محصولات آلمانی کانینا.</p>
|
||||
<div className="flex items-center gap-2 text-canina-blue font-black tracking-widest uppercase text-xs">
|
||||
مطالعه مقالات تخصصی
|
||||
<h3 className="text-3xl font-black mb-4 group-hover:text-canina-blue transition-colors font-lalezar tracking-wide">
|
||||
{getText('nav_card_wiki_title', "دانشنامه علمی")}
|
||||
</h3>
|
||||
<p className="text-white/60 mb-8 leading-relaxed font-shabnam">
|
||||
{getText('nav_card_wiki_desc', "آشنایی با ترکیبات نایاب و استانداردهای دارویی محصولات آلمانی کانینا.")}
|
||||
</p>
|
||||
<div className="flex items-center gap-2 text-canina-blue font-black tracking-widest uppercase text-xs font-vazir">
|
||||
{getText('nav_card_wiki_cta', "مطالعه مقالات تخصصی")}
|
||||
<span className="text-lg">←</span>
|
||||
</div>
|
||||
</Link>
|
||||
@@ -58,7 +68,7 @@ export default async function Home() {
|
||||
</section>
|
||||
|
||||
{/* About Section Teaser */}
|
||||
<section className="py-24 bg-white overflow-hidden">
|
||||
<section className="py-24 bg-white overflow-hidden font-sans">
|
||||
<div className="max-w-7xl mx-auto px-4 grid lg:grid-cols-2 gap-16 lg:gap-24 items-center">
|
||||
<div className="relative">
|
||||
<div className="absolute -top-10 -right-10 w-40 h-40 bg-canina-blue/5 rounded-full blur-3xl" />
|
||||
@@ -68,28 +78,30 @@ export default async function Home() {
|
||||
className="rounded-[3rem] shadow-2xl relative z-10 grayscale-[10%]"
|
||||
/>
|
||||
<div className="absolute -bottom-6 -left-6 bg-canina-blue text-white p-8 rounded-3xl shadow-xl z-20">
|
||||
<div className="text-4xl font-black mb-1 italic">کیفیت</div>
|
||||
<div className="text-xs uppercase tracking-widest font-bold opacity-80">استانداردهای فوقدارویی</div>
|
||||
<div className="text-4xl font-black mb-1 font-lalezar tracking-wide">{getText('quality', "کیفیت")}</div>
|
||||
<div className="text-xs uppercase tracking-widest font-bold opacity-80 font-vazir">{getText('ultra_pharmaceutical', "استانداردهای فوقدارویی")}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div className="text-canina-blue text-xs font-bold uppercase tracking-[0.2em] mb-4">میراث ما از آلمان</div>
|
||||
<h2 className="text-3xl lg:text-5xl font-black text-medical-gray-900 leading-[1.2] mb-12">
|
||||
چرا برند آلمانی Canina مرجع دامپزشکان است؟
|
||||
<div className="text-canina-blue text-xs font-bold uppercase tracking-[0.2em] mb-4 font-vazir">
|
||||
{getText('about_label', "میراث ما از آلمان")}
|
||||
</div>
|
||||
<h2 className="text-3xl lg:text-5xl font-black text-medical-gray-900 leading-[1.2] mb-12 font-lalezar tracking-wide">
|
||||
{getText('about_title', "چرا برند آلمانی Canina مرجع دامپزشکان است؟")}
|
||||
</h2>
|
||||
<div className="space-y-6">
|
||||
{[
|
||||
{ title: 'مواد اولیه نایاب', desc: 'استفاده از پودر صدف لبسبز اصل نیوزیلند و مواد ارگانیک با گرید دارویی.' },
|
||||
{ title: 'فاقد مواد نگهدارنده', desc: 'تمامی محصولات ۱۰۰٪ طبیعی و فاقد رنگهای مصنوعی و طعمدهندههای شیمیایی هستند.' },
|
||||
{ title: 'تاییدیه اروپا', desc: 'مطابق با سختگیرانهترین استانداردهای ایمنی مواد غذایی و دارویی در اتحادیه اروپا.' }
|
||||
{ title: getText('about_item1_title', "مواد اولیه نایاب"), desc: getText('about_item1_desc', "استفاده از پودر صدف لبسبز اصل نیوزیلند و مواد ارگانیک با گرید دارویی.") },
|
||||
{ title: getText('about_item2_title', "فاقد مواد نگهدارنده"), desc: getText('about_item2_desc', "تمامی محصولات ۱۰۰٪ طبیعی و فاقد رنگهای مصنوعی و طعمدهندههای شیمیایی هستند.") },
|
||||
{ title: getText('about_item3_title', "تاییدیه اروپا"), desc: getText('about_item3_desc', "مطابق با سختگیرانهترین استانداردهای ایمنی مواد غذایی و دارویی در اتحادیه اروپا.") }
|
||||
].map((item, idx) => (
|
||||
<div key={idx} className="flex gap-4 items-center">
|
||||
<div className="w-12 h-12 rounded-2xl bg-medical-gray-50 flex items-center justify-center flex-shrink-0 text-canina-blue font-bold">
|
||||
<div className="w-12 h-12 rounded-2xl bg-medical-gray-50 flex items-center justify-center flex-shrink-0 text-canina-blue font-black font-lalezar text-xl shadow-sm">
|
||||
{toPersian(idx + 1)}
|
||||
</div>
|
||||
<div>
|
||||
<h4 className="text-lg font-bold text-medical-gray-900 mb-1">{item.title}</h4>
|
||||
<p className="text-sm text-medical-gray-500 leading-relaxed font-medium">{item.desc}</p>
|
||||
<h4 className="text-lg font-bold text-medical-gray-900 mb-1 font-shabnam">{item.title}</h4>
|
||||
<p className="text-sm text-medical-gray-500 leading-relaxed font-medium font-sans">{item.desc}</p>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
@@ -99,7 +111,7 @@ export default async function Home() {
|
||||
</section>
|
||||
|
||||
{/* Call to Action */}
|
||||
<section className="bg-canina-blue py-20 relative overflow-hidden">
|
||||
<section className="bg-canina-blue py-20 relative overflow-hidden font-sans">
|
||||
<div className="absolute inset-0 opacity-10">
|
||||
<div className="grid grid-cols-10 h-full w-full">
|
||||
{Array.from({length: 100}).map((_, i) => (
|
||||
@@ -108,22 +120,22 @@ export default async function Home() {
|
||||
</div>
|
||||
</div>
|
||||
<div className="max-w-4xl mx-auto px-4 text-center relative z-10">
|
||||
<h2 className="text-3xl lg:text-5xl font-black text-white mb-8 leading-tight">
|
||||
میخواهید بدانید کدام محصول برای پت شما مناسبتر است؟
|
||||
<h2 className="text-3xl lg:text-5xl font-black text-white mb-8 leading-tight font-lalezar tracking-wide">
|
||||
{getText('cta_title', "میخواهید بدانید کدام محصول برای پت شما مناسبتر است؟")}
|
||||
</h2>
|
||||
<p className="text-white/80 text-lg mb-10 leading-relaxed">
|
||||
تیم متخصص دامپزشکی کانینا ایران آماده پاسخگویی به سوالات شماست.
|
||||
<p className="text-white/80 text-lg mb-10 leading-relaxed font-shabnam">
|
||||
{getText('cta_desc', "تیم متخصص دامپزشکی کانینا ایران آماده پاسخگویی به سوالات شماست.")}
|
||||
</p>
|
||||
<div className="flex flex-wrap justify-center gap-4">
|
||||
<button className="bg-white text-canina-blue px-12 py-5 rounded-full font-black text-xl hover:scale-105 transition-transform shadow-2xl shadow-black/20">
|
||||
دریافت رژیم مکمل رایگان
|
||||
<button className="bg-white text-canina-blue px-12 py-5 rounded-full font-black text-xl hover:scale-105 transition-transform shadow-2xl shadow-black/20 font-shabnam">
|
||||
{getText('cta_btn_primary', "دریافت رژیم مکمل رایگان")}
|
||||
</button>
|
||||
<Link
|
||||
href="/shop"
|
||||
className="bg-transparent border-2 border-white text-white px-12 py-5 rounded-full font-black text-xl hover:bg-white hover:text-canina-blue transition-all"
|
||||
>
|
||||
پروانه دامپزشکی و اصالت کالا
|
||||
</Link>
|
||||
<Link
|
||||
href="/shop"
|
||||
className="bg-transparent border-2 border-white text-white px-12 py-5 rounded-full font-black text-xl hover:bg-white hover:text-canina-blue transition-all font-shabnam"
|
||||
>
|
||||
{getText('cta_btn_secondary', "پروانه دامپزشکی و اصالت کالا")}
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -127,9 +127,9 @@ export default function FeaturedProducts() {
|
||||
<div className="flex flex-col lg:flex-row items-end justify-between mb-16 gap-6">
|
||||
<div className="lg:w-2/3">
|
||||
<div className="text-canina-blue text-xs font-bold uppercase tracking-[0.2em] mb-4 font-vazir">{getText('featured_badge', "بیشترین انتخاب توسط دامپزشکان")}</div>
|
||||
<h2 className="text-3xl lg:text-5xl font-black text-medical-gray-900 leading-[1.2]">
|
||||
<h2 className="text-3xl lg:text-5xl font-black text-medical-gray-900 leading-[1.2] font-lalezar tracking-wide">
|
||||
{getText('featured_title_line1', "محصولات برگزیده و راهکارهای")} <br />
|
||||
<span className="italic text-canina-blue">{getText('featured_title_line2', "درمان تخصصی")}</span>
|
||||
<span className="text-canina-blue">{getText('featured_title_line2', "درمان تخصصی")}</span>
|
||||
</h2>
|
||||
</div>
|
||||
<div className="lg:w-1/3 text-left lg:text-right">
|
||||
|
||||
@@ -29,6 +29,11 @@ export default function HeaderButton({
|
||||
ghost: "text-medical-gray-600 hover:bg-medical-gray-50 hover:text-canina-blue"
|
||||
};
|
||||
|
||||
const [mounted, setMounted] = React.useState(false);
|
||||
React.useEffect(() => {
|
||||
setMounted(true);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<motion.button
|
||||
whileHover={{ y: -2 }}
|
||||
@@ -39,7 +44,7 @@ export default function HeaderButton({
|
||||
{icon && <div className="mb-0.5">{icon}</div>}
|
||||
<div className="whitespace-nowrap">{children}</div>
|
||||
|
||||
{badge !== undefined && badge > 0 && (
|
||||
{mounted && badge !== undefined && badge > 0 && (
|
||||
<motion.div
|
||||
initial={{ scale: 0 }}
|
||||
animate={{ scale: 1 }}
|
||||
|
||||
@@ -93,9 +93,9 @@ export default function Hero({ banners = [] }: { banners?: any[] }) {
|
||||
<span className="text-canina-blue text-xs font-bold uppercase tracking-widest leading-none">{getText('hero_badge', "تخصص دارویی از آلمان")}</span>
|
||||
</div>
|
||||
|
||||
<h1 className="text-4xl lg:text-7xl font-black text-medical-gray-900 leading-[1.1] mb-6">
|
||||
<h1 className="text-4xl lg:text-7xl font-black text-medical-gray-900 leading-[1.2] mb-6 font-lalezar tracking-wide">
|
||||
{titleParts[0]} <br />
|
||||
{titleParts[1] && <span className="text-canina-blue font-vazir">{titleParts[1]}</span>}
|
||||
{titleParts[1] && <span className="text-canina-blue">{titleParts[1]}</span>}
|
||||
</h1>
|
||||
|
||||
<p
|
||||
|
||||
@@ -101,8 +101,8 @@ export default function SmartAdvisor({ onComplete, rules = [] }: SmartAdvisorPro
|
||||
<Sparkle className="w-4 h-4 text-canina-blue" />
|
||||
<span className="text-canina-blue text-xs font-black uppercase tracking-widest font-vazir">{getText('advisor_badge', "تکنولوژی پایش هوشمند")}</span>
|
||||
</motion.div>
|
||||
<h2 className="text-4xl lg:text-5xl font-black text-medical-gray-900 mb-4 font-vazir italic">{getText('advisor_title', "دستیار سلامت کانینا")}</h2>
|
||||
<p className="text-medical-gray-600 font-bold text-lg font-vazir">{getText('advisor_subtitle', "فقط چند قدم تا صدور شناسنامه هوشمند و دریافت پیشنهادات تخصصی")}</p>
|
||||
<h2 className="text-4xl lg:text-5xl font-black text-medical-gray-900 mb-4 font-lalezar tracking-wide">{getText('advisor_title', "دستیار سلامت کانینا")}</h2>
|
||||
<p className="text-medical-gray-600 font-medium text-base font-shabnam">{getText('advisor_subtitle', "فقط چند قدم تا صدور شناسنامه هوشمند و دریافت پیشنهادات تخصصی")}</p>
|
||||
</div>
|
||||
|
||||
<div className="bg-medical-gray-50 rounded-[3.5rem] border border-medical-gray-100 p-8 lg:p-12 shadow-2xl shadow-medical-gray-200/50 relative overflow-hidden">
|
||||
|
||||
@@ -190,7 +190,7 @@ export default function UserDashboard() {
|
||||
<div className="relative z-10">
|
||||
<div className="text-[10px] font-black uppercase tracking-widest text-white mb-2">موجودی کیف پول</div>
|
||||
<div className="flex items-baseline gap-2 flex-row-reverse justify-end">
|
||||
<div className="text-4xl font-black italic">{toPersian(profile.walletBalance.toLocaleString())}</div>
|
||||
<div className="text-4xl font-black italic">{toPersian((profile.walletBalance ?? 0).toLocaleString())}</div>
|
||||
<span className="text-sm not-italic font-bold text-white/80">تومان</span>
|
||||
</div>
|
||||
<button
|
||||
|
||||
@@ -50,7 +50,7 @@ export default function VetGallery({ testimonials = [] }: { testimonials?: any[]
|
||||
<Star className="w-3 h-3" />
|
||||
{getText('videos_badge', "Vet Insights")}
|
||||
</div>
|
||||
<h2 className="text-4xl md:text-5xl font-black text-medical-gray-900 italic leading-tight">
|
||||
<h2 className="text-4xl md:text-5xl font-black text-medical-gray-900 leading-tight font-lalezar tracking-wide">
|
||||
{getText('videos_title', "مشاوره ویدئویی")} <span className="text-canina-blue underline decoration-4 decoration-canina-blue/20 underline-offset-8">{getText('videos_title_highlight', "دوست دامپزشک پت شما")}</span>
|
||||
</h2>
|
||||
<p className="text-lg text-medical-gray-500 font-medium mt-6">
|
||||
|
||||
@@ -13,6 +13,7 @@ interface SettingsStore {
|
||||
texts: Record<string, string>;
|
||||
scientificTerms: Record<string, ScientificTerm>;
|
||||
isLoading: boolean;
|
||||
isInitialized: boolean;
|
||||
fetchSettings: () => Promise<void>;
|
||||
getText: (key: string, fallback: string) => string;
|
||||
}
|
||||
@@ -21,6 +22,7 @@ export const useSettingsStore = create<SettingsStore>()((set, get) => ({
|
||||
texts: {},
|
||||
scientificTerms: {},
|
||||
isLoading: false,
|
||||
isInitialized: false,
|
||||
fetchSettings: async () => {
|
||||
set({ isLoading: true });
|
||||
try {
|
||||
@@ -47,7 +49,7 @@ export const useSettingsStore = create<SettingsStore>()((set, get) => ({
|
||||
} catch (error) {
|
||||
console.error("Failed to fetch settings/ui-texts:", error);
|
||||
} finally {
|
||||
set({ isLoading: false });
|
||||
set({ isLoading: false, isInitialized: true });
|
||||
}
|
||||
},
|
||||
getText: (key, fallback) => {
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
[{000214A0-0000-0000-C000-000000000046}]
|
||||
Prop3=19,2
|
||||
[InternetShortcut]
|
||||
URL=http://www.fontyab.com/
|
||||
IDList=
|
||||
HotKey=0
|
||||
@@ -0,0 +1,6 @@
|
||||
[{000214A0-0000-0000-C000-000000000046}]
|
||||
Prop3=19,2
|
||||
[InternetShortcut]
|
||||
URL=http://www.fontyab.ir/
|
||||
IDList=
|
||||
HotKey=0
|
||||
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
--------------------------------------------------------------------------------------------
|
||||
- DESIGN UTILITIES -------- WWW.FontYab.Com -------- AllRight Reserved By FontYab . Com -
|
||||
--------------------------------------------------------------------------------------------
|
||||
@@ -0,0 +1,6 @@
|
||||
[{000214A0-0000-0000-C000-000000000046}]
|
||||
Prop3=19,2
|
||||
[InternetShortcut]
|
||||
URL=http://www.fontyab.com/
|
||||
IDList=
|
||||
HotKey=0
|
||||
@@ -0,0 +1,6 @@
|
||||
[{000214A0-0000-0000-C000-000000000046}]
|
||||
Prop3=19,2
|
||||
[InternetShortcut]
|
||||
URL=http://www.fontyab.ir/
|
||||
IDList=
|
||||
HotKey=0
|
||||
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
--------------------------------------------------------------------------------------------
|
||||
- DESIGN UTILITIES -------- WWW.FontYab.Com -------- AllRight Reserved By FontYab . Com -
|
||||
--------------------------------------------------------------------------------------------
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1,347 @@
|
||||
تغییرات فونت ساحل
|
||||
=================
|
||||
|
||||
در اینجا شما فهرستی از تغییرات بین هر نسخهی انتشار از فونت ساحل را مشاهده میکنید.
|
||||
|
||||
نسخه ۳.۴.۰
|
||||
---------
|
||||
۲ اسفند ۱۳۹۸
|
||||
|
||||
- بهبود ـم هـ
|
||||
- بهبود دندانهها در معمولی و سبک
|
||||
- اصلاح عرض آ و کرنینگ آن با ک گ قـ
|
||||
- اصلاح عرض ـا ا ر و
|
||||
- بهبود سرکش گاف
|
||||
- بهبود ـعـ در ضخیم و تیتر
|
||||
|
||||
|
||||
نسخه ۳.۳.۱
|
||||
---------
|
||||
۲۵ دی ۱۳۹۸
|
||||
|
||||
- بهبود ع م در معمولی و سبک
|
||||
- بهبود ی
|
||||
|
||||
|
||||
نسخه ۳.۳.۰
|
||||
---------
|
||||
۷ آذر ۱۳۹۸
|
||||
|
||||
- تغییر شکل صفر فارسی از توپر به توخالی
|
||||
- بهبود هـ در تیتر
|
||||
|
||||
|
||||
نسخه ۳.۲.۱
|
||||
---------
|
||||
۱۹ آبان ۱۳۹۸
|
||||
|
||||
- رفع ایراد سرکش «گ» در نسخه سبک (با تشکر از @AbbasAlimi)
|
||||
|
||||
|
||||
نسخه ۳.۲.۰
|
||||
---------
|
||||
۱۸ آبان ۱۳۹۸
|
||||
|
||||
- رفع ایراد در نمایش اعراب (با تشکر از Ali Khatibi)
|
||||
- بهبود ـهـ (با تشکر از @AbbasAlimi)
|
||||
- بهبود ـه
|
||||
- بهبود ـعـ ـط ـطـ ـص ـصـ در نیمهضخیم، ضخیم، تیتر
|
||||
- بهبود ـفـ ـف در تیتر
|
||||
|
||||
|
||||
نسخه ۳.۱.۱
|
||||
---------
|
||||
۱۴ آبان ۱۳۹۸
|
||||
|
||||
- بهبود نقاط
|
||||
- اصلاح نقاط ـیـ در معمولی و سبک
|
||||
- بهبود کاما
|
||||
|
||||
|
||||
نسخه ۳.۱.۰
|
||||
---------
|
||||
۱۰ آبان ۱۳۹۸
|
||||
|
||||
- اصلاح سهنقطه در نسخه متغیر
|
||||
- بهبود عرض ـی
|
||||
- اصلاح نقاط ـثـ در تیتر
|
||||
- اصلاح عرض ثـ تـ در تیتر
|
||||
- بهبود ـفـ
|
||||
- بهبود نقاط نیمهضخیم
|
||||
|
||||
|
||||
نسخه ۳.۰.۱
|
||||
---------
|
||||
۹ آبان ۱۳۹۸
|
||||
|
||||
- اصلاح ـنـ در ضخیم
|
||||
- بهبود نقاط در تیتر
|
||||
- اصلاح ـن در نیمهضخیم و ضخیم و تیتر
|
||||
- اصلاح ـح ـع در تیتر
|
||||
|
||||
|
||||
نسخه ۳.۰.۰
|
||||
---------
|
||||
۸ آبان ۱۳۹۸
|
||||
|
||||
- رفعایراد، اصلاح و بهبود فونت از جمله تایپفیس (حروف، علائم، ارقام، ...)، کرنینگ، اعراب و ...
|
||||
- اضافه شدن وزن سبک
|
||||
- بازطراحی گیومه (با تشکر از @neesti)
|
||||
|
||||
|
||||
نسخه ۲.۰.۲
|
||||
---------
|
||||
۱۵ شهریور ۱۳۹۸
|
||||
|
||||
- رفع ایراد زبان لاتین در قسمت Charsets (با تشکر از معین)
|
||||
|
||||
|
||||
نسخه ۲.۰.۱
|
||||
---------
|
||||
۲۲ مرداد ۱۳۹۸
|
||||
|
||||
- اصلاح عرض ۶
|
||||
|
||||
|
||||
نسخه ۲.۰.۰
|
||||
---------
|
||||
۱۹ مرداد ۱۳۹۸
|
||||
|
||||
- بازسازی کل فونت برای نسخه وریبل (با تشکر از @aminabedi68)
|
||||
- اضافه شدن نسخه جدید بولد (با تشکر از @aminabedi68)
|
||||
- بهبود و بهینهسازی سورس و حذف دادههای اضافی (با تشکر از @aminabedi68)
|
||||
- بهبود برخی گلیفها
|
||||
|
||||
|
||||
نسخه ۱.۰.۰
|
||||
---------
|
||||
۶ تیر ۱۳۹۸
|
||||
|
||||
- بهبود ی ـی لا ـلا
|
||||
- بهبود ر و در تیتر
|
||||
- بهبود نقاط در تیتر
|
||||
- اضافه شدن کرنینگ ر ز ژ با هٔ (با تشکر از @iriman)
|
||||
- اصلاح کرنینگ ر ز ژ با ء
|
||||
- بهبود ـد و ارقام (با تشکر از @EhsanCh)
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۲۴
|
||||
----------------
|
||||
۵ اردیبهشت ۱۳۹۸
|
||||
|
||||
- بهبود ر و در تیتر
|
||||
- بهبود نقطه ز
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۲۳
|
||||
----------------
|
||||
۲۹ اسفند ۱۳۹۷
|
||||
|
||||
- بهبود ـعـ ـع
|
||||
- اصلاح اتصال ـق
|
||||
- اصلاح اعراب ـا در معمولی
|
||||
- اصلاح اعراب ذ در تیتر
|
||||
- اصلاح ٤ ٥ ٦ عربی
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۲۲
|
||||
----------------
|
||||
۰۸ شهریور ۱۳۹۷
|
||||
|
||||
- بهبود ارقام
|
||||
- بهبود ٫ ٬
|
||||
- اضافه شدن کرنینگ «٬ ٫» با ۲ ۳ ۴
|
||||
- بهبود اتصال مـ بـ ـبـ سـ ـسـ ـا در تیتر
|
||||
- اصلاح ت در ضخیم
|
||||
- بهبود م ر و در تیتر
|
||||
- بهبود ی در ضخیم و تیتر
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۲۱
|
||||
----------------
|
||||
۳۱ تیر ۱۳۹۷
|
||||
|
||||
- اصلاح محل اتصال ـک ـگ
|
||||
- اصلاح نقاط ش در ضخیم
|
||||
- اصلاح گـ طـ ـطـ در ضخیم
|
||||
- اصلاح نقطه ظـ ـظـ در تیتر
|
||||
- بهبود جزئی قوس س ص ن ی در تیتر
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۲۰
|
||||
----------------
|
||||
۲۹ خرداد ۱۳۹۷
|
||||
|
||||
- بهبود ل
|
||||
- بهبود پایه ح ع
|
||||
- بهبود ـی ی ر ـر و ـو ک گ ف در تیتر
|
||||
- اصلاح ـح در معمولی
|
||||
- بهبود ـی در معمولی
|
||||
- اصلاح نقاط ـچ در تیتر
|
||||
- اصلاح ـأ و ـآ
|
||||
- اصلاح گلیف الله
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۱۹
|
||||
----------------
|
||||
۲۰ اردیبهشت ۱۳۹۷
|
||||
|
||||
- بهبود ـی ی
|
||||
- بهبود عرض ـنـ ـبـ ـر ـا ـلـ ـل ـلا ـه
|
||||
- بهبود ضخامت پایهٔ و ر در حالت تیتر
|
||||
- بهبود ا ک گ در حالت تیتر
|
||||
- بهبود ارتفاع در حالت معمولی
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۱۸
|
||||
----------------
|
||||
۱۰ اسفند ۱۳۹۶
|
||||
|
||||
- بازطراحی ر و
|
||||
- بهبود دندانهها
|
||||
- بهبود ص ط حـ ـحـ مـ م ـمـ ـلا ـلـ ریال کـ گـ
|
||||
- اصلاح و بهبود ضخامت در حالت ضخیم
|
||||
- بهبود فاصله
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۱۷
|
||||
----------------
|
||||
۴ اسفند ۱۳۹۶
|
||||
|
||||
- اصلاح قوس ن س ص ل در حالت تیتر
|
||||
- بهبود ر و
|
||||
- رفع گردی لبهها در حالت ضخیم
|
||||
- بهبود ضخامت در حالت معمولی
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۱۶
|
||||
----------------
|
||||
۱ اسفند ۱۳۹۶
|
||||
|
||||
- اصلاح ارقام
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۱۵
|
||||
----------------
|
||||
۳۰ بهمن ۱۳۹۶
|
||||
|
||||
- بازنگری در حالت ضخیم
|
||||
- یکسانسازی عرض معمولی و ضخیم
|
||||
- بهبود حروف، لیگچرها، علائم، نقاط و اندازهها
|
||||
- بهبود اعراب
|
||||
- بهبود ارقام
|
||||
- اضافه شدن کرنینگ ارقام و «آ + ک کـ گ گـ» «د ـد ذ ـذ + ک کـ گ گـ»
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۱۴
|
||||
----------------
|
||||
۱۲ بهمن ۱۳۹۶
|
||||
|
||||
- بهبود دندانه بـ ب
|
||||
- بهبود و اصلاح و ـو ر ـر
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۱۳
|
||||
----------------
|
||||
۶ بهمن ۱۳۹۶
|
||||
|
||||
- تغییر ارتفاع، ضخامتها و دندانهها در حالت ضخیم
|
||||
- بهبود نقاط
|
||||
- اصلاح لا ـلا در ضخیم و تیتر
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۱۲
|
||||
----------------
|
||||
۲۷ آذر ۱۳۹۶
|
||||
|
||||
- تصحیح ایراد در اندازه سـ ـسـ حالت تیتر
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۱۱
|
||||
----------------
|
||||
۲۷ آذر ۱۳۹۶
|
||||
|
||||
- بهبود نقاط در هر سه وزن
|
||||
- تغییر متریک فونت برای کاهش ارتفاع
|
||||
- تصحیح شکل ی در حالت تیتر
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۱۰
|
||||
----------------
|
||||
۲۷ آذر ۱۳۹۶
|
||||
|
||||
- بهبود طراحی اغلب گلیفها
|
||||
- بهبود ارتفاع و فاصله
|
||||
- تصحیح اعراب
|
||||
- تغییر متریک فونت
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۹
|
||||
----------------
|
||||
۸ بهمن ۱۳۹۵
|
||||
|
||||
- رفع ایراد ـکـ
|
||||
- رفع ایراد X-Height
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۸
|
||||
----------------
|
||||
۹ آذر ۱۳۹۵
|
||||
|
||||
- رفع ایراد جهت برخی گلیفها
|
||||
- رفع ایراد ورژن
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۷
|
||||
----------------
|
||||
۸ آذر ۱۳۹۵
|
||||
|
||||
- بهبود حروف و علائم به ویژه در ضخیم و تیتر
|
||||
- بهبود ارقام و ریال
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۶
|
||||
----------------
|
||||
۷ شهریور ۱۳۹۵
|
||||
|
||||
- افزایش مجدد و قابل توجه ناحیه همپوشانی گلیف ها
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۵
|
||||
----------------
|
||||
۳۰ مرداد ۱۳۹۵
|
||||
|
||||
- باز طراحی ر و
|
||||
- افزایش ناحیه همپوشانی گلیف ها
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۳
|
||||
----------------
|
||||
۱۳ مرداد ۱۳۹۵
|
||||
|
||||
- اصلاح ـن
|
||||
- اصلاح فاصله
|
||||
- اصلاح اندازه برخی حروف
|
||||
- تغییر ی
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا۲
|
||||
----------------
|
||||
۱۱ مرداد ۱۳۹۵
|
||||
|
||||
- اضافه شدن حروف لاتین به قلم
|
||||
- اصلاح حرف ف ح ـع ر
|
||||
- اصلاح ـئـ ـپـ ــل ـد
|
||||
- اصلاح اندازه طولی علائم
|
||||
- اصلاح ـمـ
|
||||
- جدا شدن نسخه تیتر از خانواده قلم
|
||||
- اصلاح «» (با تشکر از اکبر خرمی)
|
||||
- اضافه شدن ی دم بریده (با تشکر از اکبر خرمی)
|
||||
- اضافه شدن ـہ ـھ (با تشکر از سعید)
|
||||
|
||||
|
||||
نسخه ۱.۰.۰-آلفا
|
||||
---------------
|
||||
۱ مرداد ۱۳۹۵
|
||||
|
||||
- اولین نسخه
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1,97 @@
|
||||
Copyright (c) 2016, Saber Rastikerdar (saber.rastikerdar@gmail.com),
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
|
||||
|
||||
----------------------------------------------
|
||||
Non-Arabic glyphs and data are borrowed from Open Sans font under the Apache License, Version 2.0
|
||||
@@ -0,0 +1,133 @@
|
||||
# Sahel-Font
|
||||
A Persian (Farsi) Font with variable version
|
||||
|
||||

|
||||
|
||||
فونت فارسی ساحل
|
||||
[نمایش فونت](http://rastikerdar.github.io/sahel-font/)
|
||||
[صفحه دریافت (دانلود) بسته فونت شامل فایل های ttf,woff,eot](https://github.com/rastikerdar/sahel-font/releases)
|
||||
با تشکر از برنامه [FontForge](https://fontforge.github.io)
|
||||
نسخه وریبل فونت با نام `Sahel-VF` در بسته فونت موجود میباشد.
|
||||
نسخههای بدون حروف لاتین یا تمام ارقام فارسی درون بسته فشرده موجود میباشد.
|
||||
فرآیند تولید بسته نهایی شامل انواع نسخهها و فرمتها توسط ابزار [fontbuilder](https://github.com/rastikerdar/fontbuilder) انجام میشود.
|
||||
|
||||
## Known problems for variable version
|
||||
- mark placement distortion.
|
||||
|
||||
## To Do (variable)
|
||||
- [x] Adding all 3 Weights as masters to variable version.
|
||||
- [ ] Font testing page
|
||||
- [ ] Latin section is empty. It's better to use an opensource variable font with a wide range.
|
||||
- [ ] Testing font in all supported programs.
|
||||
- [ ] Adding other axes.
|
||||
|
||||
## طریقه استفاده در صفحات وب
|
||||
|
||||
<p dir="rtl">
|
||||
کد زیر را در قسمت style یا فایل css وارد نمایید:
|
||||
</p>
|
||||
|
||||
|
||||
```css
|
||||
@font-face {
|
||||
font-family: Sahel;
|
||||
src: url('Sahel.eot');
|
||||
src: url('Sahel.eot?#iefix') format('embedded-opentype'),
|
||||
url('Sahel.woff2') format('woff2'),
|
||||
url('Sahel.woff') format('woff'),
|
||||
url('Sahel.ttf') format('truetype');
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Sahel;
|
||||
src: url('Sahel-Bold.eot');
|
||||
src: url('Sahel-Bold.eot?#iefix') format('embedded-opentype'),
|
||||
url('Sahel-Bold.woff2') format('woff2'),
|
||||
url('Sahel-Bold.woff') format('woff'),
|
||||
url('Sahel-Bold.ttf') format('truetype');
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Sahel;
|
||||
src: url('Sahel-Light.eot');
|
||||
src: url('Sahel-Light.eot?#iefix') format('embedded-opentype'),
|
||||
url('Sahel-Light.woff2') format('woff2'),
|
||||
url('Sahel-Light.woff') format('woff'),
|
||||
url('Sahel-Light.ttf') format('truetype');
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Sahel;
|
||||
src: url('Sahel-SemiBold.eot');
|
||||
src: url('Sahel-SemiBold.eot?#iefix') format('embedded-opentype'),
|
||||
url('Sahel-SemiBold.woff2') format('woff2'),
|
||||
url('Sahel-SemiBold.woff') format('woff'),
|
||||
url('Sahel-SemiBold.ttf') format('truetype');
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Sahel;
|
||||
src: url('Sahel-Black.eot');
|
||||
src: url('Sahel-Black.eot?#iefix') format('embedded-opentype'),
|
||||
url('Sahel-Black.woff2') format('woff2'),
|
||||
url('Sahel-Black.woff') format('woff'),
|
||||
url('Sahel-Black.ttf') format('truetype');
|
||||
font-weight: 900;
|
||||
}
|
||||
```
|
||||
|
||||
## طریقه استفاده از نسخه متغیر variable
|
||||
|
||||
```css
|
||||
@font-face {
|
||||
font-family: Sahel VF;
|
||||
src: url('Sahel-VF.woff2') format('woff2');
|
||||
}
|
||||
|
||||
.foo {
|
||||
font-family: Sahel VF;
|
||||
font-variation-settings: "wght" 600;
|
||||
}
|
||||
|
||||
.bar {
|
||||
font-family: Sahel VF;
|
||||
font-variation-settings: "wght" 900;
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
## Install
|
||||
|
||||
Grab the [latest release](https://github.com/rastikerdar/sahel-font/releases/latest) file.
|
||||
|
||||
Or [RawGit](https://rawgit.com) CDN:
|
||||
|
||||
```html
|
||||
<link href="https://cdn.rawgit.com/rastikerdar/sahel-font/v[X.Y.Z]/dist/font-face.css" rel="stylesheet" type="text/css" />
|
||||
```
|
||||
|
||||
Replace [X.Y.Z] with the latest version (e.g. 3.4.0) and integrate the font into your CSS:
|
||||
|
||||
```
|
||||
font-family: 'Sahel', sans-serif;
|
||||
```
|
||||
|
||||
#### Arch Linux
|
||||
|
||||
Arch user's could use [sahel-fonts](https://aur.archlinux.org/packages/sahel-fonts/) package from [AUR](https://aur.archlinux.org/) repository to install sahel font. Use your favorite [AUR helper](https://wiki.archlinux.org/index.php/AUR_helpers) like pacaur or yaourt for installing package:
|
||||
|
||||
```shell
|
||||
pacaur -S sahel-fonts
|
||||
```
|
||||
|
||||
## Contributors
|
||||
|
||||
- Amin Abedi [@aminabedi68](https://github.com/aminabedi68)
|
||||
|
||||
## License
|
||||
2016 Saber Rastikerdar ([@rastikerdar](https://github.com/rastikerdar)). See the `LICENSE` file.
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Loaded 100 of 1007 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user