Spaces:
Runtime error
Runtime error
Download src/components/Features.tsx from Pavankumardns/flora: direct link, hf CLI and curl.
- Browser
- Download file 3.88 kB
-
https://huggingface.co/spaces/Pavankumardns/flora/resolve/main/src/components/Features.tsx
- Command line
-
hf download hf://spaces/Pavankumardns/flora/src/components/Features.tsx
-
curl -L -o Features.tsx https://huggingface.co/spaces/Pavankumardns/flora/resolve/main/src/components/Features.tsx
3.88 kB
| import { Brain, LineChart, Droplets, Sun, Bell, Shield, Bug, Mountain } from "lucide-react"; | |
| import { Card, CardContent } from "@/components/ui/card"; | |
| import { Link } from "react-router-dom"; | |
| import aiGardenImage from "@/assets/ai-garden-feature.png"; | |
| const features = [ | |
| { | |
| icon: Bug, | |
| title: "Plant Health Detection", | |
| description: "AI-powered health diagnosis for 38+ plant species with instant treatment recommendations.", | |
| color: "text-flora-green", | |
| link: "/plant-disease", | |
| }, | |
| { | |
| icon: Mountain, | |
| title: "Soil Analysis", | |
| description: "Identify soil types and get tailored recommendations for optimal plant growth.", | |
| color: "text-flora-orange", | |
| link: "/soil-analysis", | |
| }, | |
| { | |
| icon: LineChart, | |
| title: "Growth Analytics", | |
| description: "Track plant health metrics, growth patterns, and optimize yields with data insights.", | |
| color: "text-flora-blue", | |
| }, | |
| { | |
| icon: Droplets, | |
| title: "Smart Watering", | |
| description: "Automated irrigation scheduling based on weather, soil moisture, and plant needs.", | |
| color: "text-accent", | |
| }, | |
| { | |
| icon: Sun, | |
| title: "Climate Control", | |
| description: "Monitor and optimize temperature, humidity, and light conditions for each plant species.", | |
| color: "text-flora-yellow", | |
| }, | |
| { | |
| icon: Bell, | |
| title: "Smart Alerts", | |
| description: "Get notified about watering schedules, pest threats, and optimal harvest times.", | |
| color: "text-flora-cyan", | |
| }, | |
| ]; | |
| const Features = () => { | |
| return ( | |
| <section className="py-24 bg-gradient-earth"> | |
| <div className="container mx-auto px-4"> | |
| {/* Section header */} | |
| <div className="text-center max-w-3xl mx-auto mb-16 animate-fade-in"> | |
| <h2 className="text-3xl sm:text-4xl md:text-5xl font-bold mb-6"> | |
| Everything You Need to | |
| <span className="text-gradient"> Grow Successfully</span> | |
| </h2> | |
| <p className="text-lg text-muted-foreground"> | |
| From backyard gardens to commercial orchards, Flora AI provides intelligent tools | |
| for every stage of plant growth. | |
| </p> | |
| </div> | |
| {/* Feature grid */} | |
| <div className="grid md:grid-cols-2 lg:grid-cols-3 gap-6 mb-16"> | |
| {features.map((feature, index) => { | |
| const Icon = feature.icon; | |
| const CardWrapper = feature.link ? Link : 'div'; | |
| const cardProps = feature.link ? { to: feature.link } : {}; | |
| return ( | |
| <CardWrapper key={index} {...cardProps}> | |
| <Card | |
| className="hover-lift border-border bg-card shadow-soft group h-full cursor-pointer" | |
| style={{ animationDelay: `${index * 0.1}s` }} | |
| > | |
| <CardContent className="p-6"> | |
| <div className={`w-12 h-12 rounded-lg bg-secondary flex items-center justify-center mb-4 group-hover:scale-110 transition-transform ${feature.color}`}> | |
| <Icon className="w-6 h-6" /> | |
| </div> | |
| <h3 className="text-xl font-semibold mb-2">{feature.title}</h3> | |
| <p className="text-muted-foreground">{feature.description}</p> | |
| </CardContent> | |
| </Card> | |
| </CardWrapper> | |
| ); | |
| })} | |
| </div> | |
| {/* Feature showcase image */} | |
| <div className="max-w-4xl mx-auto animate-fade-in"> | |
| <Card className="overflow-hidden border-border shadow-nature"> | |
| <CardContent className="p-0"> | |
| <img | |
| src={aiGardenImage} | |
| alt="Smart garden with IoT sensors and automated systems" | |
| className="w-full h-auto" | |
| /> | |
| </CardContent> | |
| </Card> | |
| </div> | |
| </div> | |
| </section> | |
| ); | |
| }; | |
| export default Features; | |