✨ feat: add random title
This commit is contained in:
parent
5a5cbfb14a
commit
f50f6cc9ab
19
src/App.vue
19
src/App.vue
@ -3,6 +3,20 @@ import { onMounted, reactive } from 'vue'
|
|||||||
import StarTrails from './components/StarTrails.vue'
|
import StarTrails from './components/StarTrails.vue'
|
||||||
|
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
|
titleList: [
|
||||||
|
'希望能成为有趣的人',
|
||||||
|
'给时光以生命<br>给岁月以文明',
|
||||||
|
'你好,请多指教',
|
||||||
|
'一望无际的迷雾中,<br/>有人在寻找光明!',
|
||||||
|
'你所热爱的<br>就是你的生活',
|
||||||
|
'当你在凝视着网页的时候<br>网页也正在凝视着你',
|
||||||
|
'热爱……',
|
||||||
|
'平凡的日常正奇迹的发生着',
|
||||||
|
'敬畏之心!',
|
||||||
|
'赞美之心!',
|
||||||
|
'我很好奇!',
|
||||||
|
'*舒缓的现代音乐*',
|
||||||
|
],
|
||||||
navLinks: [{
|
navLinks: [{
|
||||||
name: '博 客',
|
name: '博 客',
|
||||||
link: 'https://blog.sunguoqi.com',
|
link: 'https://blog.sunguoqi.com',
|
||||||
@ -102,8 +116,7 @@ onMounted(() => {
|
|||||||
<!-- 大标题 -->
|
<!-- 大标题 -->
|
||||||
<section ml-15vw absolute>
|
<section ml-15vw absolute>
|
||||||
<div text-10 text-white font-bold tracking-widest>
|
<div text-10 text-white font-bold tracking-widest>
|
||||||
你所热爱的<br>
|
{{ data.titleList[Math.floor(Math.random() * data.titleList.length)] }}
|
||||||
就是你的生活
|
|
||||||
</div>
|
</div>
|
||||||
<div flex items-center>
|
<div flex items-center>
|
||||||
<div mr-4 flex gap-2>
|
<div mr-4 flex gap-2>
|
||||||
@ -190,7 +203,7 @@ onMounted(() => {
|
|||||||
<p>路虽远行则将至,事虽难做则必成</p>
|
<p>路虽远行则将至,事虽难做则必成</p>
|
||||||
<i i-ant-design-environment-outlined ml-1 />
|
<i i-ant-design-environment-outlined ml-1 />
|
||||||
</div>
|
</div>
|
||||||
<div mt-2 f-c-c class="text-white/60" gap-4>
|
<div class="text-white/60" mb-3 mt-2 f-c-c gap-4>
|
||||||
<div>皖 ICP 备 2021010058 号</div>
|
<div>皖 ICP 备 2021010058 号</div>
|
||||||
<div>© 2024 小孙同学</div>
|
<div>© 2024 小孙同学</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user