Share a link to your publicly accessible assets via drive,
dropbox, etc.
@@ -386,21 +384,21 @@ const BrandingForm = ({
-
+
-
Anything to avoid? (optional)
-
+ Anything to avoid? (optional)
+
If there are any themes, ideas, or specific directions our designers
should avoid, please let us know. Be as descriptive as possible.
-
+
handleInputChange(e.target.name, e.target.value)}
- styleName={"text-area"}
+ styleName={styles["text-area"]}
name="anythingToAvoid"
placeholder={"Describe themes or ideas to avoid"}
/>
@@ -409,17 +407,17 @@ const BrandingForm = ({
-
+
-
Allow Stock Photos?
-
- There may be additional costs for designs that use stock images.
+ Allow Stock Photos?
+
+ There may be additional costs for designs that use stock images.
Our designers will include details for any stock images used, so you
can buy them at the end of the project.{" "}
setIsPolicyModalOpen(true)}
>
Learn more about our stock photo policy
@@ -428,7 +426,7 @@ const BrandingForm = ({
-
+
{
const selectedOption = items.findIndex((item) => item.value);
@@ -446,16 +444,16 @@ const BrandingForm = ({
-
+
-
Final Deliverable SOURCE FILES
-
+ Final Deliverable SOURCE FILES
+
If you want your final deliverables created with a specific design
software, please specify.{" "}
-
+
{
const selectedOption = items.findIndex((item) => item.value);
@@ -471,7 +469,7 @@ const BrandingForm = ({
/>
{formData.selectedDeliverableOption?.value === 4 && (
-
+
{
const anyColor = colors.find((x) => x.isAny);
return (
-
+
{colors.map((color, index) => (
{
@@ -45,15 +44,15 @@ const ColorOptions = ({ colors, selectedColor, onSelect }) => {
}}
>
-
{color.name}
+
{color.name}
))}
@@ -66,7 +65,7 @@ ColorOptions.defaultProps = {
ColorOptions.propTypes = {
colors: PT.arrayOf(PT.shape()),
- selectedColor: PT.number,
+ selectedColor: PT.object,
onSelect: PT.func,
};
diff --git a/src/routes/BrandingLegacy/components/ColorOptions/styles.module.scss b/src/routes/BrandingLegacy/components/ColorOptions/styles.module.scss
index a2bde608e..4cfbc22fc 100644
--- a/src/routes/BrandingLegacy/components/ColorOptions/styles.module.scss
+++ b/src/routes/BrandingLegacy/components/ColorOptions/styles.module.scss
@@ -1,4 +1,4 @@
-@import "styles/include";
+@import "../../../../styles/include";
.colorOptions {
@@ -6,20 +6,24 @@
flex-wrap: wrap;
gap: 24px;
margin-bottom: 34px;
+
@include mobile {
justify-content: flex-start;
//margin-left: -6px;
}
+
.colorWrapper {
.color {
position: relative;
width: 120px;
height: 80px;
padding: 16px;
+
@include mobile {
width: 74px;
height: 64px;
}
+
cursor: pointer;
border: 1px solid $gui-kit-gray-90;
@@ -42,33 +46,43 @@
&.blues {
background: linear-gradient(180deg, #2492EB 0%, #104378 100%);
}
+
&.aquas {
background: linear-gradient(180deg, #4BB7C2 0%, #215563 100%);
}
+
&.greens {
background: linear-gradient(180deg, #98C739 0%, #435B1D 100%);
}
+
&.purples {
background: linear-gradient(180deg, #6D78B0 0%, #31375B 100%);
}
+
&.pinks {
background: linear-gradient(180deg, #E16CA0 0%, #643353 100%);
}
+
&.reds {
background: linear-gradient(180deg, #CC4645 0%, #5B2024 100%);
}
+
&.oranges {
background: linear-gradient(180deg, #F47E58 0%, #6E3A2C 100%);
}
+
&.yellows {
background: linear-gradient(180deg, #F5C257 0%, #6C5A2C 100%);
}
+
&.lightGrays {
background: linear-gradient(180deg, #C3C5CA 0%, #828692 100%);
}
+
&.darkGrays {
background: linear-gradient(180deg, #555962 0%, #18191B 100%);
}
+
&.angularGradient {
background: conic-gradient(from 180deg at 50% 50%, #2492EB 0deg, #4BB7C2 56.25deg, #98C739 106.88deg, #6D78B0 159.38deg, #E16CA0 208.13deg, #CC4645 258.75deg, #F47E58 309.38deg, #F5C257 360deg);
}
@@ -82,6 +96,7 @@
line-height: 26px;
text-align: center;
margin-top: 8px;
+
@include mobile {
font-size: 14px;
}
diff --git a/src/routes/BrandingLegacy/components/FontOptions/index.jsx b/src/routes/BrandingLegacy/components/FontOptions/index.jsx
index 5270c27b6..374599d30 100644
--- a/src/routes/BrandingLegacy/components/FontOptions/index.jsx
+++ b/src/routes/BrandingLegacy/components/FontOptions/index.jsx
@@ -4,11 +4,10 @@
import classNames from "classnames";
import PT from "prop-types";
import React from "react";
-import { v4 as uuidV4 } from "uuid";
import SansSerifIcon from "../../../../assets/images/icon-sans-serif-font.png";
import SerifIcon from "../../../../assets/images/icon-serif-font.png";
import AnyFont from "../../../../assets/images/icon-any-font.png";
-import "./styles.module.scss";
+import styles from "./styles.module.scss";
const FontOptions = ({ selectedFont, onSelect }) => {
const fontOptions = [
@@ -18,26 +17,26 @@ const FontOptions = ({ selectedFont, onSelect }) => {
];
return (
-
+
{fontOptions.map((item, index) => (
onSelect(index, item.name)}
>
-
{item.name}
+
{item.name}
))}
diff --git a/src/routes/BrandingLegacy/components/FontOptions/styles.module.scss b/src/routes/BrandingLegacy/components/FontOptions/styles.module.scss
index 6fc40c40a..884ca8c3a 100644
--- a/src/routes/BrandingLegacy/components/FontOptions/styles.module.scss
+++ b/src/routes/BrandingLegacy/components/FontOptions/styles.module.scss
@@ -1,4 +1,4 @@
-@import "styles/include";
+@import "../../../../styles/include";
.fontOptions {
display: flex;
diff --git a/src/routes/BrandingLegacy/index.jsx b/src/routes/BrandingLegacy/index.jsx
index 53963e7d2..52ef049ea 100644
--- a/src/routes/BrandingLegacy/index.jsx
+++ b/src/routes/BrandingLegacy/index.jsx
@@ -1,32 +1,35 @@
-import { navigate, redirectTo } from "@reach/router";
-import Button from "components/Button";
-import LoadingSpinner from "components/LoadingSpinner";
-import Page from "components/Page";
-import PageContent from "components/PageContent";
-import PageDivider from "components/PageDivider";
-import PageFoot from "components/PageElements/PageFoot";
-import PageH2 from "components/PageElements/PageH2";
-import Progress from "components/Progress";
-import { BUTTON_SIZE, BUTTON_TYPE } from "constants/";
-import React, { useEffect, useState } from "react";
+import { useNavigate } from "react-router-dom";
+import React, { useContext, useEffect, useState } from "react";
import { connect, useDispatch, useSelector } from "react-redux";
-import withAuthentication from "hoc/withAuthentication";
+
+import { Breadcrumb, profileContext } from "../../../src-ts";
+
import { triggerAutoSave } from "../../actions/autoSave";
import { resetIntakeForm, saveBranding } from "../../actions/form";
import { setProgressItem } from "../../actions/progress";
-import BackIcon from "../../assets/images/icon-back-arrow.svg";
-import BrandingForm from "./components/BrandingForm";
-import "./styles.module.scss";
-import { getDynamicPriceAndTimelineEstimate } from "utils/";
+import { ReactComponent as BackIcon } from "../../assets/images/icon-back-arrow.svg";
import { WebsiteDesignBannerLegacy } from "../../components/Banners/WebsiteDesignBannerLegacy";
-import { ROUTES } from "../../constants";
-import { Breadcrumb } from "../../../src-ts";
+import Button from "../../components/Button";
+import LoadingSpinner from "../../components/LoadingSpinner";
+import Page from "../../components/Page";
+import PageContent from "../../components/PageContent";
+import PageDivider from "../../components/PageDivider";
+import PageFoot from "../../components/PageElements/PageFoot";
+import PageH2 from "../../components/PageElements/PageH2";
+import Progress from "../../components/Progress";
+import { BUTTON_SIZE, BUTTON_TYPE, ROUTES } from "../../constants/";
+import { getDynamicPriceAndTimelineEstimate } from "../../utils/";
+
+import BrandingForm from "./components/BrandingForm";
+import styles from "./styles.module.scss";
/**
* Branding Page
*/
const BrandingLegacy = ({ saveBranding, setProgressItem }) => {
- const [isLoading, setLoading] = useState(false);
+
+ const navigate = useNavigate()
+
const [formData, setFormData] = useState({
theme: { title: "Style & Theme", option: "", value: null },
inspiration: [
@@ -59,6 +62,8 @@ const BrandingLegacy = ({ saveBranding, setProgressItem }) => {
customDeliverable: { title: "Custom Deliverable", option: "", value: "" },
});
+ const { initialized } = useContext(profileContext)
+
const dispatch = useDispatch();
const workType = useSelector((state) => state.form.workType);
const branding = useSelector((state) => state.form.branding);
@@ -74,7 +79,7 @@ const BrandingLegacy = ({ saveBranding, setProgressItem }) => {
setProgressItem(5);
if (currentStep === 0) {
- redirectTo("/self-service/wizard");
+ navigate("/self-service/wizard");
}
if (branding) {
@@ -86,7 +91,7 @@ const BrandingLegacy = ({ saveBranding, setProgressItem }) => {
return () => {
dispatch(triggerAutoSave(true));
};
- }, [currentStep, branding, dispatch, setProgressItem, firstMounted]);
+ }, [currentStep, branding, dispatch, setProgressItem, firstMounted, navigate]);
const isFormValid =
formData?.theme?.value &&
@@ -125,7 +130,7 @@ const BrandingLegacy = ({ saveBranding, setProgressItem }) => {
return (
<>
-
+
@@ -142,19 +147,19 @@ const BrandingLegacy = ({ saveBranding, setProgressItem }) => {
/>
-
+