mirror of
https://github.com/imsyy/home.git
synced 2025-05-19 04:30:13 +09:00
Merge 927aed041d
into 0b3844b1a7
This commit is contained in:
commit
070e62b29b
@ -37,6 +37,10 @@ VITE_SITE_START = "2020-10-24"
|
||||
## 若不需要,请设为空即可
|
||||
VITE_SITE_ICP = "豫ICP备2022018134号-1"
|
||||
|
||||
# 公安网备 备案号
|
||||
## 若不需要,请设为空即可
|
||||
VITE_SITE_PSB = "公安网备XXXXXXXXXXX号"
|
||||
|
||||
# 歌曲 API 地址
|
||||
## 请参照 https://github.com/xizeyoupan/Meting-API#deno-deploy 进行 API 服务部署
|
||||
## 此处提供的服务可能会超量从而无法访问,请自行部署
|
||||
|
7061
pnpm-lock.yaml
generated
7061
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
BIN
public/images/icon/phone.png
Normal file
BIN
public/images/icon/phone.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.2 KiB |
BIN
public/images/icon/psb.png
Normal file
BIN
public/images/icon/psb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
public/images/icon/wechat.png
Normal file
BIN
public/images/icon/wechat.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
@ -5,8 +5,7 @@
|
||||
<span>
|
||||
<span :class="startYear < fullYear ? 'c-hidden' : 'hidden'">Copyright </span>
|
||||
©
|
||||
<span v-if="startYear < fullYear"
|
||||
class="site-start">
|
||||
<span v-if="startYear < fullYear" class="site-start">
|
||||
{{ startYear }}
|
||||
-
|
||||
</span>
|
||||
@ -27,6 +26,15 @@
|
||||
{{ siteIcp }}
|
||||
</a>
|
||||
</span>
|
||||
<span>
|
||||
<!-- 站点公安网备备案 -->
|
||||
&
|
||||
<a v-if="sitePsb" :href="`https://beian.mps.gov.cn/#/query/webSearch?code=${sitePsb.match(/\d+/)?.[0]}`"
|
||||
target="_blank" rel="noopener noreferrer">
|
||||
<img src="/public/images/icon/psb.png" style="height:20px;vertical-align:middle;margin-right:5px;">
|
||||
{{ sitePsb }}
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
<div v-else class="lrc">
|
||||
<Transition name="fade" mode="out-in">
|
||||
@ -52,10 +60,11 @@ const fullYear = new Date().getFullYear();
|
||||
// 加载配置数据
|
||||
// const siteStartDate = ref(import.meta.env.VITE_SITE_START);
|
||||
const startYear = ref(
|
||||
import.meta.env.VITE_SITE_START?.length >= 4 ?
|
||||
import.meta.env.VITE_SITE_START.substring(0, 4) : null
|
||||
import.meta.env.VITE_SITE_START?.length >= 4 ?
|
||||
import.meta.env.VITE_SITE_START.substring(0, 4) : null
|
||||
);
|
||||
const siteIcp = ref(import.meta.env.VITE_SITE_ICP);
|
||||
const sitePsb = ref(import.meta.env.VITE_SITE_PSB);
|
||||
const siteAuthor = ref(import.meta.env.VITE_SITE_AUTHOR);
|
||||
const siteUrl = computed(() => {
|
||||
const url = import.meta.env.VITE_SITE_URL;
|
||||
@ -82,24 +91,29 @@ const siteUrl = computed(() => {
|
||||
// 文字不换行
|
||||
word-break: keep-all;
|
||||
white-space: nowrap;
|
||||
|
||||
.power {
|
||||
animation: fade 0.3s;
|
||||
}
|
||||
|
||||
.lrc {
|
||||
padding: 0 20px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
.lrc-all {
|
||||
width: 98%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
.lrc-text {
|
||||
margin: 0 8px;
|
||||
}
|
||||
|
||||
.i-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
@ -107,26 +121,32 @@ const siteUrl = computed(() => {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.blur {
|
||||
backdrop-filter: blur(10px);
|
||||
background: rgb(0 0 0 / 25%);
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.fade-enter-active,
|
||||
.fade-leave-active {
|
||||
transition: opacity 0.15s ease-in-out;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
font-size: 0.9rem;
|
||||
|
||||
&.blur {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.c-hidden {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.hidden {
|
||||
display: none;
|
||||
|
Loading…
Reference in New Issue
Block a user