Skip to content

Commit

Permalink
✨ 修改favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
snowykami committed Sep 11, 2024
1 parent 7fdffb9 commit 779ef26
Show file tree
Hide file tree
Showing 15 changed files with 86 additions and 65 deletions.
52 changes: 14 additions & 38 deletions .vitepress/blog-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@
import {getThemeConfig} from '@sugarat/theme/node'

// 开启RSS支持(RSS配置)
// import type { Theme } from '@sugarat/theme'
import type { Theme } from '@sugarat/theme'

// const baseUrl = 'https://sugarat.top'
// const RSS: Theme.RSSOptions = {
// title: '粥里有勺糖',
// baseUrl,
// copyright: 'Copyright (c) 2018-present, 粥里有勺糖',
// description: '你的指尖,拥有改变世界的力量(大前端相关技术分享)',
// language: 'zh-cn',
// image: 'https://img.cdn.sugarat.top/mdImg/MTY3NDk5NTE2NzAzMA==674995167030',
// favicon: 'https://sugarat.top/favicon.ico',
// }
const baseUrl = 'https://sfkm.me'
const RSS: Theme.RSSOptions = {
title: "Snowykami's Blog RSS",
baseUrl,
copyright: `Copyright (c) ${new Date().getFullYear()} Snowykami`,
description: 'Snowykami的个人博客RSS订阅',
language: 'zh-cn',
favicon: 'https://sfkm.me/favicon.ico',
}

