diff --git "a/\345\220\264\345\223\262\346\266\224/express\345\210\206\351\241\265/url\350\256\260\345\275\225.txt" "b/\345\220\264\345\223\262\346\266\224/express\345\210\206\351\241\265/url\350\256\260\345\275\225.txt" index 362353a4bec360dafab2d69b92aa9c3d07fa5383..0f92db5d0f15cdc9c430b055fca31de58bcd6065 100644 --- "a/\345\220\264\345\223\262\346\266\224/express\345\210\206\351\241\265/url\350\256\260\345\275\225.txt" +++ "b/\345\220\264\345\223\262\346\266\224/express\345\210\206\351\241\265/url\350\256\260\345\275\225.txt" @@ -1 +1 @@ -/api?page=1//api?page=1/favicon.ico/api?page=2/api?page=1 \ No newline at end of file +/api?page=1//api?page=1/favicon.ico/api?page=2/api?page=1//favicon.ico/api?page=1/favicon.ico/api?page=2/api?page=1/api?page=2/api?page=1/api?page=2/api?page=1/api?page=2/api?page=1/api?page=1/api?page=1/api?page=1/api?page=1/api?page=2/api?page=1 \ No newline at end of file diff --git "a/\345\220\264\345\223\262\346\266\224/snake 2.0/config/conn.js" "b/\345\220\264\345\223\262\346\266\224/snake 2.0/config/conn.js" index 31971c93e68c5644105bcfcc37a22d465e1e1a18..bb4470993f2f387cdb213ab842d5a92f3554c9e7 100644 --- "a/\345\220\264\345\223\262\346\266\224/snake 2.0/config/conn.js" +++ "b/\345\220\264\345\223\262\346\266\224/snake 2.0/config/conn.js" @@ -1,7 +1,7 @@ module.exports = { host: 'localhost', user: 'root', - password: "root", + password: "123456", port: 3306, database: "snake_db" }; \ No newline at end of file diff --git "a/\345\220\264\345\223\262\346\266\224/snake 2.0/controller/user/user.js" "b/\345\220\264\345\223\262\346\266\224/snake 2.0/controller/user/user.js" index 49615b8e174378af3c36fd8490fd9e0f18236f07..01c5f7c2f83f4ae8af3635ba23fe49fb169f4b9e 100644 --- "a/\345\220\264\345\223\262\346\266\224/snake 2.0/controller/user/user.js" +++ "b/\345\220\264\345\223\262\346\266\224/snake 2.0/controller/user/user.js" @@ -12,7 +12,7 @@ router.post("/login", (req, res) => {// 登陆接口 }) router.get("/register", (req, res) => {// 注册接口 - + }) module.exports = router; \ No newline at end of file diff --git "a/\345\220\264\345\223\262\346\266\224/snake 2.0/public/css/login.css" "b/\345\220\264\345\223\262\346\266\224/snake 2.0/public/css/index.css" similarity index 33% rename from "\345\220\264\345\223\262\346\266\224/snake 2.0/public/css/login.css" rename to "\345\220\264\345\223\262\346\266\224/snake 2.0/public/css/index.css" index 36e1b4901e78a3d1cd44f4b51db5380643cb6f84..8ba1849768086edb7029e4d5364a0c875aa0d939 100644 --- "a/\345\220\264\345\223\262\346\266\224/snake 2.0/public/css/login.css" +++ "b/\345\220\264\345\223\262\346\266\224/snake 2.0/public/css/index.css" @@ -4,30 +4,48 @@ } body { - background-image: url("../images/login.png"); + background-image: url("../images/login.jpg"); + background-size: cover; + background-repeat: no-repeat; } .main { width: 400px; - height: 200px; + height: 250px; position: absolute; margin: auto; left: 0; right: 0; bottom: 0; top: 0; - background: linear-gradient(#ffffff,#757070, black); - border-radius: 50px; + perspective: 500px; } -.login { +.login, +.register { + width: 400px; + height: 250px; display: flex; flex-direction: column; justify-content: space-around; align-items: center; + border-radius: 20px; + box-shadow: inset 5px 5px 50px rgba(0, 0, 0, 0.096), + 5px 5px 20px rgba(0, 0, 0, 0.155), + 5px 15px 30px rgba(0, 0, 0, 0.3), + inset -5px -5px 15px rgba(255, 255, 255, 0.6); + position: absolute; + backface-visibility: hidden; + transition: 2s; + transform-style: preserve-3d; +} + +.register { + transform: rotateY(180deg); } -.login div { +.login div, +.register div { height: 50px; width: auto; } \ No newline at end of file diff --git "a/\345\220\264\345\223\262\346\266\224/snake 2.0/public/html/login.html" "b/\345\220\264\345\223\262\346\266\224/snake 2.0/public/html/login.html" index f9568d4cb88ebd3fabeab53b74920059988b65a7..1bf6775b7a6ddedb194f87108c914a811bdb7b7b 100644 --- "a/\345\220\264\345\223\262\346\266\224/snake 2.0/public/html/login.html" +++ "b/\345\220\264\345\223\262\346\266\224/snake 2.0/public/html/login.html" @@ -1,25 +1,41 @@ +