Files
aramejan/app/components/DownloadSection.jsx
T

75 lines
3.0 KiB
React
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { Download, Globe, PlayCircle } from 'lucide-react';
function DownloadSection() {
const downloadOptions = [
{
icon: Download,
title: "کافه بازار",
description: "دانلود برای اندروید",
badge: "پرطرفدار",
gradient: "from-primary-500 to-primary-600",
animation: "animate-slideInLeft delay-100"
},
{
icon: PlayCircle,
title: "مایکت",
description: "دانلود برای اندروید",
gradient: "from-primary-500 to-primary-600",
animation: "animate-fadeInUp delay-200"
},
{
icon: Globe,
title: "وب سایت",
description: "نسخه وب برای تمام دستگاه‌ها",
badge: "جدید",
gradient: "from-primary-500 to-primary-600",
animation: "animate-slideInRight delay-300"
}
];
return (
<div className="relative bg-white rounded-3xl shadow-2xl p-12 mb-20 animate-fadeInUp overflow-hidden">
{/* Background pattern */}
<div className="absolute inset-0 opacity-5">
<div className="absolute inset-0 bg-gradient-to-r from-primary-500 to-primary-600"></div>
</div>
<div className="relative">
<div className="text-center mb-12">
<h2 className="text-3xl md:text-4xl font-bold text-gray-900 mb-4">
همین حالا <span className="text-primary-500">شروع کنید</span>
</h2>
<p className="text-xl text-gray-600 max-w-2xl mx-auto">
آراملند را روی دستگاه مورد علاقهتان نصب کنید
</p>
</div>
<div className="grid md:grid-cols-3 gap-6 max-w-4xl mx-auto">
{downloadOptions.map((option, index) => (
<a
key={index}
href="#"
className={`relative flex flex-col items-center justify-center p-8 bg-gradient-to-br ${option.gradient} rounded-3xl shadow-lg hover:shadow-2xl transition-all duration-300 transform hover:-translate-y-2 text-white group ${option.animation} overflow-hidden`}
>
{/* Shine effect */}
<div className="absolute inset-0 bg-gradient-to-r from-transparent via-white/20 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-1000"></div>
{option.badge && (
<div className="absolute -top-2 -right-2 bg-white text-primary-500 px-3 py-1 rounded-full text-xs font-bold shadow-lg">
{option.badge}
</div>
)}
<div className="bg-white/20 p-4 rounded-2xl mb-4 group-hover:scale-110 transition-transform duration-300">
<option.icon className="w-8 h-8" />
</div>
<h3 className="text-xl font-bold mb-2">{option.title}</h3>
<p className="text-white/90 text-sm">{option.description}</p>
</a>
))}
</div>
</div>
</div>
);
}
export default DownloadSection;