Showing
3 changed files
with
125 additions
and
78 deletions
static/原神启动/微博logo.png
0 → 100644
67 KB
| 1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
| 2 | <html lang="zh"> | 2 | <html lang="zh"> |
| 3 | - | ||
| 4 | -<head> | ||
| 5 | - <meta charset="UTF-8"> | ||
| 6 | - <meta name="viewport" content="width=device-width, initial-scale=1.0"> | 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> | ||
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| 7 | <title>微博舆情分析系统 | 登录</title> | 6 | <title>微博舆情分析系统 | 登录</title> |
| 8 | - <link rel="icon" href="../../../static/原神启动/favicon.ico"> | ||
| 9 | -</head> | 7 | + <link rel="icon" href="../../../static/原神启动/favicon.ico" /> |
| 8 | + </head> | ||
| 10 | 9 | ||
| 11 | -<style> | 10 | + <style> |
| 12 | * { | 11 | * { |
| 13 | margin: 0; | 12 | margin: 0; |
| 14 | padding: 0; | 13 | padding: 0; |
| @@ -20,7 +19,6 @@ | @@ -20,7 +19,6 @@ | ||
| 20 | width: 100%; | 19 | width: 100%; |
| 21 | height: 100%; | 20 | height: 100%; |
| 22 | overflow: hidden; | 21 | overflow: hidden; |
| 23 | - | ||
| 24 | } | 22 | } |
| 25 | 23 | ||
| 26 | a { | 24 | a { |
| @@ -36,7 +34,6 @@ | @@ -36,7 +34,6 @@ | ||
| 36 | display: block; | 34 | display: block; |
| 37 | } | 35 | } |
| 38 | 36 | ||
| 39 | - | ||
| 40 | #video-background { | 37 | #video-background { |
| 41 | position: fixed; | 38 | position: fixed; |
| 42 | top: 0; | 39 | top: 0; |
| @@ -74,12 +71,8 @@ | @@ -74,12 +71,8 @@ | ||
| 74 | margin: auto; | 71 | margin: auto; |
| 75 | top: 20%; | 72 | top: 20%; |
| 76 | border-radius: 0.1cm; | 73 | border-radius: 0.1cm; |
| 77 | - | ||
| 78 | - | ||
| 79 | } | 74 | } |
| 80 | 75 | ||
| 81 | - | ||
| 82 | - | ||
| 83 | .login_box { | 76 | .login_box { |
| 84 | position: absolute; | 77 | position: absolute; |
| 85 | width: 100%; | 78 | width: 100%; |
| @@ -88,7 +81,6 @@ | @@ -88,7 +81,6 @@ | ||
| 88 | box-shadow: inset 0px 0px 3px black; | 81 | box-shadow: inset 0px 0px 3px black; |
| 89 | padding: 15px; | 82 | padding: 15px; |
| 90 | box-sizing: border-box; | 83 | box-sizing: border-box; |
| 91 | - | ||
| 92 | } | 84 | } |
| 93 | 85 | ||
| 94 | .title { | 86 | .title { |
| @@ -100,15 +92,12 @@ | @@ -100,15 +92,12 @@ | ||
| 100 | padding: 15px; | 92 | padding: 15px; |
| 101 | left: 50%; | 93 | left: 50%; |
| 102 | transform: translateX(-50%); | 94 | transform: translateX(-50%); |
| 103 | - | ||
| 104 | } | 95 | } |
| 105 | 96 | ||
| 106 | .QRcode img { | 97 | .QRcode img { |
| 107 | - height: 90px; | ||
| 108 | - width: 90px; | ||
| 109 | - | 98 | + height: 70px; |
| 99 | + width: 70px; | ||
| 110 | object-fit: unset; | 100 | object-fit: unset; |
| 111 | - | ||
| 112 | /* 添加过渡效果 */ | 101 | /* 添加过渡效果 */ |
| 113 | cursor: pointer; | 102 | cursor: pointer; |
| 114 | } | 103 | } |
| @@ -116,17 +105,13 @@ | @@ -116,17 +105,13 @@ | ||
| 116 | .QRcode { | 105 | .QRcode { |
| 117 | height: 90px; | 106 | height: 90px; |
| 118 | width: 90px; | 107 | width: 90px; |
| 119 | - | ||
| 120 | } | 108 | } |
| 121 | 109 | ||
| 122 | - .QRcode:hover>img { | 110 | + .QRcode:hover > img { |
| 123 | line-height: normal; | 111 | line-height: normal; |
| 124 | - | ||
| 125 | /* transform-origin: unset; */ | 112 | /* transform-origin: unset; */ |
| 126 | - | ||
| 127 | } | 113 | } |
| 128 | 114 | ||
| 129 | - | ||
| 130 | .logo { | 115 | .logo { |
| 131 | position: absolute; | 116 | position: absolute; |
| 132 | width: 150px; | 117 | width: 150px; |
| @@ -134,6 +119,7 @@ | @@ -134,6 +119,7 @@ | ||
| 134 | left: 50%; | 119 | left: 50%; |
| 135 | transform: translateX(-50%); | 120 | transform: translateX(-50%); |
| 136 | margin-top: 15px; | 121 | margin-top: 15px; |
| 122 | + transition: opacity 0.5s ease; /* 添加过渡效果 */ | ||
| 137 | } | 123 | } |
| 138 | 124 | ||
| 139 | .logo img { | 125 | .logo img { |
| @@ -145,7 +131,6 @@ | @@ -145,7 +131,6 @@ | ||
| 145 | position: absolute; | 131 | position: absolute; |
| 146 | width: 612px; | 132 | width: 612px; |
| 147 | height: 150px; | 133 | height: 150px; |
| 148 | - | ||
| 149 | top: 80px; | 134 | top: 80px; |
| 150 | left: 50%; | 135 | left: 50%; |
| 151 | transform: translateX(-50%); | 136 | transform: translateX(-50%); |
| @@ -156,26 +141,21 @@ | @@ -156,26 +141,21 @@ | ||
| 156 | width: 522px; | 141 | width: 522px; |
| 157 | margin-top: 25px; | 142 | margin-top: 25px; |
| 158 | margin-left: 40px; | 143 | margin-left: 40px; |
| 159 | - | ||
| 160 | border: none; | 144 | border: none; |
| 161 | - | ||
| 162 | - | ||
| 163 | } | 145 | } |
| 164 | 146 | ||
| 165 | .content input { | 147 | .content input { |
| 166 | height: 60px; | 148 | height: 60px; |
| 167 | width: 522px; | 149 | width: 522px; |
| 168 | - | ||
| 169 | text-indent: 1em; | 150 | text-indent: 1em; |
| 170 | font-size: 18px; | 151 | font-size: 18px; |
| 171 | - letter-spacing: .2em; | 152 | + letter-spacing: 0.2em; |
| 172 | font-weight: 700; | 153 | font-weight: 700; |
| 173 | outline: none; | 154 | outline: none; |
| 174 | border: none; | 155 | border: none; |
| 175 | box-shadow: inset 0px 0px 2px rgb(207, 206, 206); | 156 | box-shadow: inset 0px 0px 2px rgb(207, 206, 206); |
| 176 | box-shadow: 0px 0px 4px rgb(207, 206, 206); | 157 | box-shadow: 0px 0px 4px rgb(207, 206, 206); |
| 177 | border-radius: 0.1cm; | 158 | border-radius: 0.1cm; |
| 178 | - | ||
| 179 | } | 159 | } |
| 180 | 160 | ||
| 181 | .content input::placeholder { | 161 | .content input::placeholder { |
| @@ -194,14 +174,13 @@ | @@ -194,14 +174,13 @@ | ||
| 194 | .register-text a { | 174 | .register-text a { |
| 195 | font-weight: 700; | 175 | font-weight: 700; |
| 196 | font-size: 18px; | 176 | font-size: 18px; |
| 197 | - letter-spacing: .1em; | 177 | + letter-spacing: 0.1em; |
| 198 | } | 178 | } |
| 199 | 179 | ||
| 200 | .a1 { | 180 | .a1 { |
| 201 | color: #949292; | 181 | color: #949292; |
| 202 | } | 182 | } |
| 203 | 183 | ||
| 204 | - | ||
| 205 | .a2 { | 184 | .a2 { |
| 206 | color: #d6c194; | 185 | color: #d6c194; |
| 207 | } | 186 | } |
| @@ -233,7 +212,6 @@ | @@ -233,7 +212,6 @@ | ||
| 233 | position: absolute; | 212 | position: absolute; |
| 234 | width: 522px; | 213 | width: 522px; |
| 235 | height: 60px; | 214 | height: 60px; |
| 236 | - | ||
| 237 | left: 50%; | 215 | left: 50%; |
| 238 | transform: translateX(-50%); | 216 | transform: translateX(-50%); |
| 239 | cursor: pointer; | 217 | cursor: pointer; |
| @@ -243,7 +221,7 @@ | @@ -243,7 +221,7 @@ | ||
| 243 | background-color: rgb(54, 54, 61); | 221 | background-color: rgb(54, 54, 61); |
| 244 | color: rgb(215, 210, 180); | 222 | color: rgb(215, 210, 180); |
| 245 | font-weight: 700; | 223 | font-weight: 700; |
| 246 | - border-radius: .1cm; | 224 | + border-radius: 0.1cm; |
| 247 | box-shadow: 0px 0px 3px 1px #969595; | 225 | box-shadow: 0px 0px 3px 1px #969595; |
| 248 | } | 226 | } |
| 249 | 227 | ||
| @@ -273,7 +251,6 @@ | @@ -273,7 +251,6 @@ | ||
| 273 | padding-left: 80px; | 251 | padding-left: 80px; |
| 274 | font-size: 18px; | 252 | font-size: 18px; |
| 275 | letter-spacing: 0.1em; | 253 | letter-spacing: 0.1em; |
| 276 | - | ||
| 277 | font-weight: 700; | 254 | font-weight: 700; |
| 278 | } | 255 | } |
| 279 | 256 | ||
| @@ -310,33 +287,52 @@ | @@ -310,33 +287,52 @@ | ||
| 310 | .yanzhengma:hover { | 287 | .yanzhengma:hover { |
| 311 | color: #aa863e; | 288 | color: #aa863e; |
| 312 | } | 289 | } |
| 313 | -</style> | ||
| 314 | - | ||
| 315 | -<body onclick="playAudio()"> | 290 | + </style> |
| 316 | 291 | ||
| 292 | + <body onclick="playAudio()"> | ||
| 317 | <audio id="audio-player" autoplay class="hide-player"> | 293 | <audio id="audio-player" autoplay class="hide-player"> |
| 318 | - <source src="https://lovexl-oss.oss-cn-beijing.aliyuncs.com/bed/%E5%8E%9F%E7%A5%9E%E9%A6%96%E9%A1%B5%E8%83%8C%E6%99%AF%E9%9F%B3.mp4" | ||
| 319 | - type="audio/mp3"> | 294 | + <source |
| 295 | + src="https://lovexl-oss.oss-cn-beijing.aliyuncs.com/bed/%E5%8E%9F%E7%A5%9E%E9%A6%96%E9%A1%B5%E8%83%8C%E6%99%AF%E9%9F%B3.mp4" | ||
| 296 | + type="audio/mp3" | ||
| 297 | + /> | ||
| 320 | </audio> | 298 | </audio> |
| 321 | 299 | ||
| 322 | <div id="video-background"> | 300 | <div id="video-background"> |
| 323 | - <video src="https://lovexl-oss.oss-cn-beijing.aliyuncs.com/bed/%E5%8E%9F%E7%A5%9E%E9%A6%96%E9%A1%B5%E8%A7%86%E9%A2%91.mp4" autoplay="autoplay" muted="muted" loop="loop"></video> | 301 | + <video |
| 302 | + src="https://lovexl-oss.oss-cn-beijing.aliyuncs.com/bed/%E5%8E%9F%E7%A5%9E%E9%A6%96%E9%A1%B5%E8%A7%86%E9%A2%91.mp4" | ||
| 303 | + autoplay="autoplay" | ||
| 304 | + muted="muted" | ||
| 305 | + loop="loop" | ||
| 306 | + ></video> | ||
| 324 | </div> | 307 | </div> |
| 325 | 308 | ||
| 326 | - <div id="black-hid"> | ||
| 327 | - </div> | 309 | + <div id="black-hid"></div> |
| 328 | 310 | ||
| 329 | <form id="login" class="login show" method="POST" action="/user/login"> | 311 | <form id="login" class="login show" method="POST" action="/user/login"> |
| 330 | <div class="login_box"> | 312 | <div class="login_box"> |
| 331 | <div class="title"> | 313 | <div class="title"> |
| 332 | - <!-- <a class="QRcode" href=""><img src="login_resources/二维码 (1).png" alt=""></a> --> | ||
| 333 | - <a class="logo" href=""><img src="../../../static/原神启动/logo2.08ebb840.png" alt=""></a> | ||
| 334 | - <a class="exit" href=""><img src="../../../static/原神启动/关闭 (1).png" alt=""></a> | 314 | + <a class="QRcode" href="" |
| 315 | + ><img src="../../../static/原神启动/二维码.png" alt="二维码" | ||
| 316 | + /></a> | ||
| 317 | + <a class="logo" href="" | ||
| 318 | + ><img src="../../../static/原神启动/logo2.08ebb840.png" alt="" | ||
| 319 | + /></a> | ||
| 320 | + <a class="exit" href="" | ||
| 321 | + ><img src="../../../static/原神启动/关闭 (1).png" alt="" | ||
| 322 | + /></a> | ||
| 335 | </div> | 323 | </div> |
| 336 | </div> | 324 | </div> |
| 337 | <div class="content"> | 325 | <div class="content"> |
| 338 | - <div class="input"><input type="text" name="username" placeholder="输入账号/原神"></div> | ||
| 339 | - <div class="input"><input type="password" name="password" placeholder="输入密码/始める!"></div> | 326 | + <div class="input"> |
| 327 | + <input type="text" name="username" placeholder="输入账号/原神" /> | ||
| 328 | + </div> | ||
| 329 | + <div class="input"> | ||
| 330 | + <input | ||
| 331 | + type="password" | ||
| 332 | + name="password" | ||
| 333 | + placeholder="输入密码/始める!" | ||
| 334 | + /> | ||
| 335 | + </div> | ||
| 340 | </div> | 336 | </div> |
| 341 | <div class="register-text"> | 337 | <div class="register-text"> |
| 342 | <span> | 338 | <span> |
| @@ -354,71 +350,122 @@ | @@ -354,71 +350,122 @@ | ||
| 354 | </div> | 350 | </div> |
| 355 | </form> | 351 | </form> |
| 356 | 352 | ||
| 357 | - | ||
| 358 | <form id="register" class="register" method="POST" action="/user/register"> | 353 | <form id="register" class="register" method="POST" action="/user/register"> |
| 359 | <div class="login_box"> | 354 | <div class="login_box"> |
| 360 | <div class="title"> | 355 | <div class="title"> |
| 361 | - <a class="logo" href=""><img src="../../../static/原神启动//logo2.08ebb840.png" alt=""></a> | ||
| 362 | - <a class="exit" href=""><img src="../../../static/原神启动//关闭 (1).png" alt=""></a> | 356 | + <a class="logo" href="" |
| 357 | + ><img src="../../../static/原神启动//logo2.08ebb840.png" alt="" | ||
| 358 | + /></a> | ||
| 359 | + <a class="exit" href="" | ||
| 360 | + ><img src="../../../static/原神启动//关闭 (1).png" alt="" | ||
| 361 | + /></a> | ||
| 363 | </div> | 362 | </div> |
| 364 | </div> | 363 | </div> |
| 365 | <div class="content"> | 364 | <div class="content"> |
| 366 | <div class="input"> | 365 | <div class="input"> |
| 367 | <span | 366 | <span |
| 368 | - style="display: inline-block;width: 60px;height: 60px;font-size: 21px;font-weight: 800;color: black;line-height: 60px;text-align: center; "> | ||
| 369 | - +86</span> | ||
| 370 | - <input style="width: 452px;float: right;" type="text" name="username" placeholder="输入要注册的账号"> | ||
| 371 | - <a class="yanzhengma" href="" | ||
| 372 | - style="position: absolute; top: 43px;right: 60px;color: #d6c194;font-weight: 700;letter-spacing: 0.1em;">我是假按钮</a> | 367 | + style=" |
| 368 | + display: inline-block; | ||
| 369 | + width: 60px; | ||
| 370 | + height: 60px; | ||
| 371 | + font-size: 21px; | ||
| 372 | + font-weight: 800; | ||
| 373 | + color: black; | ||
| 374 | + line-height: 60px; | ||
| 375 | + text-align: center; | ||
| 376 | + " | ||
| 377 | + > | ||
| 378 | + +86</span | ||
| 379 | + > | ||
| 380 | + <input | ||
| 381 | + style="width: 452px; float: right" | ||
| 382 | + type="text" | ||
| 383 | + name="username" | ||
| 384 | + placeholder="输入要注册的账号" | ||
| 385 | + /> | ||
| 386 | + <a | ||
| 387 | + class="yanzhengma" | ||
| 388 | + href="" | ||
| 389 | + style=" | ||
| 390 | + position: absolute; | ||
| 391 | + top: 43px; | ||
| 392 | + right: 60px; | ||
| 393 | + color: #d6c194; | ||
| 394 | + font-weight: 700; | ||
| 395 | + letter-spacing: 0.1em; | ||
| 396 | + " | ||
| 397 | + >我是假按钮</a | ||
| 398 | + > | ||
| 399 | + </div> | ||
| 400 | + <div class="input"> | ||
| 401 | + <input type="text" name="password" placeholder="设定密码" /> | ||
| 373 | </div> | 402 | </div> |
| 374 | - <div class="input"><input type="text" name="password" placeholder="设定密码"></div> | ||
| 375 | </div> | 403 | </div> |
| 376 | <div class="xieyi"> | 404 | <div class="xieyi"> |
| 377 | - <input type="checkbox"> | 405 | + <input type="checkbox" /> |
| 378 | <span>已同意《用户协议》和《隐私权益》</span> | 406 | <span>已同意《用户协议》和《隐私权益》</span> |
| 379 | </div> | 407 | </div> |
| 380 | <div class="register-text"> | 408 | <div class="register-text"> |
| 381 | <span> | 409 | <span> |
| 382 | <a href="" class="a2" id="login_btn">返回登录页面</a> | 410 | <a href="" class="a2" id="login_btn">返回登录页面</a> |
| 383 | </span> | 411 | </span> |
| 384 | - | ||
| 385 | </div> | 412 | </div> |
| 386 | - <div class="start" style="top: 370px;"> | 413 | + <div class="start" style="top: 370px"> |
| 387 | <button>注册并登录</button> | 414 | <button>注册并登录</button> |
| 388 | </div> | 415 | </div> |
| 389 | - | ||
| 390 | </form> | 416 | </form> |
| 391 | 417 | ||
| 392 | - | ||
| 393 | <script> | 418 | <script> |
| 394 | //点击网页后,播放音乐 | 419 | //点击网页后,播放音乐 |
| 395 | function playAudio() { | 420 | function playAudio() { |
| 396 | - var audioPlayer = document.getElementById('audio-player'); | 421 | + var audioPlayer = document.getElementById("audio-player"); |
| 397 | audioPlayer.play(); | 422 | audioPlayer.play(); |
| 398 | - }; | 423 | + } |
| 399 | 424 | ||
| 400 | // 获取表单和链接的引用 | 425 | // 获取表单和链接的引用 |
| 401 | - const loginForm = document.getElementById('login'); | ||
| 402 | - const registerForm = document.getElementById('register'); | ||
| 403 | - const registerLink = document.getElementById('register_btn'); | ||
| 404 | - const loginLink = document.getElementById('login_btn'); | 426 | + const loginForm = document.getElementById("login"); |
| 427 | + const registerForm = document.getElementById("register"); | ||
| 428 | + const registerLink = document.getElementById("register_btn"); | ||
| 429 | + const loginLink = document.getElementById("login_btn"); | ||
| 405 | 430 | ||
| 406 | // 点击"立即注册"链接时切换表单显示状态 | 431 | // 点击"立即注册"链接时切换表单显示状态 |
| 407 | - registerLink.addEventListener('click', function (event) { | 432 | + registerLink.addEventListener("click", function (event) { |
| 408 | event.preventDefault(); // 阻止链接默认行为 | 433 | event.preventDefault(); // 阻止链接默认行为 |
| 409 | - loginForm.classList.remove('show'); | ||
| 410 | - registerForm.classList.add('show'); | 434 | + loginForm.classList.remove("show"); |
| 435 | + registerForm.classList.add("show"); | ||
| 411 | }); | 436 | }); |
| 412 | 437 | ||
| 413 | // 点击"返回登录界面"链接时切换表单显示状态 | 438 | // 点击"返回登录界面"链接时切换表单显示状态 |
| 414 | - loginLink.addEventListener('click', function (event) { | 439 | + loginLink.addEventListener("click", function (event) { |
| 415 | event.preventDefault(); // 阻止链接默认行为 | 440 | event.preventDefault(); // 阻止链接默认行为 |
| 416 | - registerForm.classList.remove('show'); | ||
| 417 | - loginForm.classList.add('show'); | 441 | + registerForm.classList.remove("show"); |
| 442 | + loginForm.classList.add("show"); | ||
| 418 | }); | 443 | }); |
| 419 | 444 | ||
| 420 | - | 445 | + // 在页面加载3秒后更改图片链接和文本内容 |
| 446 | + setTimeout(function () { | ||
| 447 | + // 更改二维码图片链接 | ||
| 448 | + const qrCode = document.querySelector(".QRcode img"); | ||
| 449 | + qrCode.style.transition = "opacity 1s ease"; // 添加过渡效果 | ||
| 450 | + qrCode.style.opacity = 0; // 渐隐 | ||
| 451 | + | ||
| 452 | + // 等待过渡效果完成后隐藏图片 | ||
| 453 | + setTimeout(function () { | ||
| 454 | + qrCode.style.display = "none"; // 隐藏二维码图片 | ||
| 455 | + }, 1000); // 1秒等于1000毫秒 | ||
| 456 | + | ||
| 457 | + // 更改logo为文本并添加样式 | ||
| 458 | + const logo = document.querySelector(".logo"); | ||
| 459 | + logo.style.transition = "opacity 1s ease"; // 添加过渡效果 | ||
| 460 | + logo.style.opacity = 0; // 渐隐 | ||
| 461 | + | ||
| 462 | + // 等待过渡效果完成后更改内容并渐显 | ||
| 463 | + setTimeout(function () { | ||
| 464 | + logo.innerHTML = | ||
| 465 | + '<div style="width:500px;height:50px;margin-left:-200px;display:flex;align-items:center;"><img style="width:150px;height:75px;margin-bottom:20px" src="../../../static/原神启动/微博logo.png" alt=""/><div style="font-size: 35px; font-weight: bold; color: black;">微博舆情分析系统</div></div>'; | ||
| 466 | + logo.style.opacity = 1; // 渐显 | ||
| 467 | + }, 1000); // 1秒等于1000毫秒 | ||
| 468 | + }, 3000); // 3000 毫秒 等于 3 秒 | ||
| 421 | </script> | 469 | </script> |
| 422 | -</body> | ||
| 423 | - | 470 | + </body> |
| 424 | </html> | 471 | </html> |
-
Please register or login to post a comment