import Head from 'next/head'; import { motion, useScroll, useTransform } from 'framer-motion'; import { useState, useRef, useMemo, useCallback } from 'react'; import { FiDownload, FiRefreshCw, FiZap, FiStar, FiArrowRight, FiPlay, FiGift, FiExternalLink, FiArrowUpRight, } from 'react-icons/fi'; import { HiSparkles, HiLightningBolt, HiPhotograph, HiVideoCamera, HiCode, HiChip, } from 'react-icons/hi'; import { SiYoutube, SiInstagram } from 'react-icons/si'; import { FaSquareXTwitter } from 'react-icons/fa6'; import Navbar from '../components/Navbar'; import Footer from '../components/Footer'; export default function Home() { const [activeConverter, setActiveConverter] = useState('image'); const heroRef = useRef(null); const { scrollYProgress } = useScroll({ target: heroRef, offset: ['start start', 'end start'], }); const yBg = useTransform(scrollYProgress, [0, 1], ['0%', '30%']); const opacity = useTransform(scrollYProgress, [0, 0.7], [1, 0]); // Add smooth scroll handler const handleSmoothScroll = useCallback(href => { if (href.startsWith('#')) { const element = document.querySelector(href); if (element) { const offset = 80; // Account for fixed navbar const elementPosition = element.getBoundingClientRect().top; const offsetPosition = elementPosition + window.pageYOffset - offset; window.scrollTo({ top: offsetPosition, behavior: 'smooth', }); } } }, []); // Memoized data for better performance const features = useMemo( () => [ { icon: FiDownload, title: 'Social Media Downloader', description: 'Download content from YouTube, Twitter, and Instagram with ease', iconColor: 'text-white', status: 'Available', }, { icon: FiRefreshCw, title: 'File Converter', description: 'Convert images, videos, and files to any format you need', iconColor: 'text-white', status: 'Available', }, { icon: HiChip, title: 'AI Code Transformer', description: 'Transform code between programming languages using Gemini AI', iconColor: 'text-white', status: 'Coming Soon', }, ], [], ); const converters = useMemo( () => [ { id: 'image', icon: HiPhotograph, title: 'Image Converter', description: 'Convert to WebP, JPG, PNG, ICO and more', formats: ['WebP', 'JPG', 'PNG', 'ICO', 'SVG', 'BMP'], }, { id: 'video', icon: HiVideoCamera, title: 'Video Converter', description: 'Convert videos to GIF or extract MP3 audio', formats: ['GIF', 'MP3', 'MP4', 'WebM', 'AVI'], }, { id: 'code', icon: HiCode, title: 'Code Transformer', description: 'AI-powered language conversion with Gemini', formats: ['Python', 'JavaScript', 'TypeScript', 'Go', 'Rust'], }, ], [], ); const socialPlatforms = useMemo( () => [ { name: 'YouTube', icon: SiYoutube, color: 'text-[var(--accent)]', status: 'Available', description: 'Download videos and audio from YouTube', }, { name: 'Twitter', icon: FaSquareXTwitter, color: 'text-[var(--accent)]', status: 'Coming Soon', description: 'Save tweets, images, and videos', }, { name: 'Instagram', icon: SiInstagram, color: 'text-[var(--accent)]', status: 'Coming Soon', description: 'Download photos, stories, and reels', }, ], [], ); const stats = useMemo( () => [ { label: 'Downloads', value: '10K+' }, { label: 'Formats', value: '50+' }, { label: 'Users', value: '1K+' }, ], [], ); const aboutFeatures = useMemo( () => [ 'Social media content downloading', 'Multi-format file conversion', 'AI-powered code transformation', 'User-friendly interface', 'Fast and reliable processing', ], [], ); // Simplified animation variants to reduce flickering const containerVariants = { hidden: { opacity: 0 }, visible: { opacity: 1, transition: { staggerChildren: 0.05, delayChildren: 0.1, }, }, }; const itemVariants = { hidden: { opacity: 0, y: 10 }, visible: { opacity: 1, y: 0, transition: { duration: 0.4, ease: [0.25, 0.4, 0.55, 1.4] }, }, }; const handleConverterChange = useCallback(converterId => { setActiveConverter(converterId); }, []); return (
Everything you need to download, convert, and transform your digital content
{feature.description}
Transform your files between different formats with ease
{converter.description}
LumaKit is a comprehensive toolkit designed for creators, developers, and digital enthusiasts. Our platform combines the power of social media downloading, versatile file conversion, and cutting-edge AI technology to streamline your workflow.
Built with modern web technologies and powered by Gemini AI, LumaKit offers an intuitive and efficient solution for all your digital transformation needs.
Gemini AI integration for smart transformations
No subscriptions, no hidden fees
Optimized for speed and performance
Social Media Downloader
Download content from your favorite social media platforms
{platform.name}
{platform.description}