valaxy-theme-yun 0.22.7 → 0.22.9
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/project/YunProjectCard.vue +2 -1
- package/components/site/YunSiteTitle.vue +12 -4
- package/components/theme/nimbo/YunNimboNavMenu.vue +1 -1
- package/docs/zh-CN/config.md +15 -3
- package/layouts/home.vue +24 -21
- package/package.json +3 -3
- package/styles/css-vars.scss +2 -0
- package/styles/index.ts +2 -0
- package/types/index.d.ts +5 -0
- /package/styles/{index.scss → main.scss} +0 -0
@@ -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/docs/zh-CN/config.md
CHANGED
@@ -38,12 +38,18 @@ export default defineConfig<ThemeConfig>({
|
|
38
38
|
> 如果您想要更改云的色彩,请更改 `var(--yun-c-cloud)` 的值
|
39
39
|
|
40
40
|
```scss
|
41
|
-
// 新建 styles/
|
41
|
+
// 新建 styles/vars.css 文件
|
42
42
|
:root {
|
43
43
|
--yun-c-cloud: red;
|
44
44
|
}
|
45
45
|
```
|
46
46
|
|
47
|
+
新建 `styles/index.ts` 文件,引入 `vars.css`。
|
48
|
+
|
49
|
+
```ts
|
50
|
+
import './vars.css'
|
51
|
+
```
|
52
|
+
|
47
53
|
## 自定义友情链接
|
48
54
|
|
49
55
|
新建 `pages/links/index.md` 文件。
|
@@ -88,9 +94,15 @@ random: true
|
|
88
94
|
|
89
95
|
### 覆盖背景、侧边栏图片
|
90
96
|
|
91
|
-
|
97
|
+
您可以新建样式文件并引入,以覆盖默认 CSS 变量。
|
92
98
|
|
93
|
-
```
|
99
|
+
```ts
|
100
|
+
// styles/index.ts
|
101
|
+
import './vars.scss'
|
102
|
+
```
|
103
|
+
|
104
|
+
```scss
|
105
|
+
// styles/vars.scss
|
94
106
|
:root {
|
95
107
|
/* 背景图片 */
|
96
108
|
--yun-bg-img: url("https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg");
|
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.9",
|
5
5
|
"author": {
|
6
6
|
"email": "me@yunyoujun.cn",
|
7
7
|
"name": "YunYouJun",
|
@@ -24,7 +24,7 @@
|
|
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.25",
|
28
28
|
"@vueuse/motion": "^2.2.6",
|
29
29
|
"animejs": "^3.2.2",
|
30
30
|
"gsap": "^3.12.7",
|
@@ -32,7 +32,7 @@
|
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
34
34
|
"@types/animejs": "^3.1.13",
|
35
|
-
"valaxy": "0.22.
|
35
|
+
"valaxy": "0.22.9",
|
36
36
|
"valaxy-addon-waline": "0.2.0"
|
37
37
|
},
|
38
38
|
"scripts": {
|
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 {
|
package/styles/index.ts
ADDED
package/types/index.d.ts
CHANGED
File without changes
|