From 09e59d46bd743d650182abe92336bfbbd68f1dec Mon Sep 17 00:00:00 2001 From: Leon Serfaty G Date: Thu, 17 Jul 2025 11:06:53 +0000 Subject: [PATCH] after this step "Would you like us to implement animated elements and/or --- src/components/cost-estimator/cost-estimator-form.tsx | 10 ++++++++++ src/components/cost-estimator/step-11-results.tsx | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/cost-estimator/cost-estimator-form.tsx b/src/components/cost-estimator/cost-estimator-form.tsx index 111e81c..73f0bc2 100644 --- a/src/components/cost-estimator/cost-estimator-form.tsx +++ b/src/components/cost-estimator/cost-estimator-form.tsx @@ -87,6 +87,12 @@ export function CostEstimatorForm() { return; } + // After animations, if service is ui-ux-design, skip to results + if (currentStep === 6 && formData.serviceType === 'ui-ux-design') { + setCurrentStep(11); + return; + } + // After branding, if service is identity-branding, skip to results if (currentStep === 8 && formData.serviceType === 'identity-branding') { setCurrentStep(11); @@ -121,6 +127,10 @@ export function CostEstimatorForm() { setCurrentStep(12); return; } + if (currentStep === 11 && formData.serviceType === 'ui-ux-design') { + setCurrentStep(6); + return; + } if(currentStep === 8 && formData.serviceType === 'identity-branding') { setCurrentStep(2); return; diff --git a/src/components/cost-estimator/step-11-results.tsx b/src/components/cost-estimator/step-11-results.tsx index 1345f91..8c9c19b 100644 --- a/src/components/cost-estimator/step-11-results.tsx +++ b/src/components/cost-estimator/step-11-results.tsx @@ -48,7 +48,8 @@ export const calculateTotalHours = (formData: FormData) => { customHours = formData.uiUxDesignProcess ? uiUxDesignHoursMap[formData.uiUxDesignProcess] : 0; const pageVal = formData.pageCount === 10 ? 50 : (formData.pageCount + 1) * 5 - 1; const pageHours = pageVal * 6; - customHours += pageHours; + const animationHours = formData.animatedElements ? 30 : 0; + customHours += pageHours + animationHours; return { customHours: customHours, readyMadeHours: Math.round(customHours * 0.4) }; }