commit ea0bace446a7d03b339fca3d26e6fb33db906d78
Author: root <root@hub.scroll.pub> Date: 2025-01-03 06:14:46 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..01e91a4 --- /dev/null +++ b/body.html @@ -0,0 +1,70 @@ +<header> + <nav> + <div class="logo">TechBooks</div> + <div class="nav-links"> + <a href="#home">Home</a> + <a href="#featured">Featured</a> + <a href="#categories">Categories</a> + <a href="#contact">Contact</a> + <button class="cart-btn"><span class="cart-count">0</span>🛒</button> + </div> + </nav> +</header> + +<main> + <section id="hero"> + <h1>Discover the Future of Technology</h1> + <p>Premium ICT and Programming Books for Modern Developers</p> + <button class="cta-button">Browse Collection</button> + </section> + + <section id="featured"> + <h2>Featured Books</h2> + <div class="book-grid"> + <article class="book-card"> + <div class="book-image"></div> + <h3>Advanced Web Development</h3> + <p class="price">$49.99</p> + <button class="add-to-cart">Add to Cart</button> + </article> + <article class="book-card"> + <div class="book-image"></div> + <h3>Cloud Computing Essentials</h3> + <p class="price">$39.99</p> + <button class="add-to-cart">Add to Cart</button> + </article> + <article class="book-card"> + <div class="book-image"></div> + <h3>Artificial Intelligence Basics</h3> + <p class="price">$54.99</p> + <button class="add-to-cart">Add to Cart</button> + </article> + </div> + </section> + + <section id="categories"> + <h2>Categories</h2> + <div class="category-grid"> + <div class="category">Programming</div> + <div class="category">Networking</div> + <div class="category">Security</div> + <div class="category">Database</div> + <div class="category">Cloud Computing</div> + <div class="category">AI & ML</div> + </div> + </section> +</main> + +<footer> + <div class="footer-content"> + <div class="footer-section"> + <h4>About Us</h4> + <p>Your premier destination for ICT and programming books.</p> + </div> + <div class="footer-section"> + <h4>Contact</h4> + <p>Email: info@techbooks.scroll.pub</p> + <p>Phone: (555) 123-4567</p> + </div> + </div> +</footer> diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..b2e1661 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://techbooks.scroll.pub +metaTags +editButton /edit.html +title TechBooks - Premium ICT & Programming Books +style.css +body.html +script.js diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..e3e6ea4 --- /dev/null +++ b/prompt.json @@ -0,0 +1,20 @@ +{ + "id": "msg_015Vtbus7QAh1HpE8hvit8Yt", + "type": "message", + "role": "assistant", + "model": "claude-3-5-sonnet-20241022", + "content": [ + { + "type": "text", + "text": "I'll help create an ICT book sales promotion website. For the domain, I suggest:\n\n---domain---\ntechbooks.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://techbooks.scroll.pub\nmetaTags\neditButton /edit.html\ntitle TechBooks - Premium ICT & Programming Books\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header>\n <nav>\n <div class=\"logo\">TechBooks</div>\n <div class=\"nav-links\">\n <a href=\"#home\">Home</a>\n <a href=\"#featured\">Featured</a>\n <a href=\"#categories\">Categories</a>\n <a href=\"#contact\">Contact</a>\n <button class=\"cart-btn\"><span class=\"cart-count\">0</span>🛒</button>\n </div>\n </nav>\n</header>\n\n<main>\n <section id=\"hero\">\n <h1>Discover the Future of Technology</h1>\n <p>Premium ICT and Programming Books for Modern Developers</p>\n <button class=\"cta-button\">Browse Collection</button>\n </section>\n\n <section id=\"featured\">\n <h2>Featured Books</h2>\n <div class=\"book-grid\">\n <article class=\"book-card\">\n <div class=\"book-image\"></div>\n <h3>Advanced Web Development</h3>\n <p class=\"price\">$49.99</p>\n <button class=\"add-to-cart\">Add to Cart</button>\n </article>\n <article class=\"book-card\">\n <div class=\"book-image\"></div>\n <h3>Cloud Computing Essentials</h3>\n <p class=\"price\">$39.99</p>\n <button class=\"add-to-cart\">Add to Cart</button>\n </article>\n <article class=\"book-card\">\n <div class=\"book-image\"></div>\n <h3>Artificial Intelligence Basics</h3>\n <p class=\"price\">$54.99</p>\n <button class=\"add-to-cart\">Add to Cart</button>\n </article>\n </div>\n </section>\n\n <section id=\"categories\">\n <h2>Categories</h2>\n <div class=\"category-grid\">\n <div class=\"category\">Programming</div>\n <div class=\"category\">Networking</div>\n <div class=\"category\">Security</div>\n <div class=\"category\">Database</div>\n <div class=\"category\">Cloud Computing</div>\n <div class=\"category\">AI & ML</div>\n </div>\n </section>\n</main>\n\n<footer>\n <div class=\"footer-content\">\n <div class=\"footer-section\">\n <h4>About Us</h4>\n <p>Your premier destination for ICT and programming books.</p>\n </div>\n <div class=\"footer-section\">\n <h4>Contact</h4>\n <p>Email: info@techbooks.scroll.pub</p>\n <p>Phone: (555) 123-4567</p>\n </div>\n </div>\n</footer>\n\n---style.css---\n:root {\n --primary-color: #2a6bff;\n --secondary-color: #ff6b6b;\n --bg-color: #f8f9fa;\n --text-color: #333;\n --transition: all 0.3s ease;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Segoe UI', system-ui, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n background: var(--bg-color);\n}\n\nheader {\n position: fixed;\n width: 100%;\n background: rgba(255, 255, 255, 0.95);\n backdrop-filter: blur(10px);\n box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);\n z-index: 1000;\n}\n\nnav {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 1rem 5%;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.logo {\n font-size: 1.5rem;\n font-weight: bold;\n background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));\n -webkit-background-clip: text;\n color: transparent;\n}\n\n.nav-links a {\n margin-left: 2rem;\n text-decoration: none;\n color: var(--text-color);\n transition: var(--transition);\n}\n\n.nav-links a:hover {\n color: var(--primary-color);\n}\n\n.cart-btn {\n background: none;\n border: none;\n font-size: 1.2rem;\n cursor: pointer;\n margin-left: 2rem;\n position: relative;\n}\n\n.cart-count {\n position: absolute;\n top: -8px;\n right: -8px;\n background: var(--secondary-color);\n color: white;\n border-radius: 50%;\n padding: 0.2rem 0.5rem;\n font-size: 0.8rem;\n}\n\n#hero {\n height: 100vh;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n background: linear-gradient(135deg, #fff 0%, #f0f2ff 100%);\n padding: 2rem;\n}\n\nh1 {\n font-size: 3.5rem;\n margin-bottom: 1rem;\n background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));\n -webkit-background-clip: text;\n color: transparent;\n}\n\n.cta-button {\n padding: 1rem 2rem;\n font-size: 1.1rem;\n background: var(--primary-color);\n color: white;\n border: none;\n border-radius: 30px;\n cursor: pointer;\n transition: var(--transition);\n margin-top: 2rem;\n}\n\n.cta-button:hover {\n transform: translateY(-2px);\n box-shadow: 0 5px 15px rgba(42, 107, 255, 0.3);\n}\n\n.book-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n padding: 2rem;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.book-card {\n background: white;\n border-radius: 15px;\n padding: 1rem;\n text-align: center;\n transition: var(--transition);\n box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);\n}\n\n.book-card:hover {\n transform: translateY(-5px);\n box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);\n}\n\n.book-image {\n height: 200px;\n background: #eee;\n border-radius: 10px;\n margin-bottom: 1rem;\n}\n\n.category-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 1rem;\n padding: 2rem;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.category {\n background: white;\n padding: 2rem;\n text-align: center;\n border-radius: 10px;\n cursor: pointer;\n transition: var(--transition);\n box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);\n}\n\n.category:hover {\n background: var(--primary-color);\n color: white;\n transform: scale(1.05);\n}\n\nsection {\n padding: 5rem 1rem;\n}\n\nh2 {\n text-align: center;\n margin-bottom: 2rem;\n color: var(--text-color);\n}\n\nfooter {\n background: #333;\n color: white;\n padding: 3rem 1rem;\n}\n\n.footer-content {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n@media (max-width: 768px) {\n .nav-links {\n display: none;\n }\n \n h1 {\n font-size: 2.5rem;\n }\n \n .book-grid {\n grid-template-columns: 1fr;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n // Cart functionality\n let cartCount = 0;\n const cartCountElement = document.querySelector('.cart-count');\n const addToCartButtons = document.querySelectorAll('.add-to-cart');\n\n addToCartButtons.forEach(button => {\n button.addEventListener('click', () => {\n cartCount++;\n cartCountElement.textContent = cartCount;\n \n // Animation effect\n button.textContent = 'Added!';\n button.style.background = '#4CAF50';\n setTimeout(() => {\n button.textContent = 'Add to Cart';\n button.style.background = '';\n }, 1000);\n });\n });\n\n // Smooth scroll for navigation links\n document.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 // Intersection Observer for fade-in animations\n const observer = new IntersectionObserver((entries) => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n entry.target.style.opacity = '1';\n entry.target.style.transform = 'translateY(0)';\n }\n });\n });\n\n // Apply fade-in animation to sections\n document.querySelectorAll('section').forEach(section => {\n section.style.opacity = '0';\n section.style.transform = 'translateY(20px)';\n section.style.transition = 'all 0.6s ease-out';\n observer.observe(section);\n });\n});\n\n---end---\n\nThis creates a modern, responsive ICT book sales website with smooth animations, a beautiful gradient design, and interactive elements. The site features a hero section, featured books display, category grid, and a clean footer. It includes a shopping cart functionality and smooth scrolling navigation.\n\nKey features:\n- Responsive design that works on all devices\n- Beautiful color gradients and animations\n- Interactive book cards with hover effects\n- Shopping cart functionality\n- Smooth scroll navigation\n- Fade-in animations using Intersection Observer\n- Clean, semantic HTML structure\n- Accessible design elements\n- Modern CSS with variables and flexbox/grid layouts\n\nThe design is professional yet engaging, with careful attention to typography, spacing, and user interaction." + } + ], + "stop_reason": "end_turn", + "stop_sequence": null, + "usage": { + "input_tokens": 280, + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "output_tokens": 2938 + } +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..0f120bc --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# techbooks.scroll.pub +Website generated by Claude from prompt: i want an ICT book sales protion site \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..dc2632c --- /dev/null +++ b/script.js @@ -0,0 +1,49 @@ +document.addEventListener('DOMContentLoaded', () => { + // Cart functionality + let cartCount = 0; + const cartCountElement = document.querySelector('.cart-count'); + const addToCartButtons = document.querySelectorAll('.add-to-cart'); + + addToCartButtons.forEach(button => { + button.addEventListener('click', () => { + cartCount++; + cartCountElement.textContent = cartCount; + + // Animation effect + button.textContent = 'Added!'; + button.style.background = '#4CAF50'; + setTimeout(() => { + button.textContent = 'Add to Cart'; + button.style.background = ''; + }, 1000); + }); + }); + + // Smooth scroll for navigation links + document.querySelectorAll('a[href^="#"]').forEach(anchor => { + anchor.addEventListener('click', function (e) { + e.preventDefault(); + document.querySelector(this.getAttribute('href')).scrollIntoView({ + behavior: 'smooth' + }); + }); + }); + + // Intersection Observer for fade-in animations + const observer = new IntersectionObserver((entries) => { + entries.forEach(entry => { + if (entry.isIntersecting) { + entry.target.style.opacity = '1'; + entry.target.style.transform = 'translateY(0)'; + } + }); + }); + + // Apply fade-in animation to sections + document.querySelectorAll('section').forEach(section => { + section.style.opacity = '0'; + section.style.transform = 'translateY(20px)'; + section.style.transition = 'all 0.6s ease-out'; + observer.observe(section); + }); +}); diff --git a/style.css b/style.css new file mode 100644 index 0000000..5addfb8 --- /dev/null +++ b/style.css @@ -0,0 +1,206 @@ +:root { + --primary-color: #2a6bff; + --secondary-color: #ff6b6b; + --bg-color: #f8f9fa; + --text-color: #333; + --transition: all 0.3s ease; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: 'Segoe UI', system-ui, sans-serif; + line-height: 1.6; + color: var(--text-color); + background: var(--bg-color); +} + +header { + position: fixed; + width: 100%; + background: rgba(255, 255, 255, 0.95); + backdrop-filter: blur(10px); + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); + z-index: 1000; +} + +nav { + display: flex; + justify-content: space-between; + align-items: center; + padding: 1rem 5%; + max-width: 1200px; + margin: 0 auto; +} + +.logo { + font-size: 1.5rem; + font-weight: bold; + background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); + -webkit-background-clip: text; + color: transparent; +} + +.nav-links a { + margin-left: 2rem; + text-decoration: none; + color: var(--text-color); + transition: var(--transition); +} + +.nav-links a:hover { + color: var(--primary-color); +} + +.cart-btn { + background: none; + border: none; + font-size: 1.2rem; + cursor: pointer; + margin-left: 2rem; + position: relative; +} + +.cart-count { + position: absolute; + top: -8px; + right: -8px; + background: var(--secondary-color); + color: white; + border-radius: 50%; + padding: 0.2rem 0.5rem; + font-size: 0.8rem; +} + +#hero { + height: 100vh; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + text-align: center; + background: linear-gradient(135deg, #fff 0%, #f0f2ff 100%); + padding: 2rem; +} + +h1 { + font-size: 3.5rem; + margin-bottom: 1rem; + background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); + -webkit-background-clip: text; + color: transparent; +} + +.cta-button { + padding: 1rem 2rem; + font-size: 1.1rem; + background: var(--primary-color); + color: white; + border: none; + border-radius: 30px; + cursor: pointer; + transition: var(--transition); + margin-top: 2rem; +} + +.cta-button:hover { + transform: translateY(-2px); + box-shadow: 0 5px 15px rgba(42, 107, 255, 0.3); +} + +.book-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 2rem; + padding: 2rem; + max-width: 1200px; + margin: 0 auto; +} + +.book-card { + background: white; + border-radius: 15px; + padding: 1rem; + text-align: center; + transition: var(--transition); + box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); +} + +.book-card:hover { + transform: translateY(-5px); + box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); +} + +.book-image { + height: 200px; + background: #eee; + border-radius: 10px; + margin-bottom: 1rem; +} + +.category-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 1rem; + padding: 2rem; + max-width: 1200px; + margin: 0 auto; +} + +.category { + background: white; + padding: 2rem; + text-align: center; + border-radius: 10px; + cursor: pointer; + transition: var(--transition); + box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); +} + +.category:hover { + background: var(--primary-color); + color: white; + transform: scale(1.05); +} + +section { + padding: 5rem 1rem; +} + +h2 { + text-align: center; + margin-bottom: 2rem; + color: var(--text-color); +} + +footer { + background: #333; + color: white; + padding: 3rem 1rem; +} + +.footer-content { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 2rem; + max-width: 1200px; + margin: 0 auto; +} + +@media (max-width: 768px) { + .nav-links { + display: none; + } + + h1 { + font-size: 2.5rem; + } + + .book-grid { + grid-template-columns: 1fr; + } +}