import React, { useState, useEffect, useRef } from 'react'; import { motion, useMotionValue, useTransform, useScroll } from 'framer-motion'; import * as THREE from 'three'; import { Canvas, useFrame, useThree } from '@react-three/fiber'; import { OrbitControls } from '@react-three/drei'; // Custom 3D Scene Component with Glass-like Materials function FloatingGlassObjects() { const mesh1 = useRef(); const mesh2 = useRef(); const mesh3 = useRef(); useFrame((state) => { if (mesh1.current) mesh1.current.rotation.y = state.clock.elapsedTime * 0.3; if (mesh2.current) mesh2.current.rotation.x = state.clock.elapsedTime * 0.2; if (mesh3.current) mesh3.current.rotation.z = state.clock.elapsedTime * 0.4; }); return ( <> ); } function Scene() { return ( <> ); } // Mouse Follower Component function MouseFollower() { const mouseX = useMotionValue(0); const mouseY = useMotionValue(0); useEffect(() => { const handleMouseMove = (e) => { mouseX.set(e.clientX); mouseY.set(e.clientY); }; window.addEventListener('mousemove', handleMouseMove); return () => window.removeEventListener('mousemove', handleMouseMove); }, [mouseX, mouseY]); const scale = useTransform(mouseX, [0, window.innerWidth], [1, 1.2]); return ( ); } // Animated Background Component function AnimatedBackground() { return (
{/* Gradient Mesh Background */}
{/* Floating Particles */} {[...Array(20)].map((_, i) => ( ))} {/* Animated Waves */}
); } // Parallax Section Component function ParallaxSection({ children, speed = 0.1 }) { const { scrollYProgress } = useScroll(); const y = useTransform(scrollYProgress, [0, 1], [0, speed * 500]); return ( {children} ); } export default function App() { const [isLoaded, setIsLoaded] = useState(false); useEffect(() => { setIsLoaded(true); }, []); return (
{/* Animated Background */} {/* Mouse Follower */} {/* Hero Section */}

Derby4k

مصمم جرافيك احترافي يدمج بين أحدث ترندات UI/UX والابتكار البصري

{/* Services Section with Glass Cards */}
خدماتي الاحترافية
{[ { title: "تصميم واجهات المستخدم", desc: "واجهات حديثة ومبتكرة تعزز تجربة المستخدم" }, { title: "تصميم تجربة المستخدم", desc: "تحليل وتحسين رحلة المستخدم لزيادة التحويلات" }, { title: "الهوية البصرية", desc: "هويات بصرية فريدة تعبر عن قيم علامتك التجارية" } ].map((service, index) => (
🎨

{service.title}

{service.desc}

))}
{/* Portfolio Section with Glass Cards */}
أحدث أعمالي
{[1, 2, 3, 4, 5, 6].map((item) => (

مشروع {item}

تصميم عصري مع تأثيرات ثلاثية الأبعاد

))}
{/* CTA Section with Glass Effect */}

جاهز لتحويل أفكارك إلى واقع؟

دعنا نعمل معًا لإنشاء تجربة بصرية استثنائية تميز علامتك التجارية

ابدأ مشروعك الآن
{/* Footer */}
); }