commit 1810508b049603116b2a0628484fe666f960c7f5
Author: root <root@hub.scroll.pub> Date: 2025-01-02 03:06:25 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..4b655ab --- /dev/null +++ b/body.html @@ -0,0 +1,44 @@ +<header> + <h1>The Book Haven</h1> + <p>Discover the magic of reading with our featured book</p> +</header> + +<main> + <section class="book-feature"> + <img src="/images/book-cover.jpg" alt="Cover of 'The Enchanted Forest'"> + <div class="book-details"> + <h2>The Enchanted Forest</h2> + <p class="author">by Sarah J. Willow</p> + <p class="description">Step into a world of magic and wonder with this captivating tale of adventure and friendship.</p> + <div class="cta"> + <a href="#purchase" class="btn">Buy Now</a> + <a href="#preview" class="btn secondary">Read Preview</a> + </div> + </div> + </section> + + <section id="purchase" class="purchase-section"> + <h2>Get Your Copy Today</h2> + <form class="purchase-form"> + <label for="quantity">Quantity:</label> + <input type="number" id="quantity" name="quantity" min="1" value="1"> + <button type="submit" class="btn">Add to Cart</button> + </form> + </section> + + <section id="preview" class="preview-section"> + <h2>Read a Preview</h2> + <div class="preview-content"> + <p>Once upon a time, in a land far, far away, there was a forest unlike any other...</p> + <p>The trees whispered secrets to those who would listen, and the streams sang songs of ancient times...</p> + </div> + </section> +</main> + +<footer> + <nav> + <a href="/about">About Us</a> + <a href="/contact">Contact</a> + <a href="/privacy">Privacy Policy</a> + </nav> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..a2b666c --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://bookhaven.scroll.pub +metaTags +editButton /edit.html +title The Book Haven - Discover Your Next Read +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..9210284 --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "961ee7ed-ba4e-4e86-ac5f-26da6352afa6", + "object": "chat.completion", + "created": 1735787163, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\nbookhaven.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://bookhaven.scroll.pub\nmetaTags\neditButton /edit.html\ntitle The Book Haven - Discover Your Next Read\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>The Book Haven</h1>\n <p>Discover the magic of reading with our featured book</p>\n</header>\n\n<main>\n <section class=\"book-feature\">\n <img src=\"/images/book-cover.jpg\" alt=\"Cover of 'The Enchanted Forest'\">\n <div class=\"book-details\">\n <h2>The Enchanted Forest</h2>\n <p class=\"author\">by Sarah J. Willow</p>\n <p class=\"description\">Step into a world of magic and wonder with this captivating tale of adventure and friendship.</p>\n <div class=\"cta\">\n <a href=\"#purchase\" class=\"btn\">Buy Now</a>\n <a href=\"#preview\" class=\"btn secondary\">Read Preview</a>\n </div>\n </div>\n </section>\n\n <section id=\"purchase\" class=\"purchase-section\">\n <h2>Get Your Copy Today</h2>\n <form class=\"purchase-form\">\n <label for=\"quantity\">Quantity:</label>\n <input type=\"number\" id=\"quantity\" name=\"quantity\" min=\"1\" value=\"1\">\n <button type=\"submit\" class=\"btn\">Add to Cart</button>\n </form>\n </section>\n\n <section id=\"preview\" class=\"preview-section\">\n <h2>Read a Preview</h2>\n <div class=\"preview-content\">\n <p>Once upon a time, in a land far, far away, there was a forest unlike any other...</p>\n <p>The trees whispered secrets to those who would listen, and the streams sang songs of ancient times...</p>\n </div>\n </section>\n</main>\n\n<footer>\n <nav>\n <a href=\"/about\">About Us</a>\n <a href=\"/contact\">Contact</a>\n <a href=\"/privacy\">Privacy Policy</a>\n </nav>\n</footer>\n---style.css---\n:root {\n --primary-color: #4a90e2;\n --secondary-color: #f5f5f5;\n --text-color: #333;\n --font-family: 'Georgia', serif;\n}\n\nbody {\n font-family: var(--font-family);\n color: var(--text-color);\n margin: 0;\n padding: 0;\n line-height: 1.6;\n}\n\nheader {\n background: var(--primary-color);\n color: white;\n padding: 2rem;\n text-align: center;\n}\n\nh1 {\n font-size: 2.5rem;\n margin-bottom: 0.5rem;\n}\n\n.book-feature {\n display: flex;\n flex-wrap: wrap;\n gap: 2rem;\n padding: 2rem;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.book-feature img {\n max-width: 300px;\n height: auto;\n border-radius: 8px;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);\n}\n\n.book-details {\n flex: 1;\n min-width: 300px;\n}\n\n.author {\n font-style: italic;\n color: #666;\n}\n\n.description {\n margin: 1rem 0;\n}\n\n.cta {\n display: flex;\n gap: 1rem;\n margin-top: 1.5rem;\n}\n\n.btn {\n padding: 0.75rem 1.5rem;\n border: none;\n border-radius: 4px;\n background: var(--primary-color);\n color: white;\n text-decoration: none;\n cursor: pointer;\n transition: background 0.3s ease;\n}\n\n.btn.secondary {\n background: var(--secondary-color);\n color: var(--text-color);\n}\n\n.btn:hover {\n background: #357abd;\n}\n\n.purchase-section, .preview-section {\n padding: 2rem;\n background: var(--secondary-color);\n margin: 2rem 0;\n}\n\n.purchase-form {\n display: flex;\n gap: 1rem;\n align-items: center;\n}\n\n.preview-content {\n max-width: 800px;\n margin: 0 auto;\n}\n\nfooter {\n background: var(--primary-color);\n color: white;\n padding: 1rem;\n text-align: center;\n}\n\nfooter a {\n color: white;\n text-decoration: none;\n margin: 0 1rem;\n}\n\n@media (max-width: 768px) {\n .book-feature {\n flex-direction: column;\n align-items: center;\n text-align: center;\n }\n\n .cta {\n flex-direction: column;\n gap: 0.5rem;\n }\n\n .purchase-form {\n flex-direction: column;\n gap: 0.5rem;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n const purchaseForm = document.querySelector('.purchase-form');\n \n purchaseForm.addEventListener('submit', function(event) {\n event.preventDefault();\n const quantity = document.getElementById('quantity').value;\n alert(`Added ${quantity} copy/copies of \"The Enchanted Forest\" to your cart!`);\n });\n});\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 246, + "completion_tokens": 1199, + "total_tokens": 1445, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 246 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..89b88a5 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# bookhaven2.scroll.pub +Website generated by DeepSeek from prompt: create an blog website for a bookselling for only one book. \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..5eaa4c7 --- /dev/null +++ b/script.js @@ -0,0 +1,9 @@ +document.addEventListener('DOMContentLoaded', function() { + const purchaseForm = document.querySelector('.purchase-form'); + + purchaseForm.addEventListener('submit', function(event) { + event.preventDefault(); + const quantity = document.getElementById('quantity').value; + alert(`Added ${quantity} copy/copies of "The Enchanted Forest" to your cart!`); + }); +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..a3e7051 --- /dev/null +++ b/style.css @@ -0,0 +1,130 @@ +:root { + --primary-color: #4a90e2; + --secondary-color: #f5f5f5; + --text-color: #333; + --font-family: 'Georgia', serif; +} + +body { + font-family: var(--font-family); + color: var(--text-color); + margin: 0; + padding: 0; + line-height: 1.6; +} + +header { + background: var(--primary-color); + color: white; + padding: 2rem; + text-align: center; +} + +h1 { + font-size: 2.5rem; + margin-bottom: 0.5rem; +} + +.book-feature { + display: flex; + flex-wrap: wrap; + gap: 2rem; + padding: 2rem; + max-width: 1200px; + margin: 0 auto; +} + +.book-feature img { + max-width: 300px; + height: auto; + border-radius: 8px; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); +} + +.book-details { + flex: 1; + min-width: 300px; +} + +.author { + font-style: italic; + color: #666; +} + +.description { + margin: 1rem 0; +} + +.cta { + display: flex; + gap: 1rem; + margin-top: 1.5rem; +} + +.btn { + padding: 0.75rem 1.5rem; + border: none; + border-radius: 4px; + background: var(--primary-color); + color: white; + text-decoration: none; + cursor: pointer; + transition: background 0.3s ease; +} + +.btn.secondary { + background: var(--secondary-color); + color: var(--text-color); +} + +.btn:hover { + background: #357abd; +} + +.purchase-section, .preview-section { + padding: 2rem; + background: var(--secondary-color); + margin: 2rem 0; +} + +.purchase-form { + display: flex; + gap: 1rem; + align-items: center; +} + +.preview-content { + max-width: 800px; + margin: 0 auto; +} + +footer { + background: var(--primary-color); + color: white; + padding: 1rem; + text-align: center; +} + +footer a { + color: white; + text-decoration: none; + margin: 0 1rem; +} + +@media (max-width: 768px) { + .book-feature { + flex-direction: column; + align-items: center; + text-align: center; + } + + .cta { + flex-direction: column; + gap: 0.5rem; + } + + .purchase-form { + flex-direction: column; + gap: 0.5rem; + } +} \ No newline at end of file