前言
最近我的网站越来越多了,我的🧠似乎无法记住所有的网站……于是正好啊 来做一个个人主页!
我使用了imsyy大佬主页很美观 示例:min的主页
我发现READMD对某些配置不是太清楚 所以有了本文。
修改自定义文字
找到文件
1
| components/MoreContent.vue
|
原代码
1 2 3
| <template> <div class="more-content">您可在此编写任意内容</div> </template>
|
修改为(多行文字示例)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| <template> <div class="more-content"> <p class="line1">你好朋友!</p> <p class="line2">欢迎来到我的个人主页</p> <p class="line3">希望你有美好的一天!</p> </div> </template>
<style lang="scss" scoped> .more-content { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 20px; width: 100%; height: 100%; color: #fff; text-align: center; }
.line1 { font-size: 28px; font-weight: bold; margin: 5px 0; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.line2 { font-size: 22px; margin: 5px 0; opacity: 0.9; }
.line3 { font-size: 18px; margin: 5px 0; opacity: 0.8; } </style>
|
修改壁纸API
找到文件
找到 changeBg 函数
1 2 3 4 5 6 7 8 9 10 11 12
| const changeBg = (type) => { if (type == 0) { bgUrl.value = `/images/background${bgRandom}.jpg`; } else if (type == 1) { bgUrl.value = "https://api.dujin.org/bing/1920.php"; } else if (type == 2) { bgUrl.value = "https://api.vvhan.com/api/wallpaper/views"; } else if (type == 3) { bgUrl.value = "https://api.vvhan.com/api/wallpaper/acg"; } };
|
修改为(你的配置)
1 2 3 4 5 6 7 8 9 10 11 12
| const changeBg = (type) => { if (type == 0) { bgUrl.value = "https://djkl.qzz.io/file/1771226762706_yileina.png"; } else if (type == 1) { bgUrl.value = "https://api.dujin.org/bing/1920.php"; } else if (type == 2) { bgUrl.value = "https://wp.upx8.com/api.php"; } else if (type == 3) { bgUrl.value = "https://api.yppp.net/api.php"; } };
|
设置默认壁纸
找到 onMounted 部分:
1 2 3 4
| onMounted(() => { changeBg(store.coverType || 3); });
|
删除设置按钮
额 其实这个可以不删的啊 我当时就脑子一热就把这个给删了 其实里面的东西还是有用的 改了这个那就只能用默认的壁纸了哦
找到文件
1
| views/Box/index.vue (或 Box.vue)
|
删除设置按钮代码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| <template> <div class="box cards" @mouseenter="closeShow = true" @mouseleave="closeShow = false"> <transition name="el-fade-in-linear"> <close-one class="close" theme="filled" size="28" fill="#ffffff60" v-show="closeShow" @click="store.boxOpenState = false" /> </transition> <!-- 删除下面这段 --> <!-- <transition name="el-fade-in-linear"> <setting-two class="setting" theme="filled" size="28" fill="#ffffff60" v-show="closeShow" @click="store.setOpenState = true" /> </transition> --> <div class="content"> <TimeCapsule /> <MoreContent /> </div> </div> </template>
|
嗯 这里没有更多了