commit 8d79a42d2c734ff0c2a487dd33ef80c586f1e977
Author: root <root@hub.scroll.pub> Date: 2025-01-01 09:59:08 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..e01b4ed --- /dev/null +++ b/body.html @@ -0,0 +1,77 @@ +<header> + <nav> + <div class="logo">BookHaven</div> + <ul class="nav-links"> + <li><a href="#featured">Featured</a></li> + <li><a href="#categories">Categories</a></li> + <li><a href="#about">About</a></li> + <li><a href="#contact">Contact</a></li> + </ul> + </nav> + <div class="hero"> + <h1>Discover Your Next Favorite Book</h1> + <p>Explore our curated collection of books across various genres.</p> + <a href="#featured" class="cta">Browse Books</a> + </div> +</header> + +<section id="featured" class="featured-books"> + <h2>Featured Books</h2> + <div class="book-grid"> + <div class="book-card"> + <img src="/images/book1.jpg" alt="Book 1"> + <h3>Book Title 1</h3> + <p>Author Name</p> + <button>Add to Cart</button> + </div> + <div class="book-card"> + <img src="/images/book2.jpg" alt="Book 2"> + <h3>Book Title 2</h3> + <p>Author Name</p> + <button>Add to Cart</button> + </div> + <div class="book-card"> + <img src="/images/book3.jpg" alt="Book 3"> + <h3>Book Title 3</h3> + <p>Author Name</p> + <button>Add to Cart</button> + </div> + </div> +</section> + +<section id="categories" class="categories"> + <h2>Categories</h2> + <div class="category-grid"> + <div class="category-card"> + <h3>Fiction</h3> + <p>Explore our collection of fiction books.</p> + </div> + <div class="category-card"> + <h3>Non-Fiction</h3> + <p>Discover non-fiction books on various topics.</p> + </div> + <div class="category-card"> + <h3>Children's</h3> + <p>Find books for young readers.</p> + </div> + </div> +</section> + +<section id="about" class="about"> + <h2>About BookHaven</h2> + <p>BookHaven is your go-to online bookstore for discovering and purchasing books across a wide range of genres. We are passionate about connecting readers with their next favorite book.</p> +</section> + +<section id="contact" class="contact"> + <h2>Contact Us</h2> + <form> + <input type="text" placeholder="Your Name" required> + <input type="email" placeholder="Your Email" required> + <textarea placeholder="Your Message" required></textarea> + <button type="submit">Send Message</button> + </form> +</section> + +<footer> + <p>BookHaven - Your Online Bookstore</p> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..1c6eca3 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://bookhaven.scroll.pub +metaTags +editButton /edit.html +title BookHaven - Your Online Bookstore +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..b6c56f4 --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "c65653fb-32a8-4b3a-a52a-aaacb904c6b2", + "object": "chat.completion", + "created": 1735725522, + "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 BookHaven - Your Online Bookstore\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <nav>\n <div class=\"logo\">BookHaven</div>\n <ul class=\"nav-links\">\n <li><a href=\"#featured\">Featured</a></li>\n <li><a href=\"#categories\">Categories</a></li>\n <li><a href=\"#about\">About</a></li>\n <li><a href=\"#contact\">Contact</a></li>\n </ul>\n </nav>\n <div class=\"hero\">\n <h1>Discover Your Next Favorite Book</h1>\n <p>Explore our curated collection of books across various genres.</p>\n <a href=\"#featured\" class=\"cta\">Browse Books</a>\n </div>\n</header>\n\n<section id=\"featured\" class=\"featured-books\">\n <h2>Featured Books</h2>\n <div class=\"book-grid\">\n <div class=\"book-card\">\n <img src=\"/images/book1.jpg\" alt=\"Book 1\">\n <h3>Book Title 1</h3>\n <p>Author Name</p>\n <button>Add to Cart</button>\n </div>\n <div class=\"book-card\">\n <img src=\"/images/book2.jpg\" alt=\"Book 2\">\n <h3>Book Title 2</h3>\n <p>Author Name</p>\n <button>Add to Cart</button>\n </div>\n <div class=\"book-card\">\n <img src=\"/images/book3.jpg\" alt=\"Book 3\">\n <h3>Book Title 3</h3>\n <p>Author Name</p>\n <button>Add to Cart</button>\n </div>\n </div>\n</section>\n\n<section id=\"categories\" class=\"categories\">\n <h2>Categories</h2>\n <div class=\"category-grid\">\n <div class=\"category-card\">\n <h3>Fiction</h3>\n <p>Explore our collection of fiction books.</p>\n </div>\n <div class=\"category-card\">\n <h3>Non-Fiction</h3>\n <p>Discover non-fiction books on various topics.</p>\n </div>\n <div class=\"category-card\">\n <h3>Children's</h3>\n <p>Find books for young readers.</p>\n </div>\n </div>\n</section>\n\n<section id=\"about\" class=\"about\">\n <h2>About BookHaven</h2>\n <p>BookHaven is your go-to online bookstore for discovering and purchasing books across a wide range of genres. We are passionate about connecting readers with their next favorite book.</p>\n</section>\n\n<section id=\"contact\" class=\"contact\">\n <h2>Contact Us</h2>\n <form>\n <input type=\"text\" placeholder=\"Your Name\" required>\n <input type=\"email\" placeholder=\"Your Email\" required>\n <textarea placeholder=\"Your Message\" required></textarea>\n <button type=\"submit\">Send Message</button>\n </form>\n</section>\n\n<footer>\n <p>BookHaven - Your Online Bookstore</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #4a90e2;\n --secondary-color: #333;\n --background-color: #f4f4f4;\n --text-color: #333;\n --white: #fff;\n}\n\nbody {\n font-family: 'Arial', sans-serif;\n margin: 0;\n padding: 0;\n color: var(--text-color);\n background-color: var(--background-color);\n}\n\nheader {\n background: var(--primary-color);\n color: var(--white);\n padding: 20px 0;\n text-align: center;\n}\n\nheader .logo {\n font-size: 24px;\n font-weight: bold;\n}\n\nheader nav ul {\n list-style: none;\n padding: 0;\n}\n\nheader nav ul li {\n display: inline;\n margin: 0 15px;\n}\n\nheader nav ul li a {\n color: var(--white);\n text-decoration: none;\n}\n\n.hero {\n padding: 100px 20px;\n background: var(--primary-color);\n color: var(--white);\n}\n\n.hero h1 {\n font-size: 48px;\n margin-bottom: 20px;\n}\n\n.hero p {\n font-size: 18px;\n margin-bottom: 30px;\n}\n\n.hero .cta {\n background: var(--white);\n color: var(--primary-color);\n padding: 10px 20px;\n text-decoration: none;\n border-radius: 5px;\n}\n\n.featured-books, .categories, .about, .contact {\n padding: 50px 20px;\n text-align: center;\n}\n\n.featured-books h2, .categories h2, .about h2, .contact h2 {\n font-size: 36px;\n margin-bottom: 30px;\n}\n\n.book-grid, .category-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 20px;\n}\n\n.book-card, .category-card {\n background: var(--white);\n padding: 20px;\n border-radius: 10px;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);\n}\n\n.book-card img {\n width: 100%;\n border-radius: 5px;\n}\n\n.book-card h3, .category-card h3 {\n font-size: 20px;\n margin: 15px 0 10px;\n}\n\n.book-card p, .category-card p {\n font-size: 16px;\n color: #666;\n}\n\n.book-card button {\n background: var(--primary-color);\n color: var(--white);\n border: none;\n padding: 10px 20px;\n border-radius: 5px;\n cursor: pointer;\n}\n\n.contact form {\n max-width: 600px;\n margin: 0 auto;\n text-align: left;\n}\n\n.contact input, .contact textarea {\n width: 100%;\n padding: 10px;\n margin-bottom: 20px;\n border: 1px solid #ccc;\n border-radius: 5px;\n}\n\n.contact button {\n background: var(--primary-color);\n color: var(--white);\n border: none;\n padding: 10px 20px;\n border-radius: 5px;\n cursor: pointer;\n}\n\nfooter {\n background: var(--secondary-color);\n color: var(--white);\n text-align: center;\n padding: 20px 0;\n}\n\n@media (max-width: 768px) {\n header nav ul li {\n display: block;\n margin: 10px 0;\n }\n\n .hero h1 {\n font-size: 36px;\n }\n\n .hero p {\n font-size: 16px;\n }\n\n .featured-books h2, .categories h2, .about h2, .contact h2 {\n font-size: 28px;\n }\n}\n---script.js---\n// 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---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 241, + "completion_tokens": 1691, + "total_tokens": 1932, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 241 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..998f2f9 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# bookhaven1.scroll.pub +Website generated by DeepSeek from prompt: create a website for the bookselling \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..5716c79 --- /dev/null +++ b/script.js @@ -0,0 +1,9 @@ +// 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' + }); + }); +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..194e849 --- /dev/null +++ b/style.css @@ -0,0 +1,162 @@ +:root { + --primary-color: #4a90e2; + --secondary-color: #333; + --background-color: #f4f4f4; + --text-color: #333; + --white: #fff; +} + +body { + font-family: 'Arial', sans-serif; + margin: 0; + padding: 0; + color: var(--text-color); + background-color: var(--background-color); +} + +header { + background: var(--primary-color); + color: var(--white); + padding: 20px 0; + text-align: center; +} + +header .logo { + font-size: 24px; + font-weight: bold; +} + +header nav ul { + list-style: none; + padding: 0; +} + +header nav ul li { + display: inline; + margin: 0 15px; +} + +header nav ul li a { + color: var(--white); + text-decoration: none; +} + +.hero { + padding: 100px 20px; + background: var(--primary-color); + color: var(--white); +} + +.hero h1 { + font-size: 48px; + margin-bottom: 20px; +} + +.hero p { + font-size: 18px; + margin-bottom: 30px; +} + +.hero .cta { + background: var(--white); + color: var(--primary-color); + padding: 10px 20px; + text-decoration: none; + border-radius: 5px; +} + +.featured-books, .categories, .about, .contact { + padding: 50px 20px; + text-align: center; +} + +.featured-books h2, .categories h2, .about h2, .contact h2 { + font-size: 36px; + margin-bottom: 30px; +} + +.book-grid, .category-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 20px; +} + +.book-card, .category-card { + background: var(--white); + padding: 20px; + border-radius: 10px; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); +} + +.book-card img { + width: 100%; + border-radius: 5px; +} + +.book-card h3, .category-card h3 { + font-size: 20px; + margin: 15px 0 10px; +} + +.book-card p, .category-card p { + font-size: 16px; + color: #666; +} + +.book-card button { + background: var(--primary-color); + color: var(--white); + border: none; + padding: 10px 20px; + border-radius: 5px; + cursor: pointer; +} + +.contact form { + max-width: 600px; + margin: 0 auto; + text-align: left; +} + +.contact input, .contact textarea { + width: 100%; + padding: 10px; + margin-bottom: 20px; + border: 1px solid #ccc; + border-radius: 5px; +} + +.contact button { + background: var(--primary-color); + color: var(--white); + border: none; + padding: 10px 20px; + border-radius: 5px; + cursor: pointer; +} + +footer { + background: var(--secondary-color); + color: var(--white); + text-align: center; + padding: 20px 0; +} + +@media (max-width: 768px) { + header nav ul li { + display: block; + margin: 10px 0; + } + + .hero h1 { + font-size: 36px; + } + + .hero p { + font-size: 16px; + } + + .featured-books h2, .categories h2, .about h2, .contact h2 { + font-size: 28px; + } +} \ No newline at end of file