Skip to content

Commit 079fd9e

Browse files
author
Ritika Mishra
committed
improved text for all screen types
1 parent f92ceb8 commit 079fd9e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/components/CandleLit.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const BrightCandleView: React.FC<BrightCandleViewProps> = ({ fftData = [], betaP
4545
return (
4646
<div className="w-full h-full flex items-end justify-center min-h-0 min-w-0">
4747
<div className={`relative ${isFullPage
48-
? 'w-1/4 h-3/4 sm:w-1/4 sm:h-3/4 md:w-1/4 md:h-3/4 lg:w-1/4 lg:h-3/4 xl:w-1/4 xl:h-3/4 2xl:w-2/4 2xl:h-3/4'
48+
? 'w-1/4 h-3/4 sm:w-1/4 sm:h-3/4 md:w-1/4 md:h-3/4 lg:w-1/4 lg:h-3/4 xl:w-1/4 xl:h-3/4 2xl:w-1/4 2xl:h-3/4'
4949
: 'w-1/4 h-4/5 sm:w-1/5 sm:h-4/5 md:w-1/6 md:h-5/6 lg:w-1/6 lg:h-5/6 xl:w-1/6 xl:h-5/6'
5050
}`}
5151
>
@@ -98,13 +98,19 @@ const BrightCandleView: React.FC<BrightCandleViewProps> = ({ fftData = [], betaP
9898
<div style={{ height: '80%' }} className="w-full 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 relative">
9999
<div className="absolute inset-0 overflow-hidden rounded-t-md bg-gradient-to-b from-cyan-300 via-blue-400 to-gray-900">
100100
<div className={`absolute inset-0 ${isFullPage
101-
? 'flex flex-row justify-center items-center'
101+
? 'flex justify-center items-start pt-4'
102102
: 'flex items-center justify-center'
103103
}`}
104104
>
105-
<div className="text-xs sm:text-sm md:text-lg lg:text-xl xl:text-2xl font-semibold text-gray-800 px-1 sm:px-2 md:px-3 py-1">
105+
<div
106+
className={`${isFullPage
107+
? 'text-2xl sm:text-3xl md:text-4xl lg:text-5xl xl:text-6xl'
108+
: 'text-xs sm:text-sm md:text-lg lg:text-xl xl:text-2xl'
109+
} font-semibold text-gray-800 px-1 sm:px-2 md:px-3 py-1 transition-all duration-300 ease-in-out`}
110+
>
106111
{Number.isFinite(betaPower) ? String(Math.floor(betaPower)).padStart(2, '0') : '00'}
107112
</div>
113+
108114
</div>
109115
</div>
110116
<div className="absolute inset-0 bg-white/10 opacity-40 rounded-b-xl rounded-t-md"></div>

0 commit comments

Comments
 (0)