valaxy-theme-hairy 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- package/components/HairyLinks.vue +17 -9
- package/package.json +1 -1
@@ -14,7 +14,10 @@ defineProps<{
|
|
14
14
|
<template>
|
15
15
|
<div class="min-h-30vh">
|
16
16
|
<div class="links">
|
17
|
-
<div
|
17
|
+
<div
|
18
|
+
v-for="(item, index) in links" :key="index" class="link-block flex items-center py-0.5rem px-1rem rounded-lg"
|
19
|
+
:style="{ '--block-color': item.color }"
|
20
|
+
>
|
18
21
|
<a :href="item.url" class="w-4rem h-4rem">
|
19
22
|
<HairyImage class="w-full h-full rounded-xl" :src="item.image" />
|
20
23
|
</a>
|
@@ -22,7 +25,7 @@ defineProps<{
|
|
22
25
|
<a :href="item.url" class="font-bold text-lg title">
|
23
26
|
{{ item.name }}
|
24
27
|
</a>
|
25
|
-
<div class="max-w-180px text-sm my-0.5rem truncate">
|
28
|
+
<div class="max-w-180px text-sm my-0.5rem truncate desc">
|
26
29
|
{{ item.desc }}
|
27
30
|
</div>
|
28
31
|
</div>
|
@@ -34,23 +37,28 @@ defineProps<{
|
|
34
37
|
<style lang="scss" scoped>
|
35
38
|
.link-block {
|
36
39
|
border: 0.0625rem solid #f7f7f7;
|
37
|
-
box-shadow: 0 0.625rem 1.875rem -0.9375rem rgba(0,0,0,0.1);
|
40
|
+
box-shadow: 0 0.625rem 1.875rem -0.9375rem rgba(0, 0, 0, 0.1);
|
38
41
|
--bg-color: var(--block-color, #666);
|
39
42
|
@apply transition-all;
|
43
|
+
|
40
44
|
.title {
|
41
45
|
color: var(--block-color);
|
42
46
|
}
|
43
47
|
}
|
48
|
+
|
44
49
|
.dark .link-block {
|
45
50
|
background: rgba($color: #989898, $alpha: 0.1);
|
46
51
|
}
|
52
|
+
|
47
53
|
.links .link-block:hover {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
+
background-color: var(--bg-color);
|
55
|
+
box-shadow: 0 0.125rem 1.25rem var(--bg-color);
|
56
|
+
border-color: var(--bg-color);
|
57
|
+
|
58
|
+
.title,
|
59
|
+
.desc {
|
60
|
+
color: #fff;
|
61
|
+
}
|
54
62
|
}
|
55
63
|
|
56
64
|
.links {
|