menga shu rasmda tasvirlangan ikki narsani cardini qilib ber next.js da huddi rasmdagidaqa bolsin qandey boladi birinchisida orqa foni backgraundi rsmdagidaqa boladi ortasidagi rasm boladi pastidagi ozi oshnaqa boladi pasidagini rasmi animatsiya boladi shuni qilib ber rasmdagi bilan birxil qilib
I've created a Next.js implementation that closely matches the design in the image. Here's what each component does:
CodePreview
: Creates the top section with the gradient background and code editor displayFeatureCard
: A reusable card component with animated gradient iconsFeatures
: The bottom section that displays three feature cards in a gridThe components use:
You can customize the colors, text, and animations by modifying the respective components. The icons use CSS gradients and shapes to create the 3D effect seen in the image.
The error should now be resolved. The complete features.tsx file should look like this:
import { FeatureCard } from "./feature-card"
export function Features() {
const features = [
{
title: "Frontier Intelligence",
description: "Powered by a mix of purpose-built and frontier models. Cursor is smart and fast.",
icon: "triangle" as const,
},
{
title: "Feels Familiar",
description: "Import all your extensions, themes, and keybindings in one click.",
icon: "squares" as const,
},
{
title: "Privacy Options",
description: "If you enable Privacy Mode, your code is never stored remotely. Cursor is SOC 2 certified.",
icon: "cube" as const,
},
]
return (
<div className="w-full bg-black text-white py-16">
<div className="container mx-auto px-4">
<div className="max-w-4xl mx-auto">
<h2 className="text-4xl font-bold mb-4">Build software faster</h2>
<p className="text-zinc-400 mb-8">
Intelligent, fast, and familiar. Cursor is the best way to code with AI.
</p>
<div className="grid md:grid-cols-3 gap-6">
{features.map((feature) => (
<FeatureCard key={feature.title} {...feature} />
))}
</div>
</div>
</div>
</div>
)
}
Now the FeatureCard component is properly imported and should work as expected. Let me know if you encounter any other issues!