Update various blocks to enhance RTL support and improve content. Changes include adding new images to the case studies, modifying country options in the checkout, adjusting carousel settings for RTL direction, and refining layout and styling in login and gallery components. Additionally, updated logo references to reflect new branding.

This commit is contained in:
mr.sabri
2026-07-16 05:55:47 +02:00
parent 4fa6b150d1
commit b5882dffa6
7 changed files with 61 additions and 49 deletions
+14 -25
View File
@@ -72,18 +72,16 @@ type CheckoutFormType = z.infer<typeof checkoutFormSchema>;
const COUNTRIES = [
{ value: "AU", label: "استرالیا" },
{ value: "US", label: "ایالات متحده" },
{ value: "GB", label: "بریتانیا" },
{ value: "CA", label: "کانادا" },
{ value: "DE", label: "آلمان" },
{ value: "FR", label: "فرانسه" },
{ value: "JP", label: "ژاپن" },
{ value: "NZ", label: "نیوزیلند" },
{ value: "SG", label: "سنگاپور" },
{ value: "IR", label: "ایران" },
{ value: "TR", label: "ترکیه" },
{ value: "IQ", label: "عراق" },
{ value: "PK", label: "پاکستان" },
{ value: "AFG", label: "افغانستان" },
];
const DEFAULT_ORDER: OrderSummary = {
companyName: "ShadcnBlocks",
companyName: "ریو آی",
items: [
{
id: "pro-subscription",
@@ -100,10 +98,10 @@ const Checkout5 = ({ order = DEFAULT_ORDER, className }: Checkout5Props) => {
defaultValues: {
email: "",
cardNumber: "",
expiryDate: "",
cvc: "",
expiryDate: "ماه/سال",
cvc: "کد امنیتی",
cardholderName: "",
country: "US",
country: "IR",
promoCode: "",
},
});
@@ -197,21 +195,12 @@ const Checkout5 = ({ order = DEFAULT_ORDER, className }: Checkout5Props) => {
<div className="p-8 pt-32 lg:p-12 lg:pt-40 xl:p-16 xl:pt-48">
<div className="mx-auto w-full max-w-md">
<Button
type="button"
className="h-auto w-full bg-foreground py-1 text-background hover:bg-foreground/90"
>
<img
src="/block-media/shadcnblocks/block/logos/apple-pay-white.svg"
alt="پرداخت موبایلی"
className="h-12"
/>
</Button>
<div className="my-6 flex items-center gap-4">
<Separator className="flex-1" />
<span className="text-sm text-muted-foreground">
یا با کارت بانکی پرداخت کنید
با کارت بانکی پرداخت کنید
</span>
<Separator className="flex-1" />
</div>
@@ -478,8 +467,8 @@ const CountryField = () => {
>
کشور صورتحساب
</FieldLabel>
<Select value={field.value} onValueChange={field.onChange}>
<SelectTrigger id="checkout-country" className="w-full">
<Select dir="rtl" value={field.value} onValueChange={field.onChange}>
<SelectTrigger id="checkout-country" className="w-full ">
<SelectValue placeholder="کشور را انتخاب کنید" />
</SelectTrigger>
<SelectContent>