forked from emre/www_projectmycelium_com
feat: implement floating navbar with aurora background and updated header styling
This commit is contained in:
22
src/components/ScrollDownArrow.tsx
Normal file
22
src/components/ScrollDownArrow.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
'use client'
|
||||
|
||||
import { ChevronDown } from 'lucide-react'
|
||||
|
||||
export function ScrollDownArrow() {
|
||||
const scrollToNextSection = () => {
|
||||
const nextSection = document.querySelector('#next-section') // Assuming the next section has this id
|
||||
if (nextSection) {
|
||||
nextSection.scrollIntoView({ behavior: 'smooth' })
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<button
|
||||
onClick={scrollToNextSection}
|
||||
className="animate-bounce text-gray-500 hover:text-gray-700"
|
||||
aria-label="Scroll to next section"
|
||||
>
|
||||
<ChevronDown size={32} />
|
||||
</button>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user