Update content in about blocks to reflect new branding and messaging for various products. Key changes include rephrasing descriptions, updating titles, and modifying statistics to better align with the current offerings and mission statements. This enhances clarity and consistency across the platform.
This commit is contained in:
@@ -60,22 +60,22 @@ interface SettingsProfile4Props {
|
||||
}
|
||||
|
||||
const sections = [
|
||||
{ id: "personal", label: "اطلاعات شخصی", icon: User },
|
||||
{ id: "contact", label: "تماس", icon: Mail },
|
||||
{ id: "social", label: "شبکههای اجتماعی", icon: Link2 },
|
||||
{ id: "preferences", label: "ترجیحات", icon: Settings },
|
||||
{ id: "personal", label: "اطلاعات پایه", icon: User },
|
||||
{ id: "contact", label: "اطلاعات تماس", icon: Mail },
|
||||
{ id: "social", label: "لینکهای حرفهای", icon: Link2 },
|
||||
{ id: "preferences", label: "ترجیحات حساب", icon: Settings },
|
||||
];
|
||||
|
||||
const SettingsProfile4 = ({
|
||||
defaultValues = {
|
||||
name: "الهام میرزایی",
|
||||
username: "alexmorgan",
|
||||
username: "elah.mirzaei",
|
||||
email: "alex.morgan@email.com",
|
||||
avatar:
|
||||
"/block-media/shadcnblocks/block/avatar/avatar8.jpg",
|
||||
bio: "طراح محصول با بیش از ۸ سال تجربه در خلق تجربههای دیجیتال کاربرپسند. علاقهمند به دسترسپذیری و سیستمهای طراحی.",
|
||||
phone: "+1 (555) 123-4567",
|
||||
location: "San Francisco, CA",
|
||||
bio: "مدیر موفقیت مشتری با تمرکز روی ماندگاری حساب و رشد گسترش. علاقهمند به آنبوردینگ و سنجش سلامت مشتری.",
|
||||
phone: "+98 912 345 6789",
|
||||
location: "تهران، ایران",
|
||||
website: "https://alexmorgan.design",
|
||||
twitter: "alexmorgan",
|
||||
linkedin: "alexmorgan",
|
||||
@@ -100,18 +100,19 @@ const SettingsProfile4 = ({
|
||||
: defaultValues.avatar;
|
||||
|
||||
return (
|
||||
<section className={cn("py-16", className)}>
|
||||
<div className="container">
|
||||
<section dir="rtl" lang="fa" className={cn("w-full py-32", className)}>
|
||||
<div className="w-full px-4 sm:px-6 lg:px-8">
|
||||
<div className="flex w-full flex-col gap-8">
|
||||
{/* Header */}
|
||||
<div className="mb-6">
|
||||
<div className="flex items-center gap-2 text-sm text-muted-foreground">
|
||||
<span>تنظیمات</span>
|
||||
<span>تنظیمات حساب</span>
|
||||
<ChevronRight className="size-4 rtl:rotate-180" />
|
||||
<span className="text-foreground">ویرایش پروفایل</span>
|
||||
</div>
|
||||
<h1 className="mt-2 text-xl font-semibold">ویرایش پروفایل</h1>
|
||||
<p className="text-muted-foreground">
|
||||
اطلاعات شخصی و ترجیحات خود را مدیریت کنید
|
||||
اطلاعات پروفایل و ترجیحات حساب خود را مدیریت کنید
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -148,7 +149,7 @@ const SettingsProfile4 = ({
|
||||
<div className="p-6">
|
||||
<h2 className="text-lg font-semibold">اطلاعات شخصی</h2>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
تصویر و جزئیات شخصی خود را بهروزرسانی کنید
|
||||
عکس و مشخصات پایه پروفایل را بهروز کنید
|
||||
</p>
|
||||
|
||||
<div className="mt-6 space-y-6">
|
||||
@@ -164,7 +165,7 @@ const SettingsProfile4 = ({
|
||||
<Avatar className="size-24 shrink-0">
|
||||
<AvatarImage
|
||||
src={avatarPreview}
|
||||
alt={`تصویر ${defaultValues.name}`}
|
||||
alt={`آواتار ${defaultValues.name}`}
|
||||
className="object-cover"
|
||||
/>
|
||||
<AvatarFallback className="text-xl">
|
||||
@@ -183,10 +184,10 @@ const SettingsProfile4 = ({
|
||||
برای بارگذاری کلیک کنید
|
||||
</Button>
|
||||
</FileUploadTrigger>{" "}
|
||||
یا بکشید و رها کنید
|
||||
یا فایل را اینجا رها کنید
|
||||
</p>
|
||||
<p className="text-xs text-muted-foreground">
|
||||
تصویر، تصویر یا تصویر (حداکثر ۲ مگابایت)
|
||||
JPG، PNG یا WEBP (حداکثر ۲ مگابایت)
|
||||
</p>
|
||||
</div>
|
||||
</FileUploadDropzone>
|
||||
@@ -250,15 +251,15 @@ const SettingsProfile4 = ({
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="bio">درباره من</Label>
|
||||
<Label htmlFor="bio">معرفی کوتاه</Label>
|
||||
<Textarea
|
||||
id="bio"
|
||||
rows={4}
|
||||
defaultValue={defaultValues.bio}
|
||||
placeholder="چند جمله درباره خودتان بنویسید"
|
||||
placeholder="نقش و تمرکز کاری خود را بنویسید"
|
||||
/>
|
||||
<p className="text-xs text-muted-foreground">
|
||||
توضیح کوتاه برای پروفایل
|
||||
در پروفایل فضای کاری نمایش داده میشود
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -270,12 +271,12 @@ const SettingsProfile4 = ({
|
||||
<div className="p-6">
|
||||
<h2 className="text-lg font-semibold">اطلاعات تماس</h2>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
دیگران چطور میتوانند با شما تماس بگیرند؟
|
||||
راههای تماس شما در فضای کاری چگونه باشد؟
|
||||
</p>
|
||||
|
||||
<div className="mt-6 space-y-6">
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="email">آدرس ایمیل</Label>
|
||||
<Label htmlFor="email">ایمیل کاری</Label>
|
||||
<div className="relative">
|
||||
<Mail className="absolute top-1/2 start-3 size-4 -translate-y-1/2 text-muted-foreground" />
|
||||
<Input
|
||||
@@ -288,7 +289,7 @@ const SettingsProfile4 = ({
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="phone">شماره تلفن</Label>
|
||||
<Label htmlFor="phone">شماره موبایل</Label>
|
||||
<div className="relative">
|
||||
<Phone className="absolute top-1/2 start-3 size-4 -translate-y-1/2 text-muted-foreground" />
|
||||
<Input
|
||||
@@ -301,7 +302,7 @@ const SettingsProfile4 = ({
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="location">موقعیت</Label>
|
||||
<Label htmlFor="location">موقعیت مکانی</Label>
|
||||
<div className="relative">
|
||||
<MapPin className="absolute top-1/2 start-3 size-4 -translate-y-1/2 text-muted-foreground" />
|
||||
<Input
|
||||
@@ -333,14 +334,14 @@ const SettingsProfile4 = ({
|
||||
{/* Social Links Section */}
|
||||
{activeSection === "social" && (
|
||||
<div className="p-6">
|
||||
<h2 className="text-lg font-semibold">شبکههای اجتماعی</h2>
|
||||
<h2 className="text-lg font-semibold">لینکهای حرفهای</h2>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
حسابهای شبکههای اجتماعی خود را متصل کنید
|
||||
پروفایلهای حرفهای خود را لینک کنید
|
||||
</p>
|
||||
|
||||
<div className="mt-6 space-y-6">
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="twitter">شبکه اجتماعی</Label>
|
||||
<Label htmlFor="twitter">X / توییتر</Label>
|
||||
<div className="flex">
|
||||
<span className="inline-flex items-center rounded-s-md border border-e-0 bg-muted px-3 text-sm text-muted-foreground">
|
||||
x.com/
|
||||
@@ -355,10 +356,10 @@ const SettingsProfile4 = ({
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="linkedin">شبکه حرفهای</Label>
|
||||
<Label htmlFor="linkedin">لینکدین</Label>
|
||||
<div className="flex">
|
||||
<span className="inline-flex items-center rounded-s-md border border-e-0 bg-muted px-3 text-sm text-muted-foreground">
|
||||
شبکه حرفهای.com/in/
|
||||
linkedin.com/in/
|
||||
</span>
|
||||
<Input
|
||||
id="linkedin"
|
||||
@@ -370,10 +371,10 @@ const SettingsProfile4 = ({
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="github">مخزن کد</Label>
|
||||
<Label htmlFor="github">گیتهاب</Label>
|
||||
<div className="flex">
|
||||
<span className="inline-flex items-center rounded-s-md border border-e-0 bg-muted px-3 text-sm text-muted-foreground">
|
||||
مخزن کد.com/
|
||||
github.com/
|
||||
</span>
|
||||
<Input
|
||||
id="github"
|
||||
@@ -390,17 +391,17 @@ const SettingsProfile4 = ({
|
||||
{/* Preferences Section */}
|
||||
{activeSection === "preferences" && (
|
||||
<div className="p-6">
|
||||
<h2 className="text-lg font-semibold">ترجیحات</h2>
|
||||
<h2 className="text-lg font-semibold">ترجیحات حساب</h2>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
تجربه خود را شخصیسازی کنید
|
||||
زبان رابط و منطقه زمانی را شخصیسازی کنید
|
||||
</p>
|
||||
|
||||
<div className="mt-6 space-y-6">
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="language">زبان</Label>
|
||||
<Label htmlFor="language">زبان رابط</Label>
|
||||
<Select defaultValue={defaultValues.language}>
|
||||
<SelectTrigger id="language">
|
||||
<SelectValue placeholder="انتخاب زبان" />
|
||||
<SelectValue placeholder="انتخاب زبان رابط" />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectItem value="fa">فارسی</SelectItem>
|
||||
@@ -421,18 +422,18 @@ const SettingsProfile4 = ({
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectItem value="America/New_York">
|
||||
زمان شرقی (ET)
|
||||
وقت شرقی آمریکا (ET)
|
||||
</SelectItem>
|
||||
<SelectItem value="America/Chicago">
|
||||
زمان مرکزی (CT)
|
||||
وقت مرکزی آمریکا (CT)
|
||||
</SelectItem>
|
||||
<SelectItem value="America/Denver">
|
||||
زمان کوهستان (MT)
|
||||
وقت کوهستانی آمریکا (MT)
|
||||
</SelectItem>
|
||||
<SelectItem value="America/Los_Angeles">
|
||||
زمان اقیانوس آرام (PT)
|
||||
وقت اقیانوس آرام (PT)
|
||||
</SelectItem>
|
||||
<SelectItem value="Europe/London">گرینویچ</SelectItem>
|
||||
<SelectItem value="Europe/London">وقت گرینویچ (GMT)</SelectItem>
|
||||
<SelectItem value="Europe/Paris">
|
||||
وقت اروپای مرکزی (CET)
|
||||
</SelectItem>
|
||||
@@ -455,6 +456,7 @@ const SettingsProfile4 = ({
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user