Skip to content

Commit 4197283

Browse files
author
Ritika Mishra
committed
Adjust ui of flame
1 parent d6cd355 commit 4197283

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/CandleLit.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ const BrightCandleView: React.FC<BrightCandleViewProps> = ({ fftData = [], betaP
4848
<svg
4949
xmlns="http://www.w3.org/2000/svg"
5050
viewBox="0 0 200 300"
51-
className={`absolute ${isFullPage ? '-top-[42%] sm:-top-[40%] md:-top-[50%] lg:-top-[40%]' : '-top-[25%] sm:-top-[18%] md:-top-[14%] lg:-top-[7%]'} left-1/2 transform -translate-x-1/2 w-full h-auto z-50 drop-shadow-xl pointer-events-none`}
51+
className={`absolute ${isFullPage ? '-top-[42%] sm:-top-[40%] md:-top-[50%] lg:-top-[38%]' : '-top-[25%] sm:-top-[18%] md:-top-[14%] lg:-top-[2%]'} left-1/2 transform -translate-x-1/2 w-full h-auto z-50 drop-shadow-xl pointer-events-none`}
5252
preserveAspectRatio="xMidYMid meet"
5353
>
54-
5554
<defs>
5655
<linearGradient id="outerFlameGradient" x1="0%" y1="0%" x2="0%" y2="100%">
5756
<stop offset="0%" stopColor={`rgba(255,140,0, ${brightness * 0.6})`} />
@@ -85,7 +84,7 @@ const BrightCandleView: React.FC<BrightCandleViewProps> = ({ fftData = [], betaP
8584
className="transition-all duration-300 animate-flicker"
8685
/>
8786
</svg>
88-
<div className={`absolute bottom-0 w-full ${isFullPage ? 'h-full' : 'h-[30%] sm:h-[32%] md:h-[34%] lg:h-[36%]'} bg-gradient-to-b from-gray-100 to-gray-200 dark:from-stone-600 dark:to-stone-700 rounded-t-md backdrop-blur-md shadow-xl before:absolute before:inset-0 before:bg-white/10 before:opacity-40 before:rounded-b-xl before:rounded-t-md`}>
87+
<div className={`absolute bottom-0 w-full ${isFullPage ? 'h-full' : 'h-[30%] sm:h-[32%] md:h-[34%] lg:h-[26%]'} bg-gradient-to-b from-gray-100 to-gray-200 dark:from-stone-600 dark:to-stone-700 rounded-t-md backdrop-blur-md shadow-xl before:absolute before:inset-0 before:bg-white/10 before:opacity-40 before:rounded-b-xl before:rounded-t-md`}>
8988
<div className="absolute inset-0 overflow-hidden rounded-t-md bg-gradient-to-b from-cyan-300 via-blue-400 to-gray-900">
9089
<div className={`absolute inset-0 ${isFullPage ? 'flex flex-row justify-center pt-10' : 'flex items-center justify-center'} `}>
9190
<div className="text-sm sm:text-xl md:text-xl lg:text-3xl font-semibold text-gray-800 px-2 sm:px-3 py-1 ">

0 commit comments

Comments
 (0)