commit 701e3261a148606a78398de750120f9e319d0234
Author: root <root@hub.scroll.pub> Date: 2024-12-30 02:27:32 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..a6cd259 --- /dev/null +++ b/body.html @@ -0,0 +1,45 @@ +<header> + <h1>Welcome to LoginScape</h1> + <p>Your gateway to secure and seamless authentication</p> +</header> + +<main> + <div class="login-container"> + <div class="login-switcher"> + <button class="active" data-mode="password">Password Login</button> + <button data-mode="qr">QR Code Login</button> + </div> + + <div class="login-content"> + <form id="password-login" class="login-form active"> + <div class="form-group"> + <label for="username">Username</label> + <input type="text" id="username" required> + </div> + <div class="form-group"> + <label for="password">Password</label> + <input type="password" id="password" required> + </div> + <div class="form-options"> + <label> + <input type="checkbox" id="remember-me"> Remember me + </label> + <a href="#" class="forgot-password">Forgot password?</a> + </div> + <button type="submit">Login</button> + <p class="register-link">Don't have an account? <a href="#">Register here</a></p> + </form> + + <div id="qr-login" class="login-form"> + <div class="qr-container"> + <div class="qr-code"></div> + <p>Scan this QR code with your mobile device</p> + </div> + </div> + </div> + </div> +</main> + +<footer> + <p>Experience the future of authentication</p> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..c573416 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://loginscape.scroll.pub +metaTags +editButton /edit.html +title LoginScape - Seamless Login Experience +style.css +body.html +script.js \ No newline at end of file diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..4a53841 --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "aa45d52c-0df7-431c-8150-7a094a628961", + "object": "chat.completion", + "created": 1735525631, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\nloginscape.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://loginscape.scroll.pub\nmetaTags\neditButton /edit.html\ntitle LoginScape - Seamless Login Experience\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>Welcome to LoginScape</h1>\n <p>Your gateway to secure and seamless authentication</p>\n</header>\n\n<main>\n <div class=\"login-container\">\n <div class=\"login-switcher\">\n <button class=\"active\" data-mode=\"password\">Password Login</button>\n <button data-mode=\"qr\">QR Code Login</button>\n </div>\n\n <div class=\"login-content\">\n <form id=\"password-login\" class=\"login-form active\">\n <div class=\"form-group\">\n <label for=\"username\">Username</label>\n <input type=\"text\" id=\"username\" required>\n </div>\n <div class=\"form-group\">\n <label for=\"password\">Password</label>\n <input type=\"password\" id=\"password\" required>\n </div>\n <div class=\"form-options\">\n <label>\n <input type=\"checkbox\" id=\"remember-me\"> Remember me\n </label>\n <a href=\"#\" class=\"forgot-password\">Forgot password?</a>\n </div>\n <button type=\"submit\">Login</button>\n <p class=\"register-link\">Don't have an account? <a href=\"#\">Register here</a></p>\n </form>\n\n <div id=\"qr-login\" class=\"login-form\">\n <div class=\"qr-container\">\n <div class=\"qr-code\"></div>\n <p>Scan this QR code with your mobile device</p>\n </div>\n </div>\n </div>\n </div>\n</main>\n\n<footer>\n <p>Experience the future of authentication</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #2563eb;\n --secondary-color: #1e40af;\n --background-color: #f8fafc;\n --text-color: #1e293b;\n --transition-speed: 0.3s;\n}\n\n* {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n}\n\nbody {\n font-family: 'Segoe UI', system-ui, sans-serif;\n background-color: var(--background-color);\n color: var(--text-color);\n line-height: 1.6;\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n}\n\nheader {\n text-align: center;\n padding: 2rem;\n background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));\n color: white;\n}\n\nh1 {\n font-size: 2.5rem;\n margin-bottom: 0.5rem;\n}\n\nmain {\n flex: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 2rem;\n}\n\n.login-container {\n background: white;\n border-radius: 1rem;\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);\n width: 100%;\n max-width: 400px;\n overflow: hidden;\n}\n\n.login-switcher {\n display: flex;\n background: var(--background-color);\n}\n\n.login-switcher button {\n flex: 1;\n padding: 1rem;\n border: none;\n background: transparent;\n cursor: pointer;\n font-weight: 500;\n transition: all var(--transition-speed) ease;\n}\n\n.login-switcher button.active {\n background: white;\n color: var(--primary-color);\n}\n\n.login-content {\n padding: 2rem;\n position: relative;\n}\n\n.login-form {\n display: none;\n opacity: 0;\n transition: opacity var(--transition-speed) ease;\n}\n\n.login-form.active {\n display: block;\n opacity: 1;\n}\n\n.form-group {\n margin-bottom: 1.5rem;\n}\n\nlabel {\n display: block;\n margin-bottom: 0.5rem;\n font-weight: 500;\n}\n\ninput {\n width: 100%;\n padding: 0.75rem;\n border: 1px solid #e2e8f0;\n border-radius: 0.5rem;\n transition: border-color var(--transition-speed) ease;\n}\n\ninput:focus {\n outline: none;\n border-color: var(--primary-color);\n}\n\n.form-options {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: 1rem 0;\n}\n\nbutton[type=\"submit\"] {\n width: 100%;\n padding: 0.75rem;\n background: var(--primary-color);\n color: white;\n border: none;\n border-radius: 0.5rem;\n cursor: pointer;\n transition: background-color var(--transition-speed) ease;\n}\n\nbutton[type=\"submit\"]:hover {\n background: var(--secondary-color);\n}\n\n.qr-container {\n text-align: center;\n}\n\n.qr-code {\n width: 200px;\n height: 200px;\n margin: 0 auto 1rem;\n background: #e2e8f0;\n border-radius: 0.5rem;\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n background: var(--background-color);\n}\n\n@media (max-width: 480px) {\n h1 {\n font-size: 2rem;\n }\n \n .login-container {\n border-radius: 0;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n const switcherButtons = document.querySelectorAll('.login-switcher button');\n const loginForms = document.querySelectorAll('.login-form');\n\n switcherButtons.forEach(button => {\n button.addEventListener('click', function() {\n // Remove active class from all buttons and forms\n switcherButtons.forEach(btn => btn.classList.remove('active'));\n loginForms.forEach(form => form.classList.remove('active'));\n\n // Add active class to clicked button and corresponding form\n this.classList.add('active');\n const targetForm = document.getElementById(`${this.dataset.mode}-login`);\n targetForm.classList.add('active');\n });\n });\n\n // Handle form submission\n const loginForm = document.getElementById('password-login');\n loginForm.addEventListener('submit', function(e) {\n e.preventDefault();\n // Add your login logic here\n console.log('Login submitted');\n });\n});\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 262, + "completion_tokens": 1444, + "total_tokens": 1706, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 262 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..de3f515 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# loginscape1.scroll.pub +Website generated by DeepSeek from prompt: 创建一个登录页面,页面要包含普通的登录方式,二维码扫描登录方式。登录方式切换需要有动画演示,注册,记住密码等功能 \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..32909d8 --- /dev/null +++ b/script.js @@ -0,0 +1,25 @@ +document.addEventListener('DOMContentLoaded', function() { + const switcherButtons = document.querySelectorAll('.login-switcher button'); + const loginForms = document.querySelectorAll('.login-form'); + + switcherButtons.forEach(button => { + button.addEventListener('click', function() { + // Remove active class from all buttons and forms + switcherButtons.forEach(btn => btn.classList.remove('active')); + loginForms.forEach(form => form.classList.remove('active')); + + // Add active class to clicked button and corresponding form + this.classList.add('active'); + const targetForm = document.getElementById(`${this.dataset.mode}-login`); + targetForm.classList.add('active'); + }); + }); + + // Handle form submission + const loginForm = document.getElementById('password-login'); + loginForm.addEventListener('submit', function(e) { + e.preventDefault(); + // Add your login logic here + console.log('Login submitted'); + }); +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..6b9764e --- /dev/null +++ b/style.css @@ -0,0 +1,161 @@ +:root { + --primary-color: #2563eb; + --secondary-color: #1e40af; + --background-color: #f8fafc; + --text-color: #1e293b; + --transition-speed: 0.3s; +} + +* { + box-sizing: border-box; + margin: 0; + padding: 0; +} + +body { + font-family: 'Segoe UI', system-ui, sans-serif; + background-color: var(--background-color); + color: var(--text-color); + line-height: 1.6; + min-height: 100vh; + display: flex; + flex-direction: column; +} + +header { + text-align: center; + padding: 2rem; + background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); + color: white; +} + +h1 { + font-size: 2.5rem; + margin-bottom: 0.5rem; +} + +main { + flex: 1; + display: flex; + justify-content: center; + align-items: center; + padding: 2rem; +} + +.login-container { + background: white; + border-radius: 1rem; + box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); + width: 100%; + max-width: 400px; + overflow: hidden; +} + +.login-switcher { + display: flex; + background: var(--background-color); +} + +.login-switcher button { + flex: 1; + padding: 1rem; + border: none; + background: transparent; + cursor: pointer; + font-weight: 500; + transition: all var(--transition-speed) ease; +} + +.login-switcher button.active { + background: white; + color: var(--primary-color); +} + +.login-content { + padding: 2rem; + position: relative; +} + +.login-form { + display: none; + opacity: 0; + transition: opacity var(--transition-speed) ease; +} + +.login-form.active { + display: block; + opacity: 1; +} + +.form-group { + margin-bottom: 1.5rem; +} + +label { + display: block; + margin-bottom: 0.5rem; + font-weight: 500; +} + +input { + width: 100%; + padding: 0.75rem; + border: 1px solid #e2e8f0; + border-radius: 0.5rem; + transition: border-color var(--transition-speed) ease; +} + +input:focus { + outline: none; + border-color: var(--primary-color); +} + +.form-options { + display: flex; + justify-content: space-between; + align-items: center; + margin: 1rem 0; +} + +button[type="submit"] { + width: 100%; + padding: 0.75rem; + background: var(--primary-color); + color: white; + border: none; + border-radius: 0.5rem; + cursor: pointer; + transition: background-color var(--transition-speed) ease; +} + +button[type="submit"]:hover { + background: var(--secondary-color); +} + +.qr-container { + text-align: center; +} + +.qr-code { + width: 200px; + height: 200px; + margin: 0 auto 1rem; + background: #e2e8f0; + border-radius: 0.5rem; +} + +footer { + text-align: center; + padding: 1rem; + background: var(--background-color); +} + +@media (max-width: 480px) { + h1 { + font-size: 2rem; + } + + .login-container { + border-radius: 0; + } +} \ No newline at end of file