commit 414825fd57f299048a0d5ff7d285a65fb80ace76
Author: ffff:205.198.68.35 <ffff:205.198.68.35@hub.scroll.pub> Date: 2025-01-01 13:22:37 +0000 Subject: updated index.scroll diff --git a/index.scroll b/index.scroll index 35ae718..9ac160c 100644 --- a/index.scroll +++ b/index.scroll @@ -1,8 +1,8 @@ buildHtml baseUrl https://bookwise.scroll.pub +title BookWise - Your Ultimate Guide to Learning Resources metaTags editButton /edit.html -title BookWise - Your Ultimate Guide to Learning Resources style.css body.html -script.js \ No newline at end of file +script.js
commit 0b3b0729b39a7831ca27bebd10b0b97f87c6c966
Author: root <root@hub.scroll.pub> Date: 2025-01-01 13:10:20 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..2868f47 --- /dev/null +++ b/body.html @@ -0,0 +1,58 @@ +<header class="header"> + <h1>BookWise</h1> + <p>Your Ultimate Guide to Learning Resources</p> +</header> + +<nav class="categories"> + <ul> + <li><a href="#elementary">Elementary</a></li> + <li><a href="#middle-school">Middle School</a></li> + <li><a href="#high-school">High School</a></li> + </ul> +</nav> + +<section id="elementary" class="category"> + <h2>Elementary School Books</h2> + <div class="book-list"> + <div class="book"> + <h3><a href="#book1">Math Adventures</a></h3> + <div class="rating">★★★★☆</div> + </div> + <div class="book"> + <h3><a href="#book2">Science Explorers</a></h3> + <div class="rating">★★★☆☆</div> + </div> + </div> +</section> + +<section id="middle-school" class="category"> + <h2>Middle School Books</h2> + <div class="book-list"> + <div class="book"> + <h3><a href="#book3">Algebra Basics</a></h3> + <div class="rating">★★★★★</div> + </div> + <div class="book"> + <h3><a href="#book4">World History</a></h3> + <div class="rating">★★★★☆</div> + </div> + </div> +</section> + +<section id="high-school" class="category"> + <h2>High School Books</h2> + <div class="book-list"> + <div class="book"> + <h3><a href="#book5">Advanced Calculus</a></h3> + <div class="rating">★★★★☆</div> + </div> + <div class="book"> + <h3><a href="#book6">Chemistry Concepts</a></h3> + <div class="rating">★★★★★</div> + </div> + </div> +</section> + +<footer class="footer"> + <p>Explore, Learn, and Grow with BookWise</p> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..35ae718 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://bookwise.scroll.pub +metaTags +editButton /edit.html +title BookWise - Your Ultimate Guide to Learning Resources +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..36d2a56 --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "2a036341-5d09-4890-b33a-4d762ceab9b0", + "object": "chat.completion", + "created": 1735737000, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\nbookwise.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://bookwise.scroll.pub\nmetaTags\neditButton /edit.html\ntitle BookWise - Your Ultimate Guide to Learning Resources\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header class=\"header\">\n <h1>BookWise</h1>\n <p>Your Ultimate Guide to Learning Resources</p>\n</header>\n\n<nav class=\"categories\">\n <ul>\n <li><a href=\"#elementary\">Elementary</a></li>\n <li><a href=\"#middle-school\">Middle School</a></li>\n <li><a href=\"#high-school\">High School</a></li>\n </ul>\n</nav>\n\n<section id=\"elementary\" class=\"category\">\n <h2>Elementary School Books</h2>\n <div class=\"book-list\">\n <div class=\"book\">\n <h3><a href=\"#book1\">Math Adventures</a></h3>\n <div class=\"rating\">★★★★☆</div>\n </div>\n <div class=\"book\">\n <h3><a href=\"#book2\">Science Explorers</a></h3>\n <div class=\"rating\">★★★☆☆</div>\n </div>\n </div>\n</section>\n\n<section id=\"middle-school\" class=\"category\">\n <h2>Middle School Books</h2>\n <div class=\"book-list\">\n <div class=\"book\">\n <h3><a href=\"#book3\">Algebra Basics</a></h3>\n <div class=\"rating\">★★★★★</div>\n </div>\n <div class=\"book\">\n <h3><a href=\"#book4\">World History</a></h3>\n <div class=\"rating\">★★★★☆</div>\n </div>\n </div>\n</section>\n\n<section id=\"high-school\" class=\"category\">\n <h2>High School Books</h2>\n <div class=\"book-list\">\n <div class=\"book\">\n <h3><a href=\"#book5\">Advanced Calculus</a></h3>\n <div class=\"rating\">★★★★☆</div>\n </div>\n <div class=\"book\">\n <h3><a href=\"#book6\">Chemistry Concepts</a></h3>\n <div class=\"rating\">★★★★★</div>\n </div>\n </div>\n</section>\n\n<footer class=\"footer\">\n <p>Explore, Learn, and Grow with BookWise</p>\n</footer>\n---style.css---\nbody {\n font-family: 'Arial', sans-serif;\n margin: 0;\n padding: 0;\n background-color: #f4f4f9;\n color: #333;\n}\n\n.header {\n background-color: #6200ee;\n color: white;\n padding: 2rem;\n text-align: center;\n}\n\n.header h1 {\n margin: 0;\n font-size: 2.5rem;\n}\n\n.header p {\n margin: 0.5rem 0 0;\n font-size: 1.2rem;\n}\n\n.categories {\n background-color: #3700b3;\n padding: 1rem;\n text-align: center;\n}\n\n.categories ul {\n list-style: none;\n padding: 0;\n margin: 0;\n display: flex;\n justify-content: center;\n}\n\n.categories li {\n margin: 0 1rem;\n}\n\n.categories a {\n color: white;\n text-decoration: none;\n font-size: 1.1rem;\n}\n\n.category {\n padding: 2rem;\n}\n\n.category h2 {\n color: #6200ee;\n margin-bottom: 1rem;\n}\n\n.book-list {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 1rem;\n}\n\n.book {\n background-color: white;\n padding: 1rem;\n border-radius: 8px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n text-align: center;\n}\n\n.book h3 {\n margin: 0;\n font-size: 1.2rem;\n}\n\n.book a {\n color: #6200ee;\n text-decoration: none;\n}\n\n.rating {\n color: #ffc107;\n font-size: 1.1rem;\n margin-top: 0.5rem;\n}\n\n.footer {\n background-color: #3700b3;\n color: white;\n text-align: center;\n padding: 1rem;\n margin-top: 2rem;\n}\n\n@media (max-width: 768px) {\n .categories ul {\n flex-direction: column;\n }\n\n .categories li {\n margin: 0.5rem 0;\n }\n\n .book-list {\n grid-template-columns: 1fr;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n const books = document.querySelectorAll('.book h3 a');\n books.forEach(book => {\n book.addEventListener('click', function(event) {\n event.preventDefault();\n alert('Chapter content for ' + book.textContent + ' will be displayed here.');\n });\n });\n});\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 280, + "completion_tokens": 1152, + "total_tokens": 1432, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 280 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..4b2f7e7 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# bookwise.scroll.pub +Website generated by DeepSeek from prompt: 我想要一个网站,推荐图书的,有很多分类,包括小学初中和高中的各类学习资料,可以给每个书记打分(最多5星),点击书籍的名称可以看到里面的章节内容,其他任意发挥,首页要简介漂亮 \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..7e560c8 --- /dev/null +++ b/script.js @@ -0,0 +1,9 @@ +document.addEventListener('DOMContentLoaded', function() { + const books = document.querySelectorAll('.book h3 a'); + books.forEach(book => { + book.addEventListener('click', function(event) { + event.preventDefault(); + alert('Chapter content for ' + book.textContent + ' will be displayed here.'); + }); + }); +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..f6407a6 --- /dev/null +++ b/style.css @@ -0,0 +1,109 @@ +body { + font-family: 'Arial', sans-serif; + margin: 0; + padding: 0; + background-color: #f4f4f9; + color: #333; +} + +.header { + background-color: #6200ee; + color: white; + padding: 2rem; + text-align: center; +} + +.header h1 { + margin: 0; + font-size: 2.5rem; +} + +.header p { + margin: 0.5rem 0 0; + font-size: 1.2rem; +} + +.categories { + background-color: #3700b3; + padding: 1rem; + text-align: center; +} + +.categories ul { + list-style: none; + padding: 0; + margin: 0; + display: flex; + justify-content: center; +} + +.categories li { + margin: 0 1rem; +} + +.categories a { + color: white; + text-decoration: none; + font-size: 1.1rem; +} + +.category { + padding: 2rem; +} + +.category h2 { + color: #6200ee; + margin-bottom: 1rem; +} + +.book-list { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 1rem; +} + +.book { + background-color: white; + padding: 1rem; + border-radius: 8px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + text-align: center; +} + +.book h3 { + margin: 0; + font-size: 1.2rem; +} + +.book a { + color: #6200ee; + text-decoration: none; +} + +.rating { + color: #ffc107; + font-size: 1.1rem; + margin-top: 0.5rem; +} + +.footer { + background-color: #3700b3; + color: white; + text-align: center; + padding: 1rem; + margin-top: 2rem; +} + +@media (max-width: 768px) { + .categories ul { + flex-direction: column; + } + + .categories li { + margin: 0.5rem 0; + } + + .book-list { + grid-template-columns: 1fr; + } +} \ No newline at end of file