Initial import of 1407 block sources under blocks/
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
import { ArrowRight } from "lucide-react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface PromoBanner2Props {
|
||||
message?: string;
|
||||
discount?: string;
|
||||
link?: string;
|
||||
linkText?: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const PromoBanner2 = ({
|
||||
message = "فروش زمستانه",
|
||||
discount = "تا ۵۰٪ تخفیف",
|
||||
link = "#",
|
||||
linkText = "خرید کنید",
|
||||
className,
|
||||
}: PromoBanner2Props) => {
|
||||
return (
|
||||
<div
|
||||
dir="rtl"
|
||||
lang="fa"
|
||||
className={cn("w-full bg-primary text-primary-foreground", className)}
|
||||
>
|
||||
<div className="container py-2.5">
|
||||
<div className="flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-sm">
|
||||
<span className="font-semibold">{message}</span>
|
||||
<span className="hidden sm:inline">·</span>
|
||||
<span>{discount}</span>
|
||||
<a
|
||||
href={link}
|
||||
className="inline-flex items-center gap-1 font-medium underline underline-offset-4 hover:no-underline"
|
||||
>
|
||||
{linkText}
|
||||
<ArrowRight className="size-3 rtl:rotate-180" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { PromoBanner2 };
|
||||
Reference in New Issue
Block a user