diff --git a/website/components/Feature.tsx b/website/components/Feature.tsx new file mode 100644 index 0000000..5ccbbe6 --- /dev/null +++ b/website/components/Feature.tsx @@ -0,0 +1,39 @@ +"use client"; + +import React, { ForwardRefExoticComponent, RefAttributes } from "react"; +import { motion } from "framer-motion"; +import { LucideProps } from "lucide-react"; + +interface VintLangFeature { + name: string; + description: string; + icon: ForwardRefExoticComponent< + Omit & RefAttributes + >; +} + +interface FeatureProps { + feature: VintLangFeature; + index: number; +} + +const Feature: React.FC = ({ feature, index }) => { + return ( + +
+ +
+
+

{feature.name}

+

{feature.description}

+
+
+ ); +}; + +export default Feature; diff --git a/website/components/features.tsx b/website/components/features.tsx index 60325ec..e704ccf 100644 --- a/website/components/features.tsx +++ b/website/components/features.tsx @@ -1,37 +1,19 @@ -'use client' - -import { motion } from 'motion/react' - +"use client"; +import { features } from "@/lib/utils"; +import Feature from "./Feature"; export default function Features() { return ( -
-

+
+

Why Choose VintLang?

-
+
{features.map((feature, index) => ( - -
-
- {} -
-
-
-

{feature.name}

-

{feature.description}

-
-
+ ))}
- ) + ); } -