commit 09d322f66c4623f1d5cd5041a66f26ae789f0d93
Author: root <root@hub.scroll.pub> Date: 2025-01-14 08:48:12 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..2af7c67 --- /dev/null +++ b/body.html @@ -0,0 +1,29 @@ +<header> + <h1>Order System Management</h1> +</header> +<main> + <aside class="tree-nav"> + <ul> + <li>订单系统 + <ul> + <li><a href="#config">配置</a></li> + <li><a href="#generate">生成</a></li> + <li><a href="#view">查看</a></li> + </ul> + </li> + </ul> + </aside> + <section class="image-grid"> + <a href="/detail1.html"><img src="image1.jpg" alt="Order 1"></a> + <a href="/detail2.html"><img src="image2.jpg" alt="Order 2"></a> + <a href="/detail3.html"><img src="image3.jpg" alt="Order 3"></a> + <a href="/detail4.html"><img src="image4.jpg" alt="Order 4"></a> + <a href="/detail5.html"><img src="image5.jpg" alt="Order 5"></a> + <a href="/detail6.html"><img src="image6.jpg" alt="Order 6"></a> + <a href="/detail7.html"><img src="image7.jpg" alt="Order 7"></a> + <a href="/detail8.html"><img src="image8.jpg" alt="Order 8"></a> + </section> +</main> +<footer> + <p>Order System Management Platform</p> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..deb2f09 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://ordersys.scroll.pub +metaTags +editButton /edit.html +title Order System Management +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..5827906 --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "178045d1-20f0-49a4-b5af-e17af2dfce68", + "object": "chat.completion", + "created": 1736844466, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\nordersys.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://ordersys.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Order System Management\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>Order System Management</h1>\n</header>\n<main>\n <aside class=\"tree-nav\">\n <ul>\n <li>订单系统\n <ul>\n <li><a href=\"#config\">配置</a></li>\n <li><a href=\"#generate\">生成</a></li>\n <li><a href=\"#view\">查看</a></li>\n </ul>\n </li>\n </ul>\n </aside>\n <section class=\"image-grid\">\n <a href=\"/detail1.html\"><img src=\"image1.jpg\" alt=\"Order 1\"></a>\n <a href=\"/detail2.html\"><img src=\"image2.jpg\" alt=\"Order 2\"></a>\n <a href=\"/detail3.html\"><img src=\"image3.jpg\" alt=\"Order 3\"></a>\n <a href=\"/detail4.html\"><img src=\"image4.jpg\" alt=\"Order 4\"></a>\n <a href=\"/detail5.html\"><img src=\"image5.jpg\" alt=\"Order 5\"></a>\n <a href=\"/detail6.html\"><img src=\"image6.jpg\" alt=\"Order 6\"></a>\n <a href=\"/detail7.html\"><img src=\"image7.jpg\" alt=\"Order 7\"></a>\n <a href=\"/detail8.html\"><img src=\"image8.jpg\" alt=\"Order 8\"></a>\n </section>\n</main>\n<footer>\n <p>Order System Management Platform</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #2c3e50;\n --secondary-color: #3498db;\n --background-color: #ecf0f1;\n --text-color: #333;\n --border-radius: 8px;\n --transition-speed: 0.3s;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Segoe UI', sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n background-color: var(--background-color);\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n}\n\nheader {\n background: var(--primary-color);\n color: white;\n padding: 1.5rem;\n text-align: center;\n}\n\nmain {\n display: flex;\n flex: 1;\n padding: 2rem;\n gap: 2rem;\n}\n\n.tree-nav {\n width: 250px;\n background: white;\n padding: 1rem;\n border-radius: var(--border-radius);\n box-shadow: 0 2px 5px rgba(0,0,0,0.1);\n}\n\n.tree-nav ul {\n list-style: none;\n}\n\n.tree-nav li {\n margin: 0.5rem 0;\n}\n\n.tree-nav a {\n color: var(--primary-color);\n text-decoration: none;\n transition: color var(--transition-speed);\n}\n\n.tree-nav a:hover {\n color: var(--secondary-color);\n}\n\n.image-grid {\n flex: 1;\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 1.5rem;\n}\n\n.image-grid img {\n width: 100%;\n height: 200px;\n object-fit: cover;\n border-radius: var(--border-radius);\n transition: transform var(--transition-speed), box-shadow var(--transition-speed);\n}\n\n.image-grid a:hover img {\n transform: scale(1.05);\n box-shadow: 0 4px 15px rgba(0,0,0,0.2);\n}\n\nfooter {\n background: var(--primary-color);\n color: white;\n text-align: center;\n padding: 1rem;\n}\n\n@media (max-width: 768px) {\n main {\n flex-direction: column;\n }\n \n .tree-nav {\n width: 100%;\n }\n \n .image-grid {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n\n@media (max-width: 480px) {\n .image-grid {\n grid-template-columns: 1fr;\n }\n}\n---script.js---\n// Add smooth scrolling for anchor links\ndocument.querySelectorAll('a[href^=\"#\"]').forEach(anchor => {\n anchor.addEventListener('click', function (e) {\n e.preventDefault();\n document.querySelector(this.getAttribute('href')).scrollIntoView({\n behavior: 'smooth'\n });\n });\n});\n\n// Add hover effects for tree navigation\nconst treeLinks = document.querySelectorAll('.tree-nav a');\ntreeLinks.forEach(link => {\n link.addEventListener('mouseenter', () => {\n link.style.transform = 'translateX(5px)';\n });\n link.addEventListener('mouseleave', () => {\n link.style.transform = 'translateX(0)';\n });\n});\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 277, + "completion_tokens": 1122, + "total_tokens": 1399, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 277 + }, + "system_fingerprint": "fp_3a5770e1b4" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..8937ad4 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,3 @@ +# ordersys.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..7d5e01c --- /dev/null +++ b/script.js @@ -0,0 +1,20 @@ +// Add smooth scrolling for anchor links +document.querySelectorAll('a[href^="#"]').forEach(anchor => { + anchor.addEventListener('click', function (e) { + e.preventDefault(); + document.querySelector(this.getAttribute('href')).scrollIntoView({ + behavior: 'smooth' + }); + }); +}); + +// Add hover effects for tree navigation +const treeLinks = document.querySelectorAll('.tree-nav a'); +treeLinks.forEach(link => { + link.addEventListener('mouseenter', () => { + link.style.transform = 'translateX(5px)'; + }); + link.addEventListener('mouseleave', () => { + link.style.transform = 'translateX(0)'; + }); +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..0162bf6 --- /dev/null +++ b/style.css @@ -0,0 +1,111 @@ +:root { + --primary-color: #2c3e50; + --secondary-color: #3498db; + --background-color: #ecf0f1; + --text-color: #333; + --border-radius: 8px; + --transition-speed: 0.3s; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: 'Segoe UI', sans-serif; + line-height: 1.6; + color: var(--text-color); + background-color: var(--background-color); + min-height: 100vh; + display: flex; + flex-direction: column; +} + +header { + background: var(--primary-color); + color: white; + padding: 1.5rem; + text-align: center; +} + +main { + display: flex; + flex: 1; + padding: 2rem; + gap: 2rem; +} + +.tree-nav { + width: 250px; + background: white; + padding: 1rem; + border-radius: var(--border-radius); + box-shadow: 0 2px 5px rgba(0,0,0,0.1); +} + +.tree-nav ul { + list-style: none; +} + +.tree-nav li { + margin: 0.5rem 0; +} + +.tree-nav a { + color: var(--primary-color); + text-decoration: none; + transition: color var(--transition-speed); +} + +.tree-nav a:hover { + color: var(--secondary-color); +} + +.image-grid { + flex: 1; + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 1.5rem; +} + +.image-grid img { + width: 100%; + height: 200px; + object-fit: cover; + border-radius: var(--border-radius); + transition: transform var(--transition-speed), box-shadow var(--transition-speed); +} + +.image-grid a:hover img { + transform: scale(1.05); + box-shadow: 0 4px 15px rgba(0,0,0,0.2); +} + +footer { + background: var(--primary-color); + color: white; + text-align: center; + padding: 1rem; +} + +@media (max-width: 768px) { + main { + flex-direction: column; + } + + .tree-nav { + width: 100%; + } + + .image-grid { + grid-template-columns: repeat(2, 1fr); + } +} + +@media (max-width: 480px) { + .image-grid { + grid-template-columns: 1fr; + } +} \ No newline at end of file