commit d4e4e8c26aadd39d3dcfe7d67d9beeeb285b486a
Author: root <root@hub.scroll.pub> Date: 2025-01-02 01:37:13 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..afd77f9 --- /dev/null +++ b/body.html @@ -0,0 +1,56 @@ +<header class="header"> + <nav class="navbar"> + <a href="#home" class="nav-link">Home</a> + <a href="#products" class="nav-link">Products</a> + <a href="#about" class="nav-link">About</a> + <a href="#contact" class="nav-link">Contact</a> + </nav> +</header> + +<section id="home" class="hero-section"> + <div class="hero-content"> + <h1>Welcome to AppleScroll</h1> + <p>Experience the future of technology with our innovative products.</p> + <a href="#products" class="cta-button">Explore Products</a> + </div> +</section> + +<section id="products" class="products-section"> + <h2>Our Products</h2> + <div class="product-grid"> + <div class="product-card"> + <img src="images/product1.jpg" alt="Product 1"> + <h3>Product 1</h3> + <p>Discover the features of our latest product.</p> + </div> + <div class="product-card"> + <img src="images/product2.jpg" alt="Product 2"> + <h3>Product 2</h3> + <p>Experience unparalleled performance.</p> + </div> + <div class="product-card"> + <img src="images/product3.jpg" alt="Product 3"> + <h3>Product 3</h3> + <p>Designed for the modern lifestyle.</p> + </div> + </div> +</section> + +<section id="about" class="about-section"> + <h2>About Us</h2> + <p>We are dedicated to creating products that inspire and innovate. Our mission is to bring cutting-edge technology to everyone.</p> +</section> + +<section id="contact" class="contact-section"> + <h2>Contact Us</h2> + <form class="contact-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 class="footer"> + <p>AppleScroll - Innovation at Your Fingertips</p> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..3df10e8 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://applescroll.scroll.pub +metaTags +editButton /edit.html +title AppleScroll - Innovation at Your Fingertips +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..0981dc3 --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "661c0c64-39c4-443c-889f-64eefeee9637", + "object": "chat.completion", + "created": 1735781811, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\napplescroll.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://applescroll.scroll.pub\nmetaTags\neditButton /edit.html\ntitle AppleScroll - Innovation at Your Fingertips\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header class=\"header\">\n <nav class=\"navbar\">\n <a href=\"#home\" class=\"nav-link\">Home</a>\n <a href=\"#products\" class=\"nav-link\">Products</a>\n <a href=\"#about\" class=\"nav-link\">About</a>\n <a href=\"#contact\" class=\"nav-link\">Contact</a>\n </nav>\n</header>\n\n<section id=\"home\" class=\"hero-section\">\n <div class=\"hero-content\">\n <h1>Welcome to AppleScroll</h1>\n <p>Experience the future of technology with our innovative products.</p>\n <a href=\"#products\" class=\"cta-button\">Explore Products</a>\n </div>\n</section>\n\n<section id=\"products\" class=\"products-section\">\n <h2>Our Products</h2>\n <div class=\"product-grid\">\n <div class=\"product-card\">\n <img src=\"images/product1.jpg\" alt=\"Product 1\">\n <h3>Product 1</h3>\n <p>Discover the features of our latest product.</p>\n </div>\n <div class=\"product-card\">\n <img src=\"images/product2.jpg\" alt=\"Product 2\">\n <h3>Product 2</h3>\n <p>Experience unparalleled performance.</p>\n </div>\n <div class=\"product-card\">\n <img src=\"images/product3.jpg\" alt=\"Product 3\">\n <h3>Product 3</h3>\n <p>Designed for the modern lifestyle.</p>\n </div>\n </div>\n</section>\n\n<section id=\"about\" class=\"about-section\">\n <h2>About Us</h2>\n <p>We are dedicated to creating products that inspire and innovate. Our mission is to bring cutting-edge technology to everyone.</p>\n</section>\n\n<section id=\"contact\" class=\"contact-section\">\n <h2>Contact Us</h2>\n <form class=\"contact-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 class=\"footer\">\n <p>AppleScroll - Innovation at Your Fingertips</p>\n</footer>\n---style.css---\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Arial', sans-serif;\n line-height: 1.6;\n color: #333;\n}\n\n.header {\n background: #333;\n color: #fff;\n padding: 1rem 0;\n}\n\n.navbar {\n display: flex;\n justify-content: center;\n gap: 2rem;\n}\n\n.nav-link {\n color: #fff;\n text-decoration: none;\n font-size: 1.1rem;\n}\n\n.hero-section {\n background: url('images/hero.jpg') no-repeat center center/cover;\n height: 100vh;\n display: flex;\n justify-content: center;\n align-items: center;\n color: #fff;\n text-align: center;\n}\n\n.hero-content {\n max-width: 600px;\n}\n\n.hero-content h1 {\n font-size: 3rem;\n margin-bottom: 1rem;\n}\n\n.cta-button {\n background: #007aff;\n color: #fff;\n padding: 0.8rem 2rem;\n text-decoration: none;\n border-radius: 5px;\n font-size: 1.1rem;\n}\n\n.products-section {\n padding: 2rem;\n text-align: center;\n}\n\n.product-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n margin-top: 2rem;\n}\n\n.product-card {\n background: #f4f4f4;\n padding: 1rem;\n border-radius: 5px;\n text-align: center;\n}\n\n.product-card img {\n max-width: 100%;\n border-radius: 5px;\n}\n\n.about-section, .contact-section {\n padding: 2rem;\n text-align: center;\n}\n\n.contact-form {\n max-width: 600px;\n margin: 0 auto;\n display: flex;\n flex-direction: column;\n gap: 1rem;\n}\n\n.contact-form input, .contact-form textarea {\n padding: 0.8rem;\n border: 1px solid #ccc;\n border-radius: 5px;\n}\n\n.contact-form button {\n background: #007aff;\n color: #fff;\n padding: 0.8rem;\n border: none;\n border-radius: 5px;\n cursor: pointer;\n}\n\n.footer {\n background: #333;\n color: #fff;\n text-align: center;\n padding: 1rem 0;\n}\n\n@media (max-width: 768px) {\n .navbar {\n flex-direction: column;\n gap: 1rem;\n }\n\n .hero-content h1 {\n font-size: 2rem;\n }\n\n .cta-button {\n padding: 0.6rem 1.5rem;\n }\n\n .product-grid {\n grid-template-columns: 1fr;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n const navLinks = document.querySelectorAll('.nav-link');\n\n navLinks.forEach(link => {\n link.addEventListener('click', function(e) {\n e.preventDefault();\n const targetId = this.getAttribute('href').substring(1);\n const targetSection = document.getElementById(targetId);\n targetSection.scrollIntoView({ behavior: 'smooth' });\n });\n });\n});\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 241, + "completion_tokens": 1337, + "total_tokens": 1578, + "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..42dc7c2 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# applescroll.scroll.pub +Website generated by DeepSeek from prompt: 给我创建一个类似苹果官网的产品网站 \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..e9fe9ef --- /dev/null +++ b/script.js @@ -0,0 +1,12 @@ +document.addEventListener('DOMContentLoaded', function() { + const navLinks = document.querySelectorAll('.nav-link'); + + navLinks.forEach(link => { + link.addEventListener('click', function(e) { + e.preventDefault(); + const targetId = this.getAttribute('href').substring(1); + const targetSection = document.getElementById(targetId); + targetSection.scrollIntoView({ behavior: 'smooth' }); + }); + }); +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..585bd41 --- /dev/null +++ b/style.css @@ -0,0 +1,135 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: 'Arial', sans-serif; + line-height: 1.6; + color: #333; +} + +.header { + background: #333; + color: #fff; + padding: 1rem 0; +} + +.navbar { + display: flex; + justify-content: center; + gap: 2rem; +} + +.nav-link { + color: #fff; + text-decoration: none; + font-size: 1.1rem; +} + +.hero-section { + background: url('images/hero.jpg') no-repeat center center/cover; + height: 100vh; + display: flex; + justify-content: center; + align-items: center; + color: #fff; + text-align: center; +} + +.hero-content { + max-width: 600px; +} + +.hero-content h1 { + font-size: 3rem; + margin-bottom: 1rem; +} + +.cta-button { + background: #007aff; + color: #fff; + padding: 0.8rem 2rem; + text-decoration: none; + border-radius: 5px; + font-size: 1.1rem; +} + +.products-section { + padding: 2rem; + text-align: center; +} + +.product-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 2rem; + margin-top: 2rem; +} + +.product-card { + background: #f4f4f4; + padding: 1rem; + border-radius: 5px; + text-align: center; +} + +.product-card img { + max-width: 100%; + border-radius: 5px; +} + +.about-section, .contact-section { + padding: 2rem; + text-align: center; +} + +.contact-form { + max-width: 600px; + margin: 0 auto; + display: flex; + flex-direction: column; + gap: 1rem; +} + +.contact-form input, .contact-form textarea { + padding: 0.8rem; + border: 1px solid #ccc; + border-radius: 5px; +} + +.contact-form button { + background: #007aff; + color: #fff; + padding: 0.8rem; + border: none; + border-radius: 5px; + cursor: pointer; +} + +.footer { + background: #333; + color: #fff; + text-align: center; + padding: 1rem 0; +} + +@media (max-width: 768px) { + .navbar { + flex-direction: column; + gap: 1rem; + } + + .hero-content h1 { + font-size: 2rem; + } + + .cta-button { + padding: 0.6rem 1.5rem; + } + + .product-grid { + grid-template-columns: 1fr; + } +} \ No newline at end of file