Skip to content

Commit

Permalink
chore(website): disable vfx temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermerodz committed Feb 19, 2024
1 parent 8cbe06e commit d5071d9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions website/src/app/(pages)/(home)/_components/showcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import dynamic from 'next/dynamic'
import { OTPInput, REGEXP_ONLY_DIGITS } from 'input-otp'
import { cn } from '@/lib/utils'

const DynamicConfetti = dynamic(() =>
import('./confetti').then(m => m.Confetti),
)
// const DynamicConfetti = dynamic(() =>
// import('./confetti').then(m => m.Confetti),
// )

export function Showcase({ className, ...props }: { className?: string }) {
const [value, setValue] = React.useState('12')
Expand All @@ -23,7 +23,7 @@ export function Showcase({ className, ...props }: { className?: string }) {
React.useEffect(() => {
const t1 = setTimeout(() => {
setDisabled(false)
}, 2_400)
}, 1_900)
const t2 = setTimeout(() => {
inputRef.current?.focus()
}, 2_500)
Expand Down Expand Up @@ -73,12 +73,12 @@ export function Showcase({ className, ...props }: { className?: string }) {
<>
{preloadConfetti === 1 && (
<div className="hidden">
<DynamicConfetti />
{/* <DynamicConfetti /> */}
</div>
)}
{hasGuessed && (
<div className="fixed inset-0 z-50 pointer-events-none motion-reduce:hidden">
<DynamicConfetti />
{/* <DynamicConfetti /> */}
</div>
)}

Expand Down

0 comments on commit d5071d9

Please sign in to comment.