diff --git a/src/components/expandable-tags/index.vue b/src/components/expandable-tags/index.vue new file mode 100644 index 0000000..446c32c --- /dev/null +++ b/src/components/expandable-tags/index.vue @@ -0,0 +1,205 @@ + + + diff --git a/src/components/expandable-tags/style.scss b/src/components/expandable-tags/style.scss new file mode 100644 index 0000000..93ba986 --- /dev/null +++ b/src/components/expandable-tags/style.scss @@ -0,0 +1,40 @@ +.expandable-tags-container { + width: 100%; + overflow: hidden; + .cts { + font-family: $font-family-regular; + font-size: 12px; + font-style: normal; + font-weight: 400; + } + .tag-list { + display: flex; + flex-wrap: wrap; + gap: 8px; + transition: all 0.3s; + .tag-item { + padding: 0 8px; + background-color: #f6f4ff; + border-radius: 4px; + transition: all 0.3s; + &.clickable { + cursor: pointer; + &:hover { + box-shadow: 0 4px 8px 0 rgba(109, 76, 254, 0.1); + } + } + } + .expand-btn { + transition: all 0.3s; + } + &.expand { + max-height: none !important; + .expand-btn { + .icon { + transform: rotate(180deg); + transition: all 0.3s; + } + } + } + } +} diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 2b04cc1..77266a1 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1,7 +1,8 @@ -