forked from emre/www_projectmycelium_com
feat: enhance homepage with smooth scroll navigation
- Added scroll-to-slider functionality when clicking "Get Started" button - Modified AnimatedSection to support ref forwarding for scroll targeting - Updated HomeAurora component to accept click handler prop - Refined homepage hero text and description for clearer value proposition - Changed button from link to click handler for better user interaction
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { motion } from 'framer-motion'
|
||||
import { forwardRef } from 'react'
|
||||
|
||||
type AnimatedSectionProps = {
|
||||
children: React.ReactNode
|
||||
@@ -6,9 +7,11 @@ type AnimatedSectionProps = {
|
||||
className?: string
|
||||
}
|
||||
|
||||
export function AnimatedSection({ children, id, className }: AnimatedSectionProps) {
|
||||
export const AnimatedSection = forwardRef<HTMLElement, AnimatedSectionProps>(
|
||||
({ children, id, className }, ref) => {
|
||||
return (
|
||||
<motion.section
|
||||
<motion.section
|
||||
ref={ref}
|
||||
id={id}
|
||||
className={className}
|
||||
initial={{ opacity: 0, y: 40 }}
|
||||
@@ -19,4 +22,5 @@ export function AnimatedSection({ children, id, className }: AnimatedSectionProp
|
||||
{children}
|
||||
</motion.section>
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user