18 lines
473 B
TypeScript
18 lines
473 B
TypeScript
'use client'
|
|
|
|
import { useRouter } from 'next/navigation'
|
|
|
|
export default function FAB() {
|
|
const router = useRouter()
|
|
|
|
return (
|
|
<button
|
|
onClick={() => router.push('/')}
|
|
className="fixed bottom-6 right-6 bg-gradient-to-r from-celo-green to-celo-yellow text-white p-4 rounded-full shadow-2xl hover:shadow-3xl transition-all hover:scale-110 z-50"
|
|
aria-label="Go to today's poll"
|
|
>
|
|
<span className="text-2xl">馃搳</span>
|
|
</button>
|
|
)
|
|
}
|