@@ -14,6 +14,7 @@ import { Step1Amount } from './steps/Step1Amount';
1414import { Step2Details } from './steps/Step2Details' ;
1515import { Step3Confirm } from './steps/Step3Confirm' ;
1616import { Step4Receipt } from './steps/Step4Receipt' ;
17+ import { Button } from '@components/ui/button' ;
1718
1819export const DonationForm : React . FC < DonationFormProps > = ( {
1920 onSuccess,
@@ -272,25 +273,27 @@ export const DonationForm: React.FC<DonationFormProps> = ({
272273 return (
273274 < div className = "donation-form-container" >
274275 < form
275- className = "donation-form"
276+ className = "donation-form flex flex-col p-[5%] box-border min-h-fit "
276277 onSubmit = { ( e ) => e . preventDefault ( ) }
277278 noValidate
278279 >
279- < div className = "progress-bar-container" >
280+ < div
281+ className = { `flex w-full flex-row justify-center items-center gap-[3%] mb-[8%] ${ currentStep === 1 || currentStep === 3 ? 'font-sans' : '' } ` }
282+ >
280283 < div
281- className = {
282- currentStep === 1 ? 'progress-bar-purple ' : 'progress-bar-grey '
283- }
284+ className = { `w-[31%] aspect-[14/1] rounded-[10px] ${
285+ currentStep === 1 ? 'bg-[#650d77] ' : 'bg-[#b3b3b3] '
286+ } ` }
284287 > </ div >
285288 < div
286- className = {
287- currentStep === 2 ? 'progress-bar-purple ' : 'progress-bar-grey '
288- }
289+ className = { `w-[31%] aspect-[14/1] rounded-[10px] ${
290+ currentStep === 2 ? 'bg-[#650d77] ' : 'bg-[#b3b3b3] '
291+ } ` }
289292 > </ div >
290293 < div
291- className = {
292- currentStep === 3 ? 'progress-bar-purple ' : 'progress-bar-grey '
293- }
294+ className = { `w-[31%] aspect-[14/1] rounded-[10px] ${
295+ currentStep === 3 ? 'bg-[#650d77] ' : 'bg-[#b3b3b3] '
296+ } ` }
294297 > </ div >
295298 </ div >
296299 { submitError && (
@@ -301,42 +304,52 @@ export const DonationForm: React.FC<DonationFormProps> = ({
301304
302305 { renderStep ( ) }
303306
304- < div className = "step-actions" >
307+ < div
308+ className = { `flex flex-row items-center justify-center w-full gap-[7%] pt-6 mt-auto ${ currentStep === 1 || currentStep === 3 ? 'font-sans' : '' } ` }
309+ >
305310 { showBackButton && (
306- < button
311+ < Button
312+ variant = "unstyled"
307313 type = "button"
308- className = "action-button "
314+ className = "flex-1 rounded-[2cqh] border-[3px] border-[#007b64] bg-white text-[#007b64] font-semibold h-[2.5rem] flex justify-center items-center text-center text-[2.5cqh] hover:bg-[#f0fffb] "
309315 onClick = { handleBack }
310316 >
311- BACK
312- </ button >
317+ Back
318+ </ Button >
313319 ) }
314320
315321 { showNextButton && (
316- < button
322+ < Button
323+ variant = "unstyled"
317324 type = "button"
318- className = "action-button "
325+ className = "flex-1 rounded-[2cqh] bg-[#007b64] text-white font-semibold h-[2.5rem] flex justify-center items-center text-center text-[2.5cqh] hover:bg-[#006b54] "
319326 onClick = { handleNext }
320327 >
321- NEXT
322- </ button >
328+ Next
329+ </ Button >
323330 ) }
324331
325332 { currentStep === 3 && (
326- < button
333+ < Button
334+ variant = "unstyled"
327335 type = "button"
328- className = "submit-button "
336+ className = "flex-1 rounded-[4px] bg-[#007b64] hover:bg-[#006b54] text-white h-[2.5rem] px-3 text-base font-semibold disabled:bg-[#aaa] "
329337 onClick = { handleSubmit }
330338 disabled = { isSubmitting }
331339 >
332- { isSubmitting ? 'Processing...' : 'Confirm Donation ' }
333- </ button >
340+ { isSubmitting ? 'Processing...' : 'Donate ' }
341+ </ Button >
334342 ) }
335343
336344 { currentStep === 4 && (
337- < button type = "button" className = "primary" onClick = { resetForm } >
345+ < Button
346+ variant = "default"
347+ type = "button"
348+ className = "primary font-semibold"
349+ onClick = { resetForm }
350+ >
338351 Make another donation
339- </ button >
352+ </ Button >
340353 ) }
341354 </ div >
342355 </ form >
0 commit comments