From bf48b40ffcc83ee1895edd5c1a717e088afbc199 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Mar 2026 00:02:29 +0000 Subject: [PATCH] Update src/app/materials/page.tsx --- src/app/materials/page.tsx | 176 +++++++++++++++++++++++-------------- 1 file changed, 109 insertions(+), 67 deletions(-) diff --git a/src/app/materials/page.tsx b/src/app/materials/page.tsx index e077189..91bd060 100644 --- a/src/app/materials/page.tsx +++ b/src/app/materials/page.tsx @@ -5,9 +5,41 @@ import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/Nav import FeatureCardThree from "@/components/sections/feature/featureCardThree/FeatureCardThree"; import TextSplitAbout from "@/components/sections/about/TextSplitAbout"; import FooterBaseReveal from "@/components/sections/footer/FooterBaseReveal"; -import { Leaf } from "lucide-react"; +import { Leaf, ChevronLeft, ChevronRight } from "lucide-react"; +import { useState } from "react"; export default function MaterialsPage() { + const [currentMaterialIndex, setCurrentMaterialIndex] = useState(0); + + const materials = [ + { + id: "01", title: "Organic Cotton", description: "Grown without synthetic pesticides or fertilizers. Soft, breathable, and perfect for sensitive skin. Requires significant water but supports ethical farming practices.", imageSrc: "http://img.b2bpic.net/free-photo/cotton-plants-still-life_23-2151158812.jpg?_wi=3", imageAlt: "Organic cotton natural fiber"}, + { + id: "02", title: "Merino Wool", description: "Naturally temperature-regulating and antimicrobial. Ideal for active wear and layering. Merino sheep are raised with strong animal welfare standards in sustainable farms.", imageSrc: "http://img.b2bpic.net/free-photo/close-up-sheep-wool-texture_53876-148178.jpg?_wi=3", imageAlt: "Merino wool sustainable fabric"}, + { + id: "03", title: "Hemp", description: "Highly durable with UV protection. Requires minimal water and no pesticides. Strong and long-lasting, hemp is one of the most sustainable fiber crops available.", imageSrc: "http://img.b2bpic.net/free-photo/top-view-cloth_23-2148817494.jpg?_wi=2", imageAlt: "Hemp natural sustainable fabric"}, + { + id: "04", title: "Linen", description: "Lightweight, breathable, and naturally cooling. Made from flax plants, linen requires minimal pesticides. Perfect for warm weather and summer clothing.", imageSrc: "http://img.b2bpic.net/free-photo/burlap-texture_23-2151943859.jpg?_wi=3", imageAlt: "Linen breathable natural material"}, + { + id: "05", title: "Silk", description: "Luxurious, hypoallergenic, and gentle on skin. Produced sustainably through ethical sericulture. Premium natural fiber ideal for special occasions and delicate garments.", imageSrc: "http://img.b2bpic.net/free-photo/pink-fabric-material-texture-with-copy-space_23-2148402305.jpg?_wi=3", imageAlt: "Silk luxury natural fiber"}, + { + id: "06", title: "Bamboo", description: "Fast-growing and renewable without pesticides. Silky-smooth texture similar to silk. One of the most sustainable materials, bamboo regenerates quickly after harvesting.", imageSrc: "http://img.b2bpic.net/free-photo/camouflage-military-background-close-up_23-2149341333.jpg?_wi=4", imageAlt: "Bamboo eco-friendly sustainable fabric"}, + ]; + + const handlePrevious = () => { + setCurrentMaterialIndex((prev) => + prev === 0 ? materials.length - 1 : prev - 1 + ); + }; + + const handleNext = () => { + setCurrentMaterialIndex((prev) => + prev === materials.length - 1 ? 0 : prev + 1 + ); + }; + + const currentMaterial = materials[currentMaterialIndex]; + return ( - +
+
+
+
+ + + Material Education + +
+

Complete Natural Fiber Guide

+

+ Learn about all the sustainable natural fibers we feature, their benefits, applications, and environmental impact. Choose the materials that align with your values. +

+
+
+ + {/* Arrow Navigation */} +
+ {/* Left Arrow */} + + + {/* Material Card Display */} +
+
+
+ {currentMaterial.imageAlt} +
+
+
Material {currentMaterial.id}
+

{currentMaterial.title}

+

{currentMaterial.description}

+
+
+ + {/* Indicator Dots */} +
+ {materials.map((_, index) => ( +
+
+ + {/* Right Arrow */} + +
+
{/* Detailed Information About Natural Fibers */} @@ -101,10 +149,7 @@ export default function MaterialsPage() {
); -} \ No newline at end of file +} -- 2.49.1