feat: add responsive carousel and dark theme to agents gallery section

This commit is contained in:
2025-10-22 18:04:52 +02:00
parent 8ea15271d3
commit 31f5e53a71
6 changed files with 310 additions and 57 deletions

28
src/components/FadeIn.tsx Normal file
View File

@@ -0,0 +1,28 @@
'use client'
import { motion, type Transition } from 'framer-motion'
import React from 'react'
import { useMediaQuery } from '@/hooks/useMediaQuery'
type FadeInProps = {
children: React.ReactNode
transition?: Transition
className?: string
}
export function FadeIn({ children, transition, className }: FadeInProps) {
const isMobile = useMediaQuery('(max-width: 768px)')
return (
<motion.div
className={className}
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: false, margin: isMobile ? '0px 0px -50px 0px' : '0px 0px -100px 0px' }}
transition={transition || { duration: 0.5 }}
>
{children}
</motion.div>
)
}