diff --git a/.env b/.env
index 53beec3..fa9fa7f 100644
--- a/.env
+++ b/.env
@@ -10,7 +10,7 @@ VITE_DESC_HELLO_OTHER = "Oops !"
VITE_DESC_TEXT_OTHER = "哎呀,这都被你发现了( 再点击一次可关闭 )"
# 社交链接
-## 请在根目录下的 socialLinks.json 文件中配置
+## 请在 public 目录下的 socialLinks.json 文件中配置
# 网站链接
## 请在 src/components/Links/index.vue 文件中配置
diff --git a/package.json b/package.json
index 735dfbd..dd5504f 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
"github": "https://github.com/imsyy/home",
"home": "https://imsyy.top",
"private": true,
- "version": "4.0.1",
+ "version": "4.0.2",
"type": "module",
"scripts": {
"dev": "vite",
diff --git a/public/socialLinks.json b/public/socialLinks.json
index bfeace1..625df14 100644
--- a/public/socialLinks.json
+++ b/public/socialLinks.json
@@ -12,7 +12,7 @@
"name": "QQ",
"icon": "/images/icon/qq.png",
"tip": "有什么事吗",
- "url": "https://wpa.qq.com/msgrd?v=3&uin=1539250352&site=qq&menu=yes"
+ "url": "https://res.abeim.cn/api/qq/?qq=1539250352"
}, {
"name": "Email",
"icon": "/images/icon/email.png",
diff --git a/src/components/Links/index.vue b/src/components/Links/index.vue
index 36b5216..5d1da31 100644
--- a/src/components/Links/index.vue
+++ b/src/components/Links/index.vue
@@ -41,6 +41,7 @@ import {
} from "@vicons/fa";
// 网站链接数据
+// 建议不要超出6个,若需要超出请自行调整样式
let linksData = [
{
icon: Blog,
diff --git a/src/components/Message/index.vue b/src/components/Message/index.vue
index c03cc80..ee2f847 100644
--- a/src/components/Message/index.vue
+++ b/src/components/Message/index.vue
@@ -4,7 +4,7 @@
-
+
{{ siteUrl[0] }}
.{{ siteUrl[1] }}
@@ -91,6 +91,7 @@ watch(
}
.name {
width: 100%;
+ height: 142px;
margin-left: 12px;
transform: translateY(-8px);
font-family: "Pacifico-Regular";
@@ -112,6 +113,7 @@ watch(
width: 100px;
}
.name {
+ height: 128px;
.bg {
font-size: 4.5rem;
}
@@ -151,5 +153,28 @@ watch(
pointer-events: none;
}
}
+ @media (max-width: 390px) {
+ .logo {
+ flex-direction: column;
+ .logo-img {
+ display: none;
+ }
+ .name {
+ margin-left: 0;
+ height: auto;
+ transform: none;
+ text-align: center;
+ .bg {
+ font-size: 3.5rem;
+ }
+ .sm {
+ font-size: 1.4rem;
+ }
+ }
+ }
+ .description {
+ margin-top: 2.5rem;
+ }
+ }
}
\ No newline at end of file
diff --git a/src/components/SocialLinks/index.vue b/src/components/SocialLinks/index.vue
index 02a9707..f0e51e7 100644
--- a/src/components/SocialLinks/index.vue
+++ b/src/components/SocialLinks/index.vue
@@ -65,6 +65,7 @@ onMounted(() => {
backdrop-filter: blur(0);
animation: fade;
-webkit-animation: fade 0.5s;
+ transition: all 0.5s;
@media (max-width: 840px) {
max-width: 100%;
justify-content: center;
@@ -95,12 +96,16 @@ onMounted(() => {
.tip {
display: none;
margin-right: 12px;
+ animation: fade;
+ -webkit-animation: fade 0.5s;
}
- &:hover {
- background-color: #00000040;
- backdrop-filter: blur(5px);
- .tip {
- display: block;
+ @media (min-width: 768px) {
+ &:hover {
+ background-color: #00000040;
+ backdrop-filter: blur(5px);
+ .tip {
+ display: block;
+ }
}
}
}
diff --git a/src/style/style.scss b/src/style/style.scss
index c51a26a..c6744a7 100644
--- a/src/style/style.scss
+++ b/src/style/style.scss
@@ -76,6 +76,13 @@ p {
transform: scale(0.98);
}
+// 文字超出
+.text-hidden {
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+
// 弹窗样式
.el-message {
--el-message-bg-color: #00000040 !important;
diff --git a/src/views/Main/Left.vue b/src/views/Main/Left.vue
index ac91f97..2556c94 100644
--- a/src/views/Main/Left.vue
+++ b/src/views/Main/Left.vue
@@ -14,7 +14,8 @@ const store = mainStore();
\ No newline at end of file
diff --git a/src/views/Main/Right.vue b/src/views/Main/Right.vue
index ad22002..da11622 100644
--- a/src/views/Main/Right.vue
+++ b/src/views/Main/Right.vue
@@ -1,7 +1,7 @@
-
+
{{ siteUrl[0] }}
.{{ siteUrl[1] }}
@@ -26,16 +26,17 @@ let siteUrl = import.meta.env.VITE_SITE_URL.split(".");