valaxy-theme-hairy 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,69 @@
1
+ <script lang="ts" setup>
2
+ import { defineProps } from 'vue'
3
+ defineProps<{
4
+ links?: {
5
+ name: string
6
+ url: string
7
+ image: string
8
+ color: string
9
+ desc?: string
10
+ }[]
11
+ }>()
12
+ </script>
13
+
14
+ <template>
15
+ <div class="min-h-30vh">
16
+ <div class="links">
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
+ >
21
+ <a :href="item.url" class="w-4rem h-4rem">
22
+ <HairyImage class="w-full h-full rounded-xl" :src="item.image" />
23
+ </a>
24
+ <div class="pl-1rem flex-1">
25
+ <a :href="item.url" class="font-bold text-lg title">
26
+ {{ item.name }}
27
+ </a>
28
+ <div class="max-w-180px text-sm my-0.5rem truncate desc">
29
+ {{ item.desc }}
30
+ </div>
31
+ </div>
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </template>
36
+
37
+ <style lang="scss" scoped>
38
+ .link-block {
39
+ border: 0.0625rem solid #f7f7f7;
40
+ box-shadow: 0 0.625rem 1.875rem -0.9375rem rgba(0, 0, 0, 0.1);
41
+ --bg-color: var(--block-color, #666);
42
+ @apply transition-all duration-200;
43
+
44
+ .title {
45
+ color: var(--block-color);
46
+ }
47
+ }
48
+
49
+ .dark .link-block {
50
+ background: rgba($color: #989898, $alpha: 0.1);
51
+ }
52
+
53
+ .links .link-block:hover {
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
+ }
62
+ }
63
+
64
+ .links {
65
+ display: grid;
66
+ grid-template-columns: repeat(auto-fill, 300px);
67
+ gap: 24px;
68
+ }
69
+ </style>
@@ -21,7 +21,7 @@ function displayTag(tag: string) {
21
21
  <div text="center" class="max-w-7xl flex flex-wrap justify-center items-center gap-2">
22
22
  <a
23
23
  v-for="[key, tag] in Array.from(tags).sort()"
24
- :key="key" class="post-tag cursor-pointer"
24
+ :key="key" class="post-tag cursor-pointer transition-all duration-200"
25
25
  :style="getTagStyle(tag.count)"
26
26
  p="1"
27
27
  @click="displayTag(key.toString())"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valaxy-theme-hairy",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "packageManager": "pnpm@8.10.5",
5
5
  "author": {
6
6
  "email": "wwu710632@gmail.com",