valaxy-theme-yun 0.22.6 → 0.22.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/YunCategory.vue +1 -1
- package/components/project/YunProjectCard.vue +2 -1
- package/components/site/YunSiteTitle.vue +12 -4
- package/components/theme/nimbo/YunNimboNavMenu.vue +1 -1
- package/layouts/home.vue +24 -21
- package/package.json +6 -6
- package/styles/css-vars.scss +2 -0
- package/types/index.d.ts +5 -0
@@ -81,7 +81,7 @@ if (props.level === 1) {
|
|
81
81
|
<span>
|
82
82
|
{{ category.name === 'Uncategorized' ? t('category.uncategorized') : category.name }}
|
83
83
|
</span>
|
84
|
-
<span class="rounded-full px-1.5 bg-black/5 shadow-sm" text="xs
|
84
|
+
<span class="rounded-full px-1.5 bg-black/5 shadow-sm op-60" text="xs">
|
85
85
|
{{ category.total }}
|
86
86
|
</span>
|
87
87
|
</span>
|
@@ -1,8 +1,9 @@
|
|
1
1
|
<script setup lang="ts">
|
2
|
+
import type { CSSProperties } from 'vue'
|
2
3
|
import type { ProjectItem } from '../../types'
|
3
4
|
import { TinyColor } from '@ctrl/tinycolor'
|
4
5
|
import { useMotion } from '@vueuse/motion'
|
5
|
-
import { computed,
|
6
|
+
import { computed, ref } from 'vue'
|
6
7
|
import { cubicBezier } from '../../client/constants'
|
7
8
|
|
8
9
|
const props = defineProps<{
|
@@ -1,22 +1,30 @@
|
|
1
1
|
<script setup lang="ts">
|
2
2
|
import { useSiteConfig } from 'valaxy'
|
3
|
-
import { ref } from 'vue'
|
4
3
|
import { useRouter } from 'vue-router'
|
4
|
+
import { useThemeConfig } from '../../composables'
|
5
5
|
|
6
6
|
const router = useRouter()
|
7
7
|
const siteConfig = useSiteConfig()
|
8
|
+
const themeConfig = useThemeConfig()
|
8
9
|
|
9
|
-
|
10
|
+
// bg-gradient-to-r gradient-text from-#1e3c72 to-dark dark:(from-#66a6ff to-blue-500)
|
10
11
|
</script>
|
11
12
|
|
12
13
|
<template>
|
13
14
|
<RouterLink
|
14
15
|
v-if="router.hasRoute('/about/site')" to="/about/site"
|
15
|
-
|
16
|
+
class="site-name text-lg leading-loose"
|
17
|
+
:class="themeConfig.banner.siteNameClass"
|
16
18
|
>
|
17
19
|
{{ siteConfig.title }}
|
18
20
|
</RouterLink>
|
19
|
-
<span
|
21
|
+
<span
|
22
|
+
v-else
|
23
|
+
class="site-name text-lg leading-loose"
|
24
|
+
:class="themeConfig.banner.siteNameClass"
|
25
|
+
>
|
26
|
+
{{ siteConfig.title }}
|
27
|
+
</span>
|
20
28
|
</template>
|
21
29
|
|
22
30
|
<style lang="scss">
|
package/layouts/home.vue
CHANGED
@@ -24,29 +24,32 @@ const showNotice = computed(() => {
|
|
24
24
|
'mt-0!': !isPage,
|
25
25
|
}"
|
26
26
|
>
|
27
|
-
<template v-if="
|
28
|
-
<
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
<
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
27
|
+
<template v-if="themeConfig.banner.enable">
|
28
|
+
<template v-if="!isPage">
|
29
|
+
<YunBanner />
|
30
|
+
<Transition
|
31
|
+
enter-from-class="scale-60"
|
32
|
+
enter-to-class="scale-100"
|
33
|
+
enter-active-class="transition-300 transition-cubic-bezier-ease-in-out delay-1000"
|
34
|
+
appear
|
35
|
+
>
|
36
|
+
<div class="absolute top-0 left-5 right-5 bottom-0 flex-center">
|
37
|
+
<Transition
|
38
|
+
enter-from-class="op-0"
|
39
|
+
enter-to-class="op-100"
|
40
|
+
enter-active-class="transition-800 delay-1000"
|
41
|
+
appear
|
42
|
+
>
|
43
|
+
<YunPrologueSquare class="z-1" />
|
44
|
+
</Transition>
|
45
|
+
</div>
|
46
|
+
</Transition>
|
46
47
|
|
47
|
-
|
48
|
-
|
48
|
+
<YunSay v-if="themeConfig.say.enable" w="full" />
|
49
|
+
<YunPrologue v-if="yun.isNimbo" class="absolute left-0 top-0 right-0 bottom-0" />
|
50
|
+
</template>
|
49
51
|
</template>
|
52
|
+
<div v-else class="h-$yun-nav-height" />
|
50
53
|
|
51
54
|
<YunNotice
|
52
55
|
v-if="showNotice"
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "valaxy-theme-yun",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.22.
|
4
|
+
"version": "0.22.8",
|
5
5
|
"author": {
|
6
6
|
"email": "me@yunyoujun.cn",
|
7
7
|
"name": "YunYouJun",
|
@@ -24,16 +24,16 @@
|
|
24
24
|
"@ctrl/tinycolor": "^4.1.0",
|
25
25
|
"@explosions/fireworks": "^0.1.0",
|
26
26
|
"@iconify-json/ant-design": "^1.2.5",
|
27
|
-
"@iconify-json/simple-icons": "^1.2.
|
27
|
+
"@iconify-json/simple-icons": "^1.2.24",
|
28
28
|
"@vueuse/motion": "^2.2.6",
|
29
29
|
"animejs": "^3.2.2",
|
30
|
-
"gsap": "^3.12.
|
30
|
+
"gsap": "^3.12.7",
|
31
31
|
"primevue": "^4.2.5"
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
34
|
-
"@types/animejs": "^3.1.
|
35
|
-
"valaxy
|
36
|
-
"valaxy": "0.
|
34
|
+
"@types/animejs": "^3.1.13",
|
35
|
+
"valaxy": "0.22.8",
|
36
|
+
"valaxy-addon-waline": "0.2.0"
|
37
37
|
},
|
38
38
|
"scripts": {
|
39
39
|
"release": "bumpp && pnpm publish"
|
package/styles/css-vars.scss
CHANGED
@@ -9,6 +9,8 @@
|
|
9
9
|
--yun-home-hero-image-filter: blur(48px);
|
10
10
|
--yun-home-hero-name-background: -webkit-linear-gradient(120deg, var(--va-c-text) 30%, black);
|
11
11
|
--yun-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%);
|
12
|
+
|
13
|
+
--yun-nav-height: 50px;
|
12
14
|
}
|
13
15
|
|
14
16
|
:root {
|