diff --git a/src/App.vue b/src/App.vue index 6b7844c..dc28aea 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,50 +1,20 @@ diff --git a/src/assets/background.webp b/src/assets/background.webp new file mode 100644 index 0000000..0284c22 Binary files /dev/null and b/src/assets/background.webp differ diff --git a/src/components/Login.vue b/src/components/Login.vue index 6562fca..902d07a 100644 --- a/src/components/Login.vue +++ b/src/components/Login.vue @@ -1,4 +1,5 @@ \ No newline at end of file diff --git a/src/components/MyHead.vue b/src/components/MyHead.vue index 0f7dc5c..21d8298 100644 --- a/src/components/MyHead.vue +++ b/src/components/MyHead.vue @@ -5,6 +5,7 @@ + + + + \ No newline at end of file diff --git a/src/components/css/app.css b/src/components/css/app.css new file mode 100644 index 0000000..0320a5e --- /dev/null +++ b/src/components/css/app.css @@ -0,0 +1,23 @@ +html, body, #app { + height: 100vh; + width: 100vw; + margin: 0; +} + +.common-layout { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + min-height: 100vh; + width: 100vw; + background: url("@/assets/background.webp") center center / cover no-repeat; +} + +.router-view { + display: flex; + justify-content: center; + align-items: center; + flex: 1 1 0; + /*background: #ebeef5;*/ +} \ No newline at end of file diff --git a/src/components/css/login.css b/src/components/css/login.css new file mode 100644 index 0000000..0243d7d --- /dev/null +++ b/src/components/css/login.css @@ -0,0 +1,35 @@ +*{ + margin: 0; + padding: 0; +} + +/* 玻璃+边缘羽化 */ +.login { + display: flex; + justify-content: center; + align-items: center; + + /* 建议给点内边距和圆角,效果更柔和 */ + min-width: 20vw; + max-width: 40vw; + + min-height: 40vh; + max-height: 80vh; + + border-radius: 16px; + + /* 半透明底色——要有透明度,backdrop-filter 才能生效 */ + background: rgba(255, 255, 255, 0.12); + + /* 背景虚化 + 略微提高饱和度,玻璃质感 */ + backdrop-filter: blur(16px) saturate(130%); + -webkit-backdrop-filter: blur(16px) saturate(130%); + + /* 玻璃边框细线,可选 */ + border: 1px solid rgba(255, 255, 255, 0.25); + box-shadow: 0 10px 30px rgba(0,0,0,0.18); + + /* 关键:对自身做“羽化”遮罩,让四周渐隐,看起来像边缘被柔化/模糊 */ + /* 72% 可自行调节,越小羽化范围越大 */ + mask-image: radial-gradient(100% 100% at 50% 50%, #000 72%, transparent 100%); +} diff --git a/src/components/css/myFooter.css b/src/components/css/myFooter.css new file mode 100644 index 0000000..2c927de --- /dev/null +++ b/src/components/css/myFooter.css @@ -0,0 +1,21 @@ +*{ + margin: 0; + padding: 0; + width: 100vw; +} +.footer { + text-align: center; + /*min-height: 100%;*/ + /*min-width: 100%;*/ + /* 半透明底色——要有透明度,backdrop-filter 才能生效 */ + background: rgba(255, 255, 255, 0.12); + + /* 背景虚化 + 略微提高饱和度,玻璃质感 */ + backdrop-filter: blur(16px) saturate(130%); + -webkit-backdrop-filter: blur(16px) saturate(130%); + + /* 玻璃边框细线,可选 */ + border: 1px solid rgba(255, 255, 255, 0.25); + box-shadow: 0 10px 30px rgba(0,0,0,0.18); + +} \ No newline at end of file diff --git a/src/components/css/myHead.css b/src/components/css/myHead.css new file mode 100644 index 0000000..8be089e --- /dev/null +++ b/src/components/css/myHead.css @@ -0,0 +1,23 @@ +*{ + margin: 0; + padding: 0; + width: 100vw; +} + +.head { + font-size: 30px; + text-align: center; + /*background: green;*/ + /*min-height: 7vh;*/ + + /* 半透明底色——要有透明度,backdrop-filter 才能生效 */ + background: rgba(255, 255, 255, 0.12); + + /* 背景虚化 + 略微提高饱和度,玻璃质感 */ + backdrop-filter: blur(16px) saturate(130%); + /*-webkit-backdrop-filter: blur(16px) saturate(130%);*/ + + /* 玻璃边框细线,可选 */ + border: 1px solid rgba(255, 255, 255, 0.25); + box-shadow: 0 10px 30px rgba(0,0,0,0.18); +} \ No newline at end of file