after this step "Would you like us to implement animated elements and/or
This commit is contained in:
@@ -87,6 +87,12 @@ export function CostEstimatorForm() {
|
|||||||
return;
|
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
|
// After branding, if service is identity-branding, skip to results
|
||||||
if (currentStep === 8 && formData.serviceType === 'identity-branding') {
|
if (currentStep === 8 && formData.serviceType === 'identity-branding') {
|
||||||
setCurrentStep(11);
|
setCurrentStep(11);
|
||||||
@@ -121,6 +127,10 @@ export function CostEstimatorForm() {
|
|||||||
setCurrentStep(12);
|
setCurrentStep(12);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (currentStep === 11 && formData.serviceType === 'ui-ux-design') {
|
||||||
|
setCurrentStep(6);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(currentStep === 8 && formData.serviceType === 'identity-branding') {
|
if(currentStep === 8 && formData.serviceType === 'identity-branding') {
|
||||||
setCurrentStep(2);
|
setCurrentStep(2);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -48,7 +48,8 @@ export const calculateTotalHours = (formData: FormData) => {
|
|||||||
customHours = formData.uiUxDesignProcess ? uiUxDesignHoursMap[formData.uiUxDesignProcess] : 0;
|
customHours = formData.uiUxDesignProcess ? uiUxDesignHoursMap[formData.uiUxDesignProcess] : 0;
|
||||||
const pageVal = formData.pageCount === 10 ? 50 : (formData.pageCount + 1) * 5 - 1;
|
const pageVal = formData.pageCount === 10 ? 50 : (formData.pageCount + 1) * 5 - 1;
|
||||||
const pageHours = pageVal * 6;
|
const pageHours = pageVal * 6;
|
||||||
customHours += pageHours;
|
const animationHours = formData.animatedElements ? 30 : 0;
|
||||||
|
customHours += pageHours + animationHours;
|
||||||
return { customHours: customHours, readyMadeHours: Math.round(customHours * 0.4) };
|
return { customHours: customHours, readyMadeHours: Math.round(customHours * 0.4) };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user