diff --git a/src/common-components/loading-modal/loading-modal.vue b/src/common-components/loading-modal/loading-modal.vue index a718095f6..a3cbfa280 100644 --- a/src/common-components/loading-modal/loading-modal.vue +++ b/src/common-components/loading-modal/loading-modal.vue @@ -103,135 +103,134 @@ export default { } .text-container { - display: flex; - width: 350px; - overflow: hidden; - white-space: nowrap; - margin: 0 auto; - position: relative; - &:after { - content: ''; - background: rgb(245,245,245); - background: linear-gradient(270deg, rgba(245,245,245,1) 0%, rgba(245,245,245,0) 5%, rgba(245,245,245,0) 95%, rgba(245,245,245,1) 100%); - position: absolute; - width: 100%; - height: 100%; - z-index: 2; - top: 0; - left: 0; - right: 0; - bottom: 0; - } + display: flex; + width: 350px; + overflow: hidden; + white-space: nowrap; + margin: 0 auto; + position: relative; + &:after { + content: ''; + background: rgb(245,245,245); + background: linear-gradient(270deg, rgba(245,245,245,1) 0%, rgba(245,245,245,0) 5%, rgba(245,245,245,0) 95%, rgba(245,245,245,1) 100%); + position: absolute; + width: 100%; + height: 100%; + z-index: 2; + top: 0; + left: 0; + right: 0; + bottom: 0; + } - &.slide p { - animation: slide-in 20s ease-in-out 1s forwards 1; - } + &.slide p { + animation: slide-in 20s ease-in-out 1s forwards 1; + } - p { - margin: 0 175px; - transform: translateX(-2346px); - } + p { + margin: 0 175px; + transform: translateX(-2346px); + } - @keyframes slide-in { - 0% { - transform: translateX(-2346px) - } - 11% { - transform: translateX(-2010px) - } - 22% { - transform: translateX(-2010px) - } - 33% { - transform: translateX(-1490px) - } - 44% { - transform: translateX(-1490px) - } - 55% { - transform: translateX(-985px) - } - 66% { - transform: translateX(-985px) - } - 77% { - transform: translateX(-490px) - } - 88% { - transform: translateX(-490px) - } - 100% { - transform: translateX(-40px) - } - } - - - .dot-1 { - animation: blinking-elipsis .75s linear infinite; - @keyframes blinking-elipsis { + @keyframes slide-in { 0% { - opacity: 1; + transform: translateX(-2346px) } - 65% { - opacity: 1; - } - 66% { - opacity: 0; - } - 100% { - opacity: 0; - } - } - } - - .dot-2 { - animation: blinking-elipsis-2 .75s linear infinite; - @keyframes blinking-elipsis-2 { - 0% { - opacity: 0; - } - 21% { - opacity: 0; + 11% { + transform: translateX(-2010px) } 22% { - opacity: 1; + transform: translateX(-2010px) } - 65% { - opacity: 1; - } - 66% { - opacity: 0; - } - 100% { - opacity: 0; - } - } - } - - .dot-3 { - animation: blinking-elipsis-3 .75s linear infinite; - @keyframes blinking-elipsis-3 { - 0% { - opacity: 0; - } - 43% { - opacity: 0; + 33% { + transform: translateX(-1490px) } 44% { - opacity: 1; + transform: translateX(-1490px) } - 65% { - opacity: 1; + 55% { + transform: translateX(-985px) } 66% { - opacity: 0; + transform: translateX(-985px) + } + 77% { + transform: translateX(-490px) + } + 88% { + transform: translateX(-490px) } 100% { - opacity: 0; + transform: translateX(-40px) + } + } + + .dot-1 { + animation: blinking-elipsis .75s linear infinite; + @keyframes blinking-elipsis { + 0% { + opacity: 1; + } + 65% { + opacity: 1; + } + 66% { + opacity: 0; + } + 100% { + opacity: 0; + } + } + } + + .dot-2 { + animation: blinking-elipsis-2 .75s linear infinite; + @keyframes blinking-elipsis-2 { + 0% { + opacity: 0; + } + 21% { + opacity: 0; + } + 22% { + opacity: 1; + } + 65% { + opacity: 1; + } + 66% { + opacity: 0; + } + 100% { + opacity: 0; + } + } + } + + .dot-3 { + animation: blinking-elipsis-3 .75s linear infinite; + @keyframes blinking-elipsis-3 { + 0% { + opacity: 0; + } + 43% { + opacity: 0; + } + 44% { + opacity: 1; + } + 65% { + opacity: 1; + } + 66% { + opacity: 0; + } + 100% { + opacity: 0; + } } } } } -} diff --git a/src/common-components/menu-button/menu-button.spec.js b/src/common-components/menu-button/menu-button.spec.js new file mode 100644 index 000000000..3d0843e10 --- /dev/null +++ b/src/common-components/menu-button/menu-button.spec.js @@ -0,0 +1 @@ +test.todo("some test to be written in the future"); diff --git a/src/common-components/menu-button/menu-button.vue b/src/common-components/menu-button/menu-button.vue new file mode 100644 index 000000000..c7b798f9a --- /dev/null +++ b/src/common-components/menu-button/menu-button.vue @@ -0,0 +1,53 @@ + + + + + + + + + + + diff --git a/src/layouts/component-test/component-test.vue b/src/layouts/component-test/component-test.vue index 526b1e971..268351417 100644 --- a/src/layouts/component-test/component-test.vue +++ b/src/layouts/component-test/component-test.vue @@ -1,5 +1,15 @@ + + + Hamburger Menu Button + + + + + + + VIN Information @@ -1064,81 +1074,6 @@ h6 Heading - - - Alerts - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1147,7 +1082,6 @@ import buttonBack from "@/common-components/funnel-sub-header/button-back/button-back"; import listCard from "@/ux-components/list-card/list-card"; import listButton from "@/ux-components/list-button/list-button"; - import alert from "@/ux-components/alert/alert"; import listButtonHorizontal from "@/ux-components/list-button-horizontal/list-button-horizontal"; import checkbox from "@/ux-components/checkbox/checkbox"; import radio from "@/ux-components/radio/radio"; @@ -1155,6 +1089,7 @@ import textboxQuestion from "@/common-components/textbox-question/textbox-question"; import dropdownQuestion from "@/common-components/dropdown-question/dropdown-question"; import vinInformation from "@/layouts/vin-lookup/vin-information/vin-information"; + import menuButton from "@/common-components/menu-button/menu-button"; export default { name: "App", components: { @@ -1162,7 +1097,6 @@ buttonBack, listCard, listButton, - alert, listButtonHorizontal, checkbox, radio, @@ -1170,6 +1104,7 @@ textboxQuestion, dropdownQuestion, vinInformation, + menuButton, }, data() { return { diff --git a/src/router/index.js b/src/router/index.js index c8d614d48..db46a3306 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -21,7 +21,6 @@ import analyticsMixin from "@/mixins/analytics-mixin"; // Components import ComponentTest from "@/layouts/component-test/component-test.vue"; import FormTest from "@/layouts/form-test/form-test.vue"; -import Modal from "@/common-components/loading-modal/loading-modal.vue"; const routes = [ @@ -35,11 +34,6 @@ const routes = [ name: "FormTest", component: FormTest, }, - { - path: "/loading-modal", // This is a temporary route for testing. - name: "Modal", - component: Modal, - }, { path: "/", name: "root",