@@ -87,17 +87,20 @@ const DepositRateComparisonSection = () => {
8787 Compare the deposit rates of different Indonesian banks based on the selected tenure and
8888 minimum balance. Select a tenure and minimum balance to see the corresponding rates.
8989 </ p >
90- < div className = 'mb-8 flex space-x-4 justify-center' >
90+ < div className = 'mb-8 flex flex-col md:flex-row space-y-4 md:space-y-0 md:space- x-4 justify-center items -center' >
9191 < div >
92- < label htmlFor = 'tenure' className = 'mr-2 text-charter-blue' >
92+ < label
93+ htmlFor = 'tenure'
94+ className = 'mr-2 text-charter-blue text-base md:text-lg font-medium'
95+ >
9396 Select Tenure:
9497 </ label >
9598 < select
9699 id = 'tenure'
97100 value = { tenure }
98101 onChange = { handleTenureChange }
99102 aria-label = 'Select Tenure'
100- className = 'border border-charter-blue select '
103+ className = 'border border-charter-blue p-2 rounded text-base md:text-lg '
101104 >
102105 < option value = '1' > 1 Month</ option >
103106 < option value = '3' > 3 Months</ option >
@@ -106,15 +109,18 @@ const DepositRateComparisonSection = () => {
106109 </ select >
107110 </ div >
108111 < div >
109- < label htmlFor = 'minBalance' className = 'mr-2 text-charter-blue' >
112+ < label
113+ htmlFor = 'minBalance'
114+ className = 'mr-2 text-charter-blue text-base md:text-lg font-medium'
115+ >
110116 Select Minimum Balance:
111117 </ label >
112118 < select
113119 id = 'minBalance'
114120 value = { minBalance }
115121 onChange = { handleMinBalanceChange }
116122 aria-label = 'Select Minimum Balance'
117- className = 'border border-charter-blue select '
123+ className = 'border border-charter-blue p-2 rounded text-base md:text-lg '
118124 >
119125 < option value = '0' > All</ option >
120126 < option value = '10000000' > 10M</ option >
@@ -130,21 +136,37 @@ const DepositRateComparisonSection = () => {
130136 ) : error ? (
131137 < p className = 'text-red-500' > { error } </ p >
132138 ) : (
133- < ResponsiveContainer width = '100%' height = { 600 } className = { '' } >
134- < BarChart
135- data = { data }
136- layout = 'vertical'
137- margin = { { top : 20 , right : 30 , left : 20 , bottom : 5 } }
138- >
139- < XAxis type = 'number' label = { { value : EMPTY_STRING } } />
140- < YAxis type = 'category' dataKey = 'bank' width = { 200 } />
141- < Tooltip />
142- < Legend />
143- < Bar dataKey = 'interest' fill = '#20B486' >
144- < LabelList dataKey = 'interest' position = 'right' />
145- </ Bar >
146- </ BarChart >
147- </ ResponsiveContainer >
139+ < div className = 'mx-4 md:mx-20 lg:mx-36 mb-16' >
140+ < ResponsiveContainer width = '100%' height = { 600 } className = { '' } >
141+ < BarChart
142+ data = { data }
143+ layout = 'vertical'
144+ margin = { { top : 20 , right : 30 , left : 20 , bottom : 5 } }
145+ >
146+ < XAxis
147+ type = 'number'
148+ label = { { value : EMPTY_STRING } }
149+ tick = { { fontSize : 14 , fontWeight : 'bold' } }
150+ />
151+ < YAxis
152+ type = 'category'
153+ dataKey = 'bank'
154+ tick = { { fontSize : 14 , fontWeight : 'bold' } }
155+ width = { 80 }
156+ />
157+ < Tooltip />
158+ < Legend />
159+ < Bar dataKey = 'interest' fill = '#20B486' >
160+ < LabelList
161+ dataKey = 'interest'
162+ position = 'right'
163+ fontSize = { 14 }
164+ fontWeight = { 'medium' }
165+ />
166+ </ Bar >
167+ </ BarChart >
168+ </ ResponsiveContainer >
169+ </ div >
148170 ) }
149171 </ div >
150172 )
0 commit comments