"use client"; import React, { useEffect } from "react"; import { FaBook, FaUsers, FaCloudUploadAlt, FaDownload, FaComments, } from "react-icons/fa"; import "./styles/ScrollFeatures.css"; const features = [ { icon: , title: "Explore Resources Effortlessly", desc: "Browse and download study materials without logging in — fast, open, and free.", }, { icon: , title: "Community-Driven Sharing", desc: "Students can contribute their own materials to help others succeed.", }, { icon: , title: "Upload Files Easily", desc: "Upload images, PDFs, or docs with a few clicks and share them with access codes.", }, { icon: , title: "Access Anywhere", desc: "Downloaded files are accessible on any device with the code.", }, { icon: , title: "Feedback & Interaction", desc: "Receive private feedback and engage with contributors to improve content.", }, ]; const ScrollFeatures = () => { useEffect(() => { const items = document.querySelectorAll(".sf-card"); const observer = new IntersectionObserver( entries => { entries.forEach(entry => { if (entry.isIntersecting) { entry.target.classList.add("sf-visible"); } }); }, { threshold: 0.15 } ); items.forEach(item => observer.observe(item)); }, []); return (

Learnix Highlights

Experience a smarter way to access, share, and contribute educational resources.

{features.map((feat, index) => (
{feat.icon}

{feat.title}

{feat.desc}

))}
); }; export default ScrollFeatures;