commit aefcc85ecc2d0f12417a5c66165f748ae9287538
Author: root <root@hub.scroll.pub> Date: 2024-12-29 04:40:55 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..db9fc12 --- /dev/null +++ b/body.html @@ -0,0 +1,73 @@ +<header> + <h1>Task Tracker</h1> + <nav> + <a href="#progress">Progress</a> + <a href="#leaderboard">Leaderboard</a> + <a href="#login">Login</a> + </nav> +</header> + +<main> + <section id="progress"> + <h2>Overall Progress</h2> + <div class="progress-bar"> + <div class="progress" style="width: 50%;"></div> + </div> + <p>50% Complete</p> + </section> + + <section id="leaderboard"> + <h2>Leaderboard</h2> + <div class="tabs"> + <button class="tab active" data-tab="daily">Daily</button> + <button class="tab" data-tab="weekly">Weekly</button> + <button class="tab" data-tab="monthly">Monthly</button> + <button class="tab" data-tab="total">Total</button> + </div> + <div class="tab-content"> + <div id="daily" class="tab-pane active"> + <ol> + <li>User A - 5 points</li> + <li>User B - 3 points</li> + <li>User C - 2 points</li> + </ol> + </div> + <div id="weekly" class="tab-pane"> + <ol> + <li>User B - 15 points</li> + <li>User A - 12 points</li> + <li>User C - 10 points</li> + </ol> + </div> + <div id="monthly" class="tab-pane"> + <ol> + <li>User A - 50 points</li> + <li>User C - 45 points</li> + <li>User B - 40 points</li> + </ol> + </div> + <div id="total" class="tab-pane"> + <ol> + <li>User A - 200 points</li> + <li>User C - 180 points</li> + <li>User B - 150 points</li> + </ol> + </div> + </div> + </section> + + <section id="login"> + <h2>Login</h2> + <form id="loginForm"> + <label for="username">Username:</label> + <input type="text" id="username" required> + <label for="password">Password:</label> + <input type="password" id="password" required> + <button type="submit">Login</button> + </form> + </section> +</main> + +<footer> + <p>Task Tracker - Streamline Your Workflow</p> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..31255cd --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://tasktracker.scroll.pub +metaTags +editButton /edit.html +title Task Tracker - Manage Your Workflow +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..dfa32bb --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "2c71596c-0d3e-4e6f-b5dc-8a78350ddbd5", + "object": "chat.completion", + "created": 1735447233, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\ntasktracker.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://tasktracker.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Task Tracker - Manage Your Workflow\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>Task Tracker</h1>\n <nav>\n <a href=\"#progress\">Progress</a>\n <a href=\"#leaderboard\">Leaderboard</a>\n <a href=\"#login\">Login</a>\n </nav>\n</header>\n\n<main>\n <section id=\"progress\">\n <h2>Overall Progress</h2>\n <div class=\"progress-bar\">\n <div class=\"progress\" style=\"width: 50%;\"></div>\n </div>\n <p>50% Complete</p>\n </section>\n\n <section id=\"leaderboard\">\n <h2>Leaderboard</h2>\n <div class=\"tabs\">\n <button class=\"tab active\" data-tab=\"daily\">Daily</button>\n <button class=\"tab\" data-tab=\"weekly\">Weekly</button>\n <button class=\"tab\" data-tab=\"monthly\">Monthly</button>\n <button class=\"tab\" data-tab=\"total\">Total</button>\n </div>\n <div class=\"tab-content\">\n <div id=\"daily\" class=\"tab-pane active\">\n <ol>\n <li>User A - 5 points</li>\n <li>User B - 3 points</li>\n <li>User C - 2 points</li>\n </ol>\n </div>\n <div id=\"weekly\" class=\"tab-pane\">\n <ol>\n <li>User B - 15 points</li>\n <li>User A - 12 points</li>\n <li>User C - 10 points</li>\n </ol>\n </div>\n <div id=\"monthly\" class=\"tab-pane\">\n <ol>\n <li>User A - 50 points</li>\n <li>User C - 45 points</li>\n <li>User B - 40 points</li>\n </ol>\n </div>\n <div id=\"total\" class=\"tab-pane\">\n <ol>\n <li>User A - 200 points</li>\n <li>User C - 180 points</li>\n <li>User B - 150 points</li>\n </ol>\n </div>\n </div>\n </section>\n\n <section id=\"login\">\n <h2>Login</h2>\n <form id=\"loginForm\">\n <label for=\"username\">Username:</label>\n <input type=\"text\" id=\"username\" required>\n <label for=\"password\">Password:</label>\n <input type=\"password\" id=\"password\" required>\n <button type=\"submit\">Login</button>\n </form>\n </section>\n</main>\n\n<footer>\n <p>Task Tracker - Streamline Your Workflow</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #4a90e2;\n --secondary-color: #f5f5f5;\n --accent-color: #ff6b6b;\n --text-color: #333;\n --border-radius: 8px;\n}\n\nbody {\n font-family: 'Segoe UI', sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n margin: 0;\n padding: 0;\n background-color: var(--secondary-color);\n}\n\nheader {\n background-color: var(--primary-color);\n color: white;\n padding: 1rem;\n text-align: center;\n}\n\nnav {\n display: flex;\n justify-content: center;\n gap: 1rem;\n margin-top: 1rem;\n}\n\nnav a {\n color: white;\n text-decoration: none;\n padding: 0.5rem 1rem;\n border-radius: var(--border-radius);\n transition: background-color 0.3s;\n}\n\nnav a:hover {\n background-color: rgba(255, 255, 255, 0.1);\n}\n\nmain {\n max-width: 1200px;\n margin: 2rem auto;\n padding: 0 1rem;\n}\n\nsection {\n margin-bottom: 2rem;\n background-color: white;\n padding: 1.5rem;\n border-radius: var(--border-radius);\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n}\n\n.progress-bar {\n background-color: var(--secondary-color);\n height: 20px;\n border-radius: var(--border-radius);\n overflow: hidden;\n}\n\n.progress {\n background-color: var(--primary-color);\n height: 100%;\n transition: width 0.3s;\n}\n\n.tabs {\n display: flex;\n gap: 0.5rem;\n margin-bottom: 1rem;\n}\n\n.tab {\n flex: 1;\n padding: 0.5rem;\n border: none;\n background-color: var(--secondary-color);\n border-radius: var(--border-radius);\n cursor: pointer;\n transition: background-color 0.3s;\n}\n\n.tab.active {\n background-color: var(--primary-color);\n color: white;\n}\n\n.tab:hover {\n background-color: var(--primary-color);\n color: white;\n}\n\n.tab-content {\n background-color: var(--secondary-color);\n padding: 1rem;\n border-radius: var(--border-radius);\n}\n\n.tab-pane {\n display: none;\n}\n\n.tab-pane.active {\n display: block;\n}\n\nol {\n padding-left: 1.5rem;\n}\n\nform {\n display: grid;\n gap: 1rem;\n}\n\ninput {\n padding: 0.5rem;\n border: 1px solid #ddd;\n border-radius: var(--border-radius);\n}\n\nbutton {\n background-color: var(--primary-color);\n color: white;\n border: none;\n padding: 0.5rem 1rem;\n border-radius: var(--border-radius);\n cursor: pointer;\n transition: background-color 0.3s;\n}\n\nbutton:hover {\n background-color: var(--accent-color);\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n background-color: var(--primary-color);\n color: white;\n}\n\n@media (max-width: 768px) {\n nav {\n flex-direction: column;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n // Tab functionality\n const tabs = document.querySelectorAll('.tab');\n const tabPanes = document.querySelectorAll('.tab-pane');\n\n tabs.forEach(tab => {\n tab.addEventListener('click', function() {\n const target = this.dataset.tab;\n \n // Remove active class from all tabs and panes\n tabs.forEach(t => t.classList.remove('active'));\n tabPanes.forEach(pane => pane.classList.remove('active'));\n \n // Add active class to clicked tab and corresponding pane\n this.classList.add('active');\n document.getElementById(target).classList.add('active');\n });\n });\n\n // Login form submission\n const loginForm = document.getElementById('loginForm');\n if (loginForm) {\n loginForm.addEventListener('submit', function(e) {\n e.preventDefault();\n const username = document.getElementById('username').value;\n const password = document.getElementById('password').value;\n \n // Basic validation\n if (username && password) {\n alert(`Welcome back, ${username}!`);\n // Here you would typically handle the login process\n } else {\n alert('Please enter both username and password.');\n }\n });\n }\n});\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 304, + "completion_tokens": 1702, + "total_tokens": 2006, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 304 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..bf201a7 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# tasktracker1.scroll.pub +Website generated by DeepSeek from prompt: 我要创建一个专项工作,有一定数量的工作,分为8个步骤完成,每人分配一个账户,首页显示总的完成进度,登录账户后可以看到每个人的待办、在办和办结项目信息。首页提供积分榜,包括日积分榜、周积分榜、月积分榜和总积分榜,每完成一个节点积一分。 \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..4c51aba --- /dev/null +++ b/script.js @@ -0,0 +1,37 @@ +document.addEventListener('DOMContentLoaded', function() { + // Tab functionality + const tabs = document.querySelectorAll('.tab'); + const tabPanes = document.querySelectorAll('.tab-pane'); + + tabs.forEach(tab => { + tab.addEventListener('click', function() { + const target = this.dataset.tab; + + // Remove active class from all tabs and panes + tabs.forEach(t => t.classList.remove('active')); + tabPanes.forEach(pane => pane.classList.remove('active')); + + // Add active class to clicked tab and corresponding pane + this.classList.add('active'); + document.getElementById(target).classList.add('active'); + }); + }); + + // Login form submission + const loginForm = document.getElementById('loginForm'); + if (loginForm) { + loginForm.addEventListener('submit', function(e) { + e.preventDefault(); + const username = document.getElementById('username').value; + const password = document.getElementById('password').value; + + // Basic validation + if (username && password) { + alert(`Welcome back, ${username}!`); + // Here you would typically handle the login process + } else { + alert('Please enter both username and password.'); + } + }); + } +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..80bd3fe --- /dev/null +++ b/style.css @@ -0,0 +1,151 @@ +:root { + --primary-color: #4a90e2; + --secondary-color: #f5f5f5; + --accent-color: #ff6b6b; + --text-color: #333; + --border-radius: 8px; +} + +body { + font-family: 'Segoe UI', sans-serif; + line-height: 1.6; + color: var(--text-color); + margin: 0; + padding: 0; + background-color: var(--secondary-color); +} + +header { + background-color: var(--primary-color); + color: white; + padding: 1rem; + text-align: center; +} + +nav { + display: flex; + justify-content: center; + gap: 1rem; + margin-top: 1rem; +} + +nav a { + color: white; + text-decoration: none; + padding: 0.5rem 1rem; + border-radius: var(--border-radius); + transition: background-color 0.3s; +} + +nav a:hover { + background-color: rgba(255, 255, 255, 0.1); +} + +main { + max-width: 1200px; + margin: 2rem auto; + padding: 0 1rem; +} + +section { + margin-bottom: 2rem; + background-color: white; + padding: 1.5rem; + border-radius: var(--border-radius); + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); +} + +.progress-bar { + background-color: var(--secondary-color); + height: 20px; + border-radius: var(--border-radius); + overflow: hidden; +} + +.progress { + background-color: var(--primary-color); + height: 100%; + transition: width 0.3s; +} + +.tabs { + display: flex; + gap: 0.5rem; + margin-bottom: 1rem; +} + +.tab { + flex: 1; + padding: 0.5rem; + border: none; + background-color: var(--secondary-color); + border-radius: var(--border-radius); + cursor: pointer; + transition: background-color 0.3s; +} + +.tab.active { + background-color: var(--primary-color); + color: white; +} + +.tab:hover { + background-color: var(--primary-color); + color: white; +} + +.tab-content { + background-color: var(--secondary-color); + padding: 1rem; + border-radius: var(--border-radius); +} + +.tab-pane { + display: none; +} + +.tab-pane.active { + display: block; +} + +ol { + padding-left: 1.5rem; +} + +form { + display: grid; + gap: 1rem; +} + +input { + padding: 0.5rem; + border: 1px solid #ddd; + border-radius: var(--border-radius); +} + +button { + background-color: var(--primary-color); + color: white; + border: none; + padding: 0.5rem 1rem; + border-radius: var(--border-radius); + cursor: pointer; + transition: background-color 0.3s; +} + +button:hover { + background-color: var(--accent-color); +} + +footer { + text-align: center; + padding: 1rem; + background-color: var(--primary-color); + color: white; +} + +@media (max-width: 768px) { + nav { + flex-direction: column; + } +} \ No newline at end of file