File size: 1,655 Bytes
643fcf4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | import React from "react";
interface Feature {
title: string;
description: string;
icon: React.ReactNode;
}
const FeaturesGrid: React.FC<{ features: Feature[] }> = ({ features }) => (
<div className="flex flex-col items-center gap-4">
<h2 className="text-lg font-semibold text-white mb-0
bg-gradient-to-r from-[#7f7fd5] via-[#43e97b] to-[#f7971e] bg-clip-text text-transparent animate-fade-in"
style={{ WebkitTextStroke: '0.5px #222' }}>
Your YouTube automation studio, powered by AI
</h2>
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4 w-full">
{features.map((feature, idx) => (
<div
key={feature.title}
className="flex items-start gap-3 p-2 bg-gradient-to-br from-[#27274c]/80 via-[#101028]/90 to-[#20184c]/85 rounded-xl hover:shadow-lg
border border-[#38f9d7]/10 h-full relative transition-all"
style={{
boxShadow:
idx % 2 === 0
? "0 2px 16px 0px #ffd20033"
: "0 3px 12px 2px #38f9d722"
}}
>
<span
className="flex-shrink-0 p-2 rounded-lg bg-gradient-to-br from-[#ffd200]/30 to-[#7f7fd5]/30 shadow-sm"
>
{feature.icon}
</span>
<div>
<div className="font-semibold text-white drop-shadow">
{feature.title}
</div>
<div className="text-sm text-[#f3f3f3] opacity-90">
{feature.description}
</div>
</div>
</div>
))}
</div>
</div>
);
export default FeaturesGrid; |