diff --git a/src/assets/css/style.css b/src/assets/css/style.css index d2ab2e4..5262214 100644 --- a/src/assets/css/style.css +++ b/src/assets/css/style.css @@ -154,3 +154,28 @@ button[custom="black-box"] { --button-click-color: #fff; --button-font-size: 1.6rem; } +.hover-bottom-animation { + position: relative; + cursor: pointer; +} +.hover-bottom-animation::before { + content: ''; + position: absolute; + height: 2px; + width: 0; + right: 0; + left: auto; + bottom: 0; + transition: width 0.2s ease-in-out; + -webkit-transition: width 0.2s ease-in-out; + background-color: #fff; +} +.hover-bottom-animation:hover::before { + width: 100%; + left: 0; + right: auto; +} +.hover-bottom-animation.active:before, +.hover-bottom-animation.router-link-exact-active:before { + width: 100%; +} diff --git a/src/assets/css/style.less b/src/assets/css/style.less index 91343b3..5d97b04 100644 --- a/src/assets/css/style.less +++ b/src/assets/css/style.less @@ -15,12 +15,19 @@ p { * { box-sizing: border-box; } -h1, h2, h3, h4, h5, h6, .products-title{ + +h1, +h2, +h3, +h4, +h5, +h6, +.products-title { font-family: Poppins, sans-serif; - font-weight: 600; - letter-spacing: 2px; - color: #222222; - text-transform: capitalize; + font-weight: 600; + letter-spacing: 2px; + color: #222222; + text-transform: capitalize; } @keyframes loading { @@ -175,4 +182,33 @@ button[custom="black-box"] { --button-click-bgcolor: #979797; --button-click-color: #fff; --button-font-size: 1.6rem; +} + +.hover-bottom-animation { + position: relative; + cursor: pointer; + + &::before { + content: ''; + position: absolute; + height: 2px; + width: 0; + right: 0; + left: auto; + bottom: 0; + transition: width 0.2s ease-in-out; + -webkit-transition: width 0.2s ease-in-out; + background-color: #fff; + } + + &:hover::before { + width: 100%; + left: 0; + right: auto; + } + + &.active:before, + &.router-link-exact-active:before { + width: 100%; + } } \ No newline at end of file diff --git a/src/components/back-top.vue b/src/components/back-top.vue index 7e35d5e..834440a 100644 --- a/src/components/back-top.vue +++ b/src/components/back-top.vue @@ -7,7 +7,7 @@ transition: 'stroke-dashoffset 10ms linear', strokeDasharray: `${progress}, ${max}`, stroke: '#222', - strokeWidth: 4, + strokeWidth: 4 }" fill="none" > @@ -17,15 +17,15 @@ diff --git a/src/components/main-footer.vue b/src/components/main-footer.vue index bb55661..85e8984 100644 --- a/src/components/main-footer.vue +++ b/src/components/main-footer.vue @@ -1,25 +1,78 @@ - + \ No newline at end of file diff --git a/src/components/main-header.vue b/src/components/main-header.vue index 05e4c29..07c1f13 100644 --- a/src/components/main-header.vue +++ b/src/components/main-header.vue @@ -1,86 +1,90 @@