// 所有配置项,详见文档: https://theme.sugarat.top/
const blogTheme = getThemeConfig({
// 开启RSS支持
// RSS,
RSS,

// 搜索
// 默认开启pagefind离线的全文搜索支持(如使用其它的可以设置为false)
Expand All @@ -33,7 +32,7 @@ const blogTheme = getThemeConfig({
version: false,
copyright: {
message: 'Snowykami',
link: "https://snowykami.github.io/",
link: "https://github.com/snowykami/blog",
},
bottomMessage: [
"Power by <a href='https://vitepress.dev/'>VitePress</a>",
Expand All @@ -57,41 +56,18 @@ const blogTheme = getThemeConfig({
url: 'https://liteyuki.icu/',
}
],

// 公告
popover: {
mobileMinify: true,
title: '动态',
body: [
// { type: 'text', content: '👇公众号👇---👇 微信 👇' },
// {
// type: 'image',
// src: 'https://img.cdn.sugarat.top/mdImg/MTYxNTAxODc2NTIxMA==615018765210~fmt.webp'
// },
// {
// type: 'text',
// content: '欢迎大家加群&私信交流'
// },
// {
// type: 'text',
// content: '文章首/文尾有群二维码',
// style: 'padding-top:0'
// },
{
type: 'button',
content: '轻雪机器人开发...',
link: 'https://bot.lieyuki.icu'
link: 'https://bot.liteyuki.icu'
},
// {
// type: 'button',
// content: '加群交流',
// props: {
// type: 'success'
// },
// link: 'https://theme.sugarat.top/group.html',
// }
],
duration: 0
},
})

export {blogTheme}
32 changes: 18 additions & 14 deletions .vitepress/config/data.ts
Original file line number Diff line number Diff line change
@@ -1,45 +1,49 @@
const githubSvg = "<svg t=\"1725941380731\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"9876\" width=\"256\" height=\"256\"><path d=\"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9 23.5 23.2 38.1 55.4 38.1 91v112.5c0.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z\" p-id=\"9877\" fill=\"#a2d8f4\"></path></svg>"
const giteaSvg = "<svg t=\"1725391346807\" class=\"icon\" viewBox=\"0 0 1025 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"5067\" width=\"256\" height=\"256\"><path d=\"M1004.692673 466.396616l-447.094409-447.073929c-25.743103-25.763582-67.501405-25.763582-93.264987 0l-103.873521 103.873521 78.171378 78.171378c12.533635-6.00058 26.562294-9.359266 41.389666-9.359266 53.02219 0 96.00928 42.98709 96.00928 96.00928 0 14.827372-3.358686 28.856031-9.359266 41.389666l127.97824 127.97824c12.533635-6.00058 26.562294-9.359266 41.389666-9.359266 53.02219 0 96.00928 42.98709 96.00928 96.00928s-42.98709 96.00928-96.00928 96.00928-96.00928-42.98709-96.00928-96.00928c0-14.827372 3.358686-28.856031 9.359266-41.389666l-127.97824-127.97824c-3.051489 1.454065-6.184898 2.744293-9.379746 3.870681l0 266.97461c37.273227 13.188988 63.99936 48.721433 63.99936 90.520695 0 53.02219-42.98709 96.00928-96.00928 96.00928s-96.00928-42.98709-96.00928-96.00928c0-41.799262 26.726133-77.331707 63.99936-90.520695l0-266.97461c-37.273227-13.188988-63.99936-48.721433-63.99936-90.520695 0-14.827372 3.358686-28.856031 9.359266-41.389666l-78.171378-78.171378-295.892081 295.871601c-25.743103 25.784062-25.743103 67.542365 0 93.285467l447.114889 447.073929c25.743103 25.743103 67.480925 25.743103 93.264987 0l445.00547-445.00547c25.763582-25.763582 25.763582-67.542365 0-93.285467z\" fill=\"#a2d8f4\" p-id=\"5068\"></path></svg>"
const qqSvg = "<svg t=\"1725939641572\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"4288\" width=\"256\" height=\"256\"><path d=\"M824.8 613.2c-16-51.4-34.4-94.6-62.7-165.3C766.5 262.2 689.3 112 511.5 112 331.7 112 256.2 265.2 261 447.9c-28.4 70.8-46.7 113.7-62.7 165.3-34 109.5-23 154.8-14.6 155.8 18 2.2 70.1-82.4 70.1-82.4 0 49 25.2 112.9 79.8 159-26.4 8.1-85.7 29.9-71.6 53.8 11.4 19.3 196.2 12.3 249.5 6.3 53.3 6 238.1 13 249.5-6.3 14.1-23.8-45.3-45.7-71.6-53.8 54.6-46.2 79.8-110.1 79.8-159 0 0 52.1 84.6 70.1 82.4 8.5-1.1 19.5-46.4-14.5-155.8z\" p-id=\"4289\" fill=\"#a2d8f4\"></path></svg>"
const bilibiliSvg = "<svg t=\"1725939677331\" class=\"icon\" viewBox=\"0 0 1129 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"5345\" width=\"256\" height=\"256\"><path d=\"M234.909 9.656a80.468 80.468 0 0 1 68.398 0 167.374 167.374 0 0 1 41.843 30.578l160.937 140.82h115.07l160.936-140.82a168.983 168.983 0 0 1 41.843-30.578A80.468 80.468 0 0 1 930.96 76.445a80.468 80.468 0 0 1-17.703 53.914 449.818 449.818 0 0 1-35.406 32.187 232.553 232.553 0 0 1-22.531 18.508h100.585a170.593 170.593 0 0 1 118.289 53.109 171.397 171.397 0 0 1 53.914 118.288v462.693a325.897 325.897 0 0 1-4.024 70.007 178.64 178.64 0 0 1-80.468 112.656 173.007 173.007 0 0 1-92.539 25.75h-738.7a341.186 341.186 0 0 1-72.421-4.024A177.835 177.835 0 0 1 28.91 939.065a172.202 172.202 0 0 1-27.36-92.539V388.662a360.498 360.498 0 0 1 0-66.789A177.03 177.03 0 0 1 162.487 178.64h105.414c-16.899-12.07-31.383-26.555-46.672-39.43a80.468 80.468 0 0 1-25.75-65.984 80.468 80.468 0 0 1 39.43-63.57M216.4 321.873a80.468 80.468 0 0 0-63.57 57.937 108.632 108.632 0 0 0 0 30.578v380.615a80.468 80.468 0 0 0 55.523 80.469 106.218 106.218 0 0 0 34.601 5.632h654.208a80.468 80.468 0 0 0 76.444-47.476 112.656 112.656 0 0 0 8.047-53.109v-354.06a135.187 135.187 0 0 0 0-38.625 80.468 80.468 0 0 0-52.304-54.719 129.554 129.554 0 0 0-49.89-7.242H254.22a268.764 268.764 0 0 0-37.82 0z m0 0\" fill=\"#a2d8f4\" p-id=\"5346\"></path><path d=\"M348.369 447.404a80.468 80.468 0 0 1 55.523 18.507 80.468 80.468 0 0 1 28.164 59.547v80.468a80.468 80.468 0 0 1-16.094 51.5 80.468 80.468 0 0 1-131.968-9.656 104.609 104.609 0 0 1-10.46-54.719v-80.468a80.468 80.468 0 0 1 70.007-67.593z m416.02 0a80.468 80.468 0 0 1 86.102 75.64v80.468a94.148 94.148 0 0 1-12.07 53.11 80.468 80.468 0 0 1-132.773 0 95.757 95.757 0 0 1-12.875-57.133V519.02a80.468 80.468 0 0 1 70.007-70.812z m0 0\" fill=\"#a2d8f4\" p-id=\"5347\"></path></svg>"
const emailSvg = "<svg t=\"1725939702922\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"7283\" width=\"256\" height=\"256\"><path d=\"M926.47619 355.644952V780.190476a73.142857 73.142857 0 0 1-73.142857 73.142857H170.666667a73.142857 73.142857 0 0 1-73.142857-73.142857V355.644952l304.103619 257.828572a170.666667 170.666667 0 0 0 220.745142 0L926.47619 355.644952zM853.333333 170.666667a74.044952 74.044952 0 0 1 26.087619 4.778666 72.704 72.704 0 0 1 30.622477 22.186667 73.508571 73.508571 0 0 1 10.678857 17.67619c3.169524 7.509333 5.12 15.652571 5.607619 24.210286L926.47619 243.809524v24.380952L559.469714 581.241905a73.142857 73.142857 0 0 1-91.306666 2.901333l-3.632762-2.925714L97.52381 268.190476v-24.380952a72.899048 72.899048 0 0 1 40.155428-65.292191A72.97219 72.97219 0 0 1 170.666667 170.666667h682.666666z\" p-id=\"7284\" fill=\"#a2d8f4\"></path></svg>"
const ncmSvg = "<svg t=\"1725939746608\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"8803\" width=\"256\" height=\"256\"><path d=\"M338.048 349.248\" fill=\"#a2d8f4\" p-id=\"8804\"></path><path d=\"M521.024 82.112c-244.224 0-442.176 197.952-442.176 442.176s197.952 442.176 442.176 442.176 442.176-197.952 442.176-442.176S765.248 82.112 521.024 82.112zM727.552 660.928c-18.048 51.584-68.096 100.544-127.36 123.264-31.424 12.352-94.912 16.512-129.408 8.256C315.52 756.288 236.16 559.872 319.168 418.048c27.328-46.912 101.568-110.336 128.896-110.336 6.208 0 15.488 4.672 20.096 9.792 16.512 18.048 8.256 31.488-36.096 62.912-62.912 44.864-90.24 95.424-90.24 166.592 0 57.728 21.632 107.264 64.96 146.944 35.584 32.512 63.936 43.84 113.472 44.352 69.12 0 118.592-29.376 147.456-87.68 15.488-31.424 16-35.584 13.952-79.424-2.048-39.68-4.096-49.472-17.536-70.656-14.464-23.232-58.752-55.168-66.496-47.936-1.536 2.048 1.536 21.632 7.744 43.84 5.696 22.208 10.304 44.864 10.304 50.56 0 41.792-32.512 85.056-71.68 95.936-66.496 18.048-120.64-33.024-120.64-113.984 0-56.192 27.84-98.496 79.424-121.664l18.56-8.256-2.048-44.352c-2.56-40.192-1.536-45.888 8.768-59.328 25.28-31.424 66.496-42.816 101.568-27.84 21.12 8.768 42.816 30.4 42.816 42.304 0 11.84-13.952 28.864-23.744 28.864-3.584 0-16-4.608-27.328-10.816-25.28-12.864-36.608-11.328-46.4 6.208-6.208 11.328-6.72 17.536-1.536 34.56 5.696 19.072 8.256 21.12 30.912 26.816 58.24 13.952 97.472 48.96 120.64 107.776C739.904 541.312 741.504 622.272 727.552 660.928z\" fill=\"#a2d8f4\" p-id=\"8805\"></path><path d=\"M503.168 472.128c-16.512 10.304-33.024 42.304-33.024 65.472 0 19.584 13.44 46.912 25.792 53.632 22.656 12.352 56.704-8.768 56.704-35.072 0-7.744-4.096-32-8.768-54.144C533.568 458.176 529.984 455.616 503.168 472.128z\" fill=\"#a2d8f4\" p-id=\"8806\"></path></svg>"


export const socialLinks = [
{
"name": "GitHub",
"icon": {svg: githubSvg},
"icon": {
svg: "<svg t=\"1726044590884\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"4244\" width=\"256\" height=\"256\"><path d=\"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9 23.5 23.2 38.1 55.4 38.1 91v112.5c0.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z\" p-id=\"4245\"></path></svg>",
},
"text": "@snowykami",
"link": "https://github.com/snowykami",
},
{
"name": "Gitea-Liteyuki",
"icon": {svg: giteaSvg},
"icon": {
svg: "<svg t=\"1726046221186\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"6257\" width=\"256\" height=\"256\"><path d=\"M1004.72704 466.4L557.62304 19.328a65.952 65.952 0 0 0-93.28 0L360.47104 123.2l78.176 78.176a96 96 0 0 1 128 128l127.968 127.968a96 96 0 1 1-45.248 45.248l-127.968-127.968a88.832 88.832 0 0 1-9.376 3.872v266.976a96 96 0 1 1-64 0v-266.976a96 96 0 0 1-54.624-131.904L315.22304 168.416 19.31904 464.288a65.952 65.952 0 0 0 0 93.28l447.136 447.072a65.952 65.952 0 0 0 93.28 0l444.992-444.992a65.952 65.952 0 0 0 0-93.28z\" p-id=\"6258\" fill=\"#1296db\"></path></svg>"
},
"text": "@snowykami",
"link": "https://git.liteyuki.icu/snowykami",
},
{
"name": "QQ",
"icon": {svg: qqSvg},
"icon": {
svg: "<svg t=\"1726044644739\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"5225\" width=\"256\" height=\"256\"><path d=\"M824.8 613.2c-16-51.4-34.4-94.6-62.7-165.3C766.5 262.2 689.3 112 511.5 112 331.7 112 256.2 265.2 261 447.9c-28.4 70.8-46.7 113.7-62.7 165.3-34 109.5-23 154.8-14.6 155.8 18 2.2 70.1-82.4 70.1-82.4 0 49 25.2 112.9 79.8 159-26.4 8.1-85.7 29.9-71.6 53.8 11.4 19.3 196.2 12.3 249.5 6.3 53.3 6 238.1 13 249.5-6.3 14.1-23.8-45.3-45.7-71.6-53.8 54.6-46.2 79.8-110.1 79.8-159 0 0 52.1 84.6 70.1 82.4 8.5-1.1 19.5-46.4-14.5-155.8z\" p-id=\"5226\" fill=\"#1296db\"></path></svg>",
},
"text": "2751454815",
"link": "https://qm.qq.com/q/XwZt1oCccS",
},
{
"name": "bilibili",
"icon": {svg: bilibiliSvg},
"icon": {
svg: "<svg t=\"1726046259889\" class=\"icon\" viewBox=\"0 0 1129 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"7534\" width=\"256\" height=\"256\"><path d=\"M234.909 9.656a80.468 80.468 0 0 1 68.398 0 167.374 167.374 0 0 1 41.843 30.578l160.937 140.82h115.07l160.936-140.82a168.983 168.983 0 0 1 41.843-30.578A80.468 80.468 0 0 1 930.96 76.445a80.468 80.468 0 0 1-17.703 53.914 449.818 449.818 0 0 1-35.406 32.187 232.553 232.553 0 0 1-22.531 18.508h100.585a170.593 170.593 0 0 1 118.289 53.109 171.397 171.397 0 0 1 53.914 118.288v462.693a325.897 325.897 0 0 1-4.024 70.007 178.64 178.64 0 0 1-80.468 112.656 173.007 173.007 0 0 1-92.539 25.75h-738.7a341.186 341.186 0 0 1-72.421-4.024A177.835 177.835 0 0 1 28.91 939.065a172.202 172.202 0 0 1-27.36-92.539V388.662a360.498 360.498 0 0 1 0-66.789A177.03 177.03 0 0 1 162.487 178.64h105.414c-16.899-12.07-31.383-26.555-46.672-39.43a80.468 80.468 0 0 1-25.75-65.984 80.468 80.468 0 0 1 39.43-63.57M216.4 321.873a80.468 80.468 0 0 0-63.57 57.937 108.632 108.632 0 0 0 0 30.578v380.615a80.468 80.468 0 0 0 55.523 80.469 106.218 106.218 0 0 0 34.601 5.632h654.208a80.468 80.468 0 0 0 76.444-47.476 112.656 112.656 0 0 0 8.047-53.109v-354.06a135.187 135.187 0 0 0 0-38.625 80.468 80.468 0 0 0-52.304-54.719 129.554 129.554 0 0 0-49.89-7.242H254.22a268.764 268.764 0 0 0-37.82 0z m0 0\" fill=\"#20B0E3\" p-id=\"7535\"></path><path d=\"M348.369 447.404a80.468 80.468 0 0 1 55.523 18.507 80.468 80.468 0 0 1 28.164 59.547v80.468a80.468 80.468 0 0 1-16.094 51.5 80.468 80.468 0 0 1-131.968-9.656 104.609 104.609 0 0 1-10.46-54.719v-80.468a80.468 80.468 0 0 1 70.007-67.593z m416.02 0a80.468 80.468 0 0 1 86.102 75.64v80.468a94.148 94.148 0 0 1-12.07 53.11 80.468 80.468 0 0 1-132.773 0 95.757 95.757 0 0 1-12.875-57.133V519.02a80.468 80.468 0 0 1 70.007-70.812z m0 0\" fill=\"#20B0E3\" p-id=\"7536\"></path></svg>"
},
"text": "Snowykami",
"link": "https://space.bilibili.com/233938750",
},
{
"name": "LiteyukiMail",
"icon": {svg: emailSvg},
"icon": {
svg: "<svg t=\"1726046278712\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"8553\" width=\"256\" height=\"256\"><path d=\"M926.47619 355.644952V780.190476a73.142857 73.142857 0 0 1-73.142857 73.142857H170.666667a73.142857 73.142857 0 0 1-73.142857-73.142857V355.644952l304.103619 257.828572a170.666667 170.666667 0 0 0 220.745142 0L926.47619 355.644952zM853.333333 170.666667a74.044952 74.044952 0 0 1 26.087619 4.778666 72.704 72.704 0 0 1 30.622477 22.186667 73.508571 73.508571 0 0 1 10.678857 17.67619c3.169524 7.509333 5.12 15.652571 5.607619 24.210286L926.47619 243.809524v24.380952L559.469714 581.241905a73.142857 73.142857 0 0 1-91.306666 2.901333l-3.632762-2.925714L97.52381 268.190476v-24.380952a72.899048 72.899048 0 0 1 40.155428-65.292191A72.97219 72.97219 0 0 1 170.666667 170.666667h682.666666z\" p-id=\"8554\" fill=\"#17abe3\"></path></svg>"
},
"text": "[email protected]",
"link": "mailto:[email protected]",
},
{
"name": "NetEase Cloud Music",
"icon": {svg: ncmSvg},
"icon": {
svg: "<svg t=\"1726046327622\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"10339\" width=\"256\" height=\"256\"><path d=\"M338.048 349.248\" p-id=\"10340\" fill=\"#17abe3\"></path><path d=\"M521.024 82.112c-244.224 0-442.176 197.952-442.176 442.176s197.952 442.176 442.176 442.176 442.176-197.952 442.176-442.176S765.248 82.112 521.024 82.112zM727.552 660.928c-18.048 51.584-68.096 100.544-127.36 123.264-31.424 12.352-94.912 16.512-129.408 8.256C315.52 756.288 236.16 559.872 319.168 418.048c27.328-46.912 101.568-110.336 128.896-110.336 6.208 0 15.488 4.672 20.096 9.792 16.512 18.048 8.256 31.488-36.096 62.912-62.912 44.864-90.24 95.424-90.24 166.592 0 57.728 21.632 107.264 64.96 146.944 35.584 32.512 63.936 43.84 113.472 44.352 69.12 0 118.592-29.376 147.456-87.68 15.488-31.424 16-35.584 13.952-79.424-2.048-39.68-4.096-49.472-17.536-70.656-14.464-23.232-58.752-55.168-66.496-47.936-1.536 2.048 1.536 21.632 7.744 43.84 5.696 22.208 10.304 44.864 10.304 50.56 0 41.792-32.512 85.056-71.68 95.936-66.496 18.048-120.64-33.024-120.64-113.984 0-56.192 27.84-98.496 79.424-121.664l18.56-8.256-2.048-44.352c-2.56-40.192-1.536-45.888 8.768-59.328 25.28-31.424 66.496-42.816 101.568-27.84 21.12 8.768 42.816 30.4 42.816 42.304 0 11.84-13.952 28.864-23.744 28.864-3.584 0-16-4.608-27.328-10.816-25.28-12.864-36.608-11.328-46.4 6.208-6.208 11.328-6.72 17.536-1.536 34.56 5.696 19.072 8.256 21.12 30.912 26.816 58.24 13.952 97.472 48.96 120.64 107.776C739.904 541.312 741.504 622.272 727.552 660.928z\" p-id=\"10341\" fill=\"#17abe3\"></path><path d=\"M503.168 472.128c-16.512 10.304-33.024 42.304-33.024 65.472 0 19.584 13.44 46.912 25.792 53.632 22.656 12.352 56.704-8.768 56.704-35.072 0-7.744-4.096-32-8.768-54.144C533.568 458.176 529.984 455.616 503.168 472.128z\" p-id=\"10342\" fill=\"#17abe3\"></path></svg>"
},
"text": "Snowykami",
"link": "https://music.163.com/#/artist?id=46413018",
}
Expand Down
Binary file added .vitepress/theme/assets/bg-dark-1.webp
Binary file not shown.
Binary file added .vitepress/theme/assets/bg-dark-2.webp
Binary file not shown.
Binary file added .vitepress/theme/assets/bg-dark-3.webp
Binary file not shown.
Binary file added .vitepress/theme/assets/bg-dark-4.webp
Binary file not shown.
Binary file added .vitepress/theme/assets/bg-dark-5.webp
Binary file not shown.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ import './user-theme.css'

// 自定义主题色
// import './user-theme.css'

export default BlogTheme
21 changes: 15 additions & 6 deletions .vitepress/theme/style.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@

@function get-background-image($theme) {
@if $theme == 'dark' {
@return "./assets/bg-dark-" + #{random(4)} + ".webp";
} @else {
@return "./assets/bg-light-" + #{random(2)} + ".webp";
}
}


.VPHome {
// 定义遮罩样式
background: radial-gradient(
ellipse,
rgba(var(--bg-gradient-home), 0.8) 0%,
rgba(var(--bg-gradient-home), 0) 150%
circle,
rgba(var(--bg-gradient-home), 0.5) 150%,
rgba(var(--bg-gradient-home), 0.5) 150%
);

// 自定义首页背景图
&::before {
background-image: url(assets/bg-light.webp);
background-image: url(get-background-image('light'));
background-size: cover;

.dark & {
background-image: url(assets/bg-dark.webp);
background-image: url(get-background-image('dark'));
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions .vitepress/theme/user-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@

/* 浅色模式使用的变量 */
html[theme] {
--vp-c-user-1: #a2d8f4;
--vp-c-user-2: blue;
--vp-c-user-3: #a2d8f4;
--vp-c-user-1: #149ef8;
--vp-c-user-2: #047ed9;
--vp-c-user-3: #149ef8;
--vp-c-user-soft: rgba(255, 0, 0, .5);
}

/* 深色模式使用的变量 */
html[theme].dark {
--vp-c-user-1: yellow;
--vp-c-user-2: purple;
--vp-c-user-3: orange;
--vp-c-user-1: #149ef8;
--vp-c-user-2: #036db6;
--vp-c-user-3: #1a5d86;
--vp-c-user-soft: rgba(255, 255, 0, .5);
}

Expand Down
Loading

0 comments on commit 779ef26

Please sign in to comment.