diff --git a/Build_God_Game/src/assets/brushbutton.png b/Build_God_Game/src/assets/brush.png similarity index 100% rename from Build_God_Game/src/assets/brushbutton.png rename to Build_God_Game/src/assets/brush.png diff --git a/Build_God_Game/src/assets/brushtextbox.png b/Build_God_Game/src/assets/brushtextbox.png deleted file mode 100644 index c3c1149..0000000 Binary files a/Build_God_Game/src/assets/brushtextbox.png and /dev/null differ diff --git a/Build_God_Game/src/components/InkButton/InkButton.vue b/Build_God_Game/src/components/InkButton/InkButton.vue index 678153f..587f8f2 100644 --- a/Build_God_Game/src/components/InkButton/InkButton.vue +++ b/Build_God_Game/src/components/InkButton/InkButton.vue @@ -38,7 +38,7 @@ defineEmits<{ content: ''; position: absolute; inset: 0; - background: url(@/assets/brushbutton.png) no-repeat center; + background: url(@/assets/brush.png) no-repeat center; background-size: contain; transition: transform 0.3s ease; z-index: -1; diff --git a/Build_God_Game/src/components/InkInput/InkInput.vue b/Build_God_Game/src/components/InkInput/InkInput.vue new file mode 100644 index 0000000..07b0e0f --- /dev/null +++ b/Build_God_Game/src/components/InkInput/InkInput.vue @@ -0,0 +1,51 @@ + + + + + \ No newline at end of file diff --git a/Build_God_Game/src/views/LoginView.vue b/Build_God_Game/src/views/LoginView.vue index ab33b71..3b4304a 100644 --- a/Build_God_Game/src/views/LoginView.vue +++ b/Build_God_Game/src/views/LoginView.vue @@ -5,6 +5,7 @@ import { useAuthStore } from '@/stores/auth' import Particles from '@/components/Particles/Particles.vue' import BlurText from '@/components/BlurText/BlurText.vue' import InkButton from '@/components/InkButton/InkButton.vue' +import InkInput from '@/components/InkInput/InkInput.vue' const router = useRouter() const authStore = useAuthStore() @@ -22,7 +23,7 @@ const handleLogin = async () => { errorMsg.value = '' if (!username.value || !password.value) { - errorMsg.value = '请输入用户名和密码' + errorMsg.value = '?你输入完了吗,就登录' return } @@ -61,14 +62,12 @@ const handleLogin = async () => {
- -
- -
@@ -123,13 +122,13 @@ const handleLogin = async () => { backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 20px; - padding: 36px; + padding: 28px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8); } .login-header { text-align: center; - margin-bottom: 20px; + margin-bottom: 14px; } .blur-title { @@ -167,21 +166,17 @@ const handleLogin = async () => { .login-form { display: flex; flex-direction: column; - gap: 20px; + gap: 14px; } .form-group { display: flex; flex-direction: column; - gap: 8px; + gap: 4px; } .form-label { - color: #888888; - font-size: 0.75rem; - font-weight: 400; - letter-spacing: 0.1em; - text-transform: uppercase; + display: none; } .form-input { @@ -207,16 +202,18 @@ const handleLogin = async () => { } .error-message { - color: #888888; - font-size: 0.8rem; + color: rgba(255, 255, 255, 0.8); + font-size: 14px; + font-weight: 400; text-align: center; - padding: 10px; - background: rgba(255, 255, 255, 0.03); - border-radius: 8px; + padding: 8px 0; + background: transparent; + text-shadow: 0 0 8px rgba(255, 255, 255, 0.3); + letter-spacing: 2px; } .login-footer { - margin-top: 28px; + margin-top: 20px; text-align: center; display: flex; justify-content: center; diff --git a/Build_God_Game/src/views/RegisterView.vue b/Build_God_Game/src/views/RegisterView.vue index 5f6f97c..87bc99a 100644 --- a/Build_God_Game/src/views/RegisterView.vue +++ b/Build_God_Game/src/views/RegisterView.vue @@ -5,6 +5,7 @@ import { useAuthStore } from '@/stores/auth' import Particles from '@/components/Particles/Particles.vue' import Shuffle from '@/components/Shuffle/Shuffle.vue' import InkButton from '@/components/InkButton/InkButton.vue' +import InkInput from '@/components/InkInput/InkInput.vue' const router = useRouter() const authStore = useAuthStore() @@ -94,25 +95,22 @@ const handleRegister = async () => {
- +
- +
- +
- +
@@ -240,12 +238,14 @@ const handleRegister = async () => { } .error-message { - color: #888888; - font-size: 0.8rem; + color: rgba(255, 255, 255, 0.8); + font-size: 14px; + font-weight: 400; text-align: center; - padding: 10px; - background: rgba(255, 255, 255, 0.03); - border-radius: 8px; + padding: 8px 0; + background: transparent; + text-shadow: 0 0 8px rgba(255, 255, 255, 0.3); + letter-spacing: 2px; } .register-footer {