after this step "Would you like us to implement animated elements and/or

This commit is contained in:
Leon Serfaty G
2025-07-17 11:06:53 +00:00
parent 4e70480cd1
commit 09e59d46bd
2 changed files with 12 additions and 1 deletions
@@ -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;
@@ -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) };
}