canina/frontend/application/components/TickerBanner.tsx
parsa aghaei 8d1b786a24
All checks were successful
Deploy Canina / deploy (push) Successful in 1m50s
chore(brand): rename all Persian occurrences of کانینا to کنینا across the project
2026-08-16 16:40:08 +03:30

36 lines
1.6 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use client";
import React from "react";
import { useSettingsStore } from "../lib/store/settingsStore";
import { Sparkles } from "lucide-react";
export default function TickerBanner() {
const getText = useSettingsStore((state) => state.getText);
const announcementText = getText(
"shipping_notice",
"ارسال رایگان برای سفارش‌های بالای ۱۵۰ هزار تومان — گارانتی اصالت کنینا آلمان — مشاوره تخصصی مکمل‌های دارویی سگ و گربه با کادر دامپزشکان مجرب"
);
return (
<div className="bg-canina-gold text-canina-dark text-xs font-black py-1.5 overflow-hidden relative shadow-xs border-b border-amber-300/40 select-none">
<div className="flex items-center gap-2 whitespace-nowrap animate-marquee">
<span className="flex items-center gap-2 px-4">
<Sparkles className="w-3.5 h-3.5 text-canina-dark animate-pulse inline" />
{announcementText}
</span>
<span className="flex items-center gap-2 px-4">
<Sparkles className="w-3.5 h-3.5 text-canina-dark animate-pulse inline" />
{announcementText}
</span>
<span className="flex items-center gap-2 px-4">
<Sparkles className="w-3.5 h-3.5 text-canina-dark animate-pulse inline" />
{announcementText}
</span>
<span className="flex items-center gap-2 px-4">
<Sparkles className="w-3.5 h-3.5 text-canina-dark animate-pulse inline" />
{announcementText}
</span>
</div>
</div>
);
}