|
22 | 22 | <a |
23 | 23 | class="d-inline-block text-nowrap" |
24 | 24 | :href="slide.href" |
25 | | - >{{ slide.linkText }}</a |
26 | 25 | > |
| 26 | + <ArrowRight /> |
| 27 | + </a> |
27 | 28 | </p> |
28 | 29 | </Slide> |
29 | 30 | </Carousel> |
|
34 | 35 |
|
35 | 36 | <script> |
36 | 37 | import { Carousel, Slide } from "vue3-carousel" |
| 38 | + import ArrowRight from "vue-material-design-icons/ArrowRight.vue" |
37 | 39 |
|
38 | 40 | export default { |
39 | 41 | components: { |
40 | 42 | Carousel, |
41 | 43 | Slide, |
| 44 | + ArrowRight, |
42 | 45 | }, |
43 | 46 | props: { |
44 | 47 | content: { |
|
96 | 99 | border-radius: 0; |
97 | 100 | border: 0; |
98 | 101 | text-align: center; |
99 | | - background: transparent; |
| 102 | + background: #631BFF; |
100 | 103 | color: $white; |
101 | | - border-bottom: 1px solid #e5e4f721; |
102 | 104 | margin-bottom: 0; |
103 | 105 | position: relative; |
104 | 106 | z-index: 1; |
105 | 107 | overflow: hidden; |
106 | | - transition: |
107 | | - max-height 0.5s linear, |
108 | | - color 0.5s linear; |
109 | | - height: 3rem; |
110 | | - padding-top: 0.85rem; |
111 | | - &.scrolled { |
112 | | - background: rgba(17, 17, 19, 0.65); |
113 | | - transition: background-color 250ms ease-in-out; |
114 | | - } |
| 108 | + height: 2.5rem; |
| 109 | + padding-top: 10px; |
| 110 | + padding-bottom: 10px; |
| 111 | +
|
115 | 112 | @include media-breakpoint-down(sm) { |
116 | 113 | padding-inline: calc($spacer / 2); |
117 | 114 | } |
118 | | - &::after { |
119 | | - content: ""; |
120 | | - position: absolute; |
121 | | - height: 16rem; |
122 | | - width: 100%; |
123 | | - z-index: -1; |
124 | | - top: 0; |
125 | | - left: 0; |
126 | | - background: linear-gradient( |
127 | | - 180deg, |
128 | | - var(--ks-background-body), |
129 | | - #6117ff |
130 | | - ); |
131 | | - } |
132 | 115 | a { |
133 | | - text-decoration: underline; |
134 | | - color: var(--ks-content-color-highlight); |
135 | | - font-weight: 400 !important; |
136 | | - margin-left: $spacer; |
| 116 | + text-decoration: none; |
| 117 | + color: $white; |
| 118 | + font-weight: 700; |
| 119 | + margin-left: calc($spacer / 2); |
| 120 | + display: flex; |
| 121 | + align-items: center; |
| 122 | +
|
| 123 | + :deep(.material-design-icon) { |
| 124 | + bottom: 0; |
| 125 | + transition: transform 0.2s ease-in-out; |
| 126 | + } |
| 127 | +
|
| 128 | + &:hover { |
| 129 | + :deep(svg) { |
| 130 | + transform: scaleX(1.15); |
| 131 | + transform-origin: left; |
| 132 | + color: var(--ks-content-link); |
| 133 | + } |
| 134 | + } |
| 135 | + } |
| 136 | +
|
| 137 | + &:hover { |
| 138 | + a :deep(.material-design-icon) { |
| 139 | + transform: scaleX(1.15); |
| 140 | + transform-origin: left; |
| 141 | + } |
137 | 142 | } |
138 | 143 | p { |
139 | 144 | margin-bottom: 0; |
|
144 | 149 | padding-inline: $spacer; |
145 | 150 | |
146 | 151 | .text-truncate { |
147 | | - color: var(--ks-content-primary); |
| 152 | + color: $white; |
148 | 153 | min-width: 0; |
149 | 154 | flex-shrink: 1; |
| 155 | + font-weight: 600; |
150 | 156 | } |
151 | 157 | } |
152 | | - button { |
153 | | - position: absolute; |
154 | | - right: 3px; |
155 | | - top: 3px; |
156 | | - background: none; |
157 | | - border: 0; |
158 | | - font-size: 24px; |
159 | | - color: $white; |
160 | | - } |
161 | 158 | } |
162 | 159 | } |
163 | 160 |
|
|
0 commit comments