diff --git a/public/css/README.md b/public/css/README.md index f08e6c6d7..74cd82e39 100644 --- a/public/css/README.md +++ b/public/css/README.md @@ -3,11 +3,11 @@ This public/css folder uses a standalone .scss > .css setup. ## Usage -From a Terminal window, run the Sass Watch command on this folder only: +From a Terminal window, run the Sass Watch command from the public folder only: ```bash -sass --no-source-map --watch public/css/hop-styling.scss:public/css/hop-styling.css +sass --no-source-map --watch scss:css ``` -This will output a CSS file that can be consumed by the Payment page. +This will compile and output .css files (into the public/css folder) that can be consumed by the Payment page. -# Do not use the .css file on its own. You must use the .scss file and have Sass compile it to the .css file. +# Do not use the .css files on their own. You must use the .scss files and have Sass compile them to .css files. diff --git a/public/css/site-2020Styling.css b/public/css/site-2020Styling.css new file mode 100644 index 000000000..4aacb297d --- /dev/null +++ b/public/css/site-2020Styling.css @@ -0,0 +1,90 @@ +/* IMPORTANT: READ README.md in this folder! Do not edit .css file directly! */ +/* IMPORTANT: READ README.md in this folder! Do not edit .css file directly! */ +/* IMPORTANT: READ README.md in this folder! Do not edit .css file directly! */ +/* IMPORTANT: READ README.md in this folder! Do not edit .css file directly! */ +/* Style the modal when PayPal button is selected */ +#pageLoadingModal { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1040; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.35); + display: flex; +} +#pageLoadingModal .modal-content { + margin: auto auto; +} +#pageLoadingModal p { + margin: 0; + text-transform: uppercase; + font-size: 14px; +} +#pageLoadingModal .modal { + display: none; + overflow: hidden; + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1040; + -webkit-overflow-scrolling: touch; + outline: 0; +} +#pageLoadingModal .modal-content { + position: relative; + background-color: #fff; + border-radius: 8px; + background-clip: padding-box; + outline: 0; + width: 168px; + height: 168px; + display: flex; + justify-content: center; + align-items: center; +} +#pageLoadingModal .modal-content:before, #pageLoadingModal .modal-content:after { + content: ""; + border-radius: 50%; + position: absolute; + inset: 0; + box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.25) inset; + top: 24px; + bottom: 24px; + right: 24px; + left: 24px; +} +#pageLoadingModal .modal-content:after { + box-shadow: 0 3px 0 #da291c inset; + animation: rotate 1s linear infinite; +} +#pageLoadingModal .modal-backdrop { + position: absolute; + top: 0; + right: 0; + left: 0; + background-color: #000000; +} +#pageLoadingModal .modal-backdrop.fade { + opacity: 0; + filter: alpha(opacity=0); +} +#pageLoadingModal.hide { + display: none; +} + +@keyframes rotate { + 0% { + transform: rotate(0); + } + 100% { + transform: rotate(360deg); + } +} +.creditCardSpecific { + display: none; +} diff --git a/public/css/hop-styling.scss b/public/scss/hop-styling.scss similarity index 100% rename from public/css/hop-styling.scss rename to public/scss/hop-styling.scss diff --git a/public/scss/site-2020Styling.scss b/public/scss/site-2020Styling.scss new file mode 100644 index 000000000..4630bfdfc --- /dev/null +++ b/public/scss/site-2020Styling.scss @@ -0,0 +1,95 @@ +/* IMPORTANT: READ README.md in this folder! Do not edit .css file directly! */ +/* IMPORTANT: READ README.md in this folder! Do not edit .css file directly! */ +/* IMPORTANT: READ README.md in this folder! Do not edit .css file directly! */ +/* IMPORTANT: READ README.md in this folder! Do not edit .css file directly! */ + +/* Style the modal when PayPal button is selected */ +#pageLoadingModal { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1040; + width: 100%; + height: 100%; + background-color: rgba(0,0,0,.35); + display: flex; + + .modal-content { + margin: auto auto; + } + + p { + margin: 0; + text-transform: uppercase; + font-size: 14px; + } + + .modal { + display: none; + overflow: hidden; + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1040; + -webkit-overflow-scrolling: touch; + outline: 0; + } + + .modal-content { + position: relative; + background-color: #fff; + border-radius: 8px; + background-clip: padding-box; + outline: 0; + width: 168px; + height: 168px; + display: flex; + justify-content: center; + align-items: center; + &:before, + &:after { + content: ''; + border-radius: 50%; + position: absolute; + inset: 0; + box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.25) inset; + top: 24px; + bottom: 24px; + right: 24px; + left: 24px; + } + &:after { + box-shadow: 0 3px 0 #da291c inset; + animation: rotate 1s linear infinite; + } + } + + .modal-backdrop { + position: absolute; + top: 0; + right: 0; + left: 0; + background-color: #000000; + &.fade { + opacity: 0; + filter: alpha(opacity=0); + } + } + + &.hide { + display: none; + } +} + +@keyframes rotate { + 0% { transform: rotate(0)} + 100% { transform: rotate(360deg)} +} + +.creditCardSpecific { + display: none; +} diff --git a/src/constants/cart-item-categories.js b/src/constants/cart-item-categories.js new file mode 100644 index 000000000..509cc626b --- /dev/null +++ b/src/constants/cart-item-categories.js @@ -0,0 +1,8 @@ +const cartItemCategories = { + VAPS: "vaps", + GLASS_PARTS: "glassParts", + SUPPORTING_ITEMS: "supportingItems", + PROMOS: "promos", +}; + +export { cartItemCategories }; diff --git a/src/constants/cart-item-types.js b/src/constants/cart-item-types.js new file mode 100644 index 000000000..62bc40012 --- /dev/null +++ b/src/constants/cart-item-types.js @@ -0,0 +1,11 @@ +const cartItemTypes = { + FRONT_WIPER: "FRONT WIPER", + REAR_WIPER: "REAR WIPER", + SUPPORTING_ITEMS: "SUPPORTING ITEMS", + GLASS_PARTS: "GLASS PARTS", + RAIN_DEFENSE: "RAIN DEFENSE", + RECYCLE_FEE: "RECYCLE FEE", + MOBILE_FEE: "MOBILE FEE", +}; + +export { cartItemTypes }; diff --git a/src/constants/part-type-strings.js b/src/constants/part-type-strings.js index 2dfab2071..50d92832c 100644 --- a/src/constants/part-type-strings.js +++ b/src/constants/part-type-strings.js @@ -3,6 +3,8 @@ const partTypeStrings = { REAR_WIPER: "REAR WIPER", RAIN_DEFENSE: "RAIN DEFENSE", RECALIBRATION: "RECALIBRATION", + RECYCLE_FEE: "RECYCLE FEE", + MOBILE_FEE: "MOBILE FEE", }; export { partTypeStrings }; diff --git a/src/constants/store-actions.js b/src/constants/store-actions.js index ee67ff77d..bb2ef16a0 100644 --- a/src/constants/store-actions.js +++ b/src/constants/store-actions.js @@ -89,8 +89,6 @@ const storeActions = { SAVE_PROMOS: "savePromos", SAVE_CUSTOMER_DETAILS: "saveCustomerDetails", SAVE_SERVICE_LOCATION_TECH_NOTES: "saveServiceLocationTechNotes", - SAVE_WORK_ORDER_FLAG: "saveWorkOrderFlag", - SAVE_PIA_WORK_ORDER: "savePiaWorkOrder", SAVE_CCTOKEN: "saveCCToken", SAVE_PAYPAL_TOKEN: "savePaypalToken", }; diff --git a/src/constants/store-mutations.js b/src/constants/store-mutations.js index ca0afadf2..b7ac47d38 100644 --- a/src/constants/store-mutations.js +++ b/src/constants/store-mutations.js @@ -1,7 +1,5 @@ const storeMutations = { // PAYMENT MUTATIONS - UPDATE_WORK_ORDER_FLAG: "updateWorkOrderFlag", - UPDATE_PIA_WORK_ORDER: "updatePiaWorkOrder", UPDATE_CCTOKEN: "updateCCToken", UPDATE_PAYPAL_TOKEN: "updatePaypalToken", diff --git a/src/fmg-components/add-vaps-modal-buttons/add-vaps-modal-buttons.vue b/src/fmg-components/add-vaps-modal-buttons/add-vaps-modal-buttons.vue index 05ea8504b..11ee74e32 100644 --- a/src/fmg-components/add-vaps-modal-buttons/add-vaps-modal-buttons.vue +++ b/src/fmg-components/add-vaps-modal-buttons/add-vaps-modal-buttons.vue @@ -92,11 +92,11 @@ export default { answers.push(answer); } - if (this.showAddRainDefense) { - const answer = getAnswer("RainDefenseModal", this.answersCmsData); - answer.SubText = "+$" + this.rainDefensePrice; - answers.push(answer); - } + // if (this.showAddRainDefense) { + // const answer = getAnswer("RainDefenseModal", this.answersCmsData); + // answer.SubText = "+$" + this.rainDefensePrice; + // answers.push(answer); + // } return answers; }, diff --git a/src/fmg-components/cart/cart.vue b/src/fmg-components/cart/cart.vue index cca06cbca..c48f48582 100644 --- a/src/fmg-components/cart/cart.vue +++ b/src/fmg-components/cart/cart.vue @@ -1,60 +1,71 @@