commit 1be822812a8deaa5f82fdca1f6d464b80550c2fc
Author: root <root@hub.scroll.pub> Date: 2025-01-03 10:10:15 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..7127581 --- /dev/null +++ b/body.html @@ -0,0 +1,110 @@ +<header> + <nav class="main-nav"> + <div class="logo">ToolHub</div> + <button class="mobile-menu" aria-label="Toggle menu"> + <span></span><span></span><span></span> + </button> + <ul class="nav-links"> + <li><a href="#downloads">Downloads</a></li> + <li><a href="#documentation">Documentation</a></li> + <li><a href="#tutorials">Tutorials</a></li> + <li><a href="#case-studies">Case Studies</a></li> + </ul> + </nav> +</header> + +<main> + <section class="hero"> + <h1>Discover Powerful Software Tools</h1> + <p>Download, learn, and master professional tools with comprehensive guides and real-world examples</p> + </section> + + <section id="downloads" class="downloads"> + <h2>Featured Tools</h2> + <div class="tools-grid"> + <article class="tool-card"> + <div class="tool-icon">🛠️</div> + <h3>Tool Name 1</h3> + <p>Professional grade software for advanced users</p> + <button class="download-btn">Download</button> + </article> + <article class="tool-card"> + <div class="tool-icon">⚡</div> + <h3>Tool Name 2</h3> + <p>Streamline your workflow with automation</p> + <button class="download-btn">Download</button> + </article> + <article class="tool-card"> + <div class="tool-icon">📊</div> + <h3>Tool Name 3</h3> + <p>Data analysis and visualization suite</p> + <button class="download-btn">Download</button> + </article> + </div> + </section> + + <section id="documentation" class="documentation"> + <h2>Documentation</h2> + <div class="doc-container"> + <div class="doc-card"> + <h3>Getting Started</h3> + <p>Quick setup guides and basic usage</p> + <a href="#" class="read-more">Read More</a> + </div> + <div class="doc-card"> + <h3>Advanced Features</h3> + <p>Detailed technical documentation</p> + <a href="#" class="read-more">Read More</a> + </div> + </div> + </section> + + <section id="tutorials" class="tutorials"> + <h2>Video Tutorials</h2> + <div class="tutorial-grid"> + <div class="tutorial-card"> + <div class="video-placeholder"></div> + <h3>Beginner Tutorial</h3> + <p>Learn the basics in 10 minutes</p> + </div> + <div class="tutorial-card"> + <div class="video-placeholder"></div> + <h3>Advanced Techniques</h3> + <p>Master professional workflows</p> + </div> + </div> + </section> + + <section id="case-studies" class="case-studies"> + <h2>Case Studies</h2> + <div class="cases-grid"> + <article class="case-card"> + <h3>Enterprise Solution</h3> + <p>How Company X improved efficiency by 300%</p> + <a href="#" class="case-link">View Case Study</a> + </article> + <article class="case-card"> + <h3>Startup Success</h3> + <p>Scaling from 0 to 1M users with our tools</p> + <a href="#" class="case-link">View Case Study</a> + </article> + </div> + </section> +</main> + +<footer> + <div class="footer-content"> + <div class="footer-section"> + <h4>Contact</h4> + <p>support@toolhub.scroll.pub</p> + </div> + <div class="footer-section"> + <h4>Links</h4> + <ul> + <li><a href="#about">About</a></li> + <li><a href="#privacy">Privacy</a></li> + <li><a href="#terms">Terms</a></li> + </ul> + </div> + </div> +</footer> diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..1ed7e4e --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://toolhub.scroll.pub +metaTags +editButton /edit.html +title Software Tools Hub - Download, Learn, and Master +style.css +body.html +script.js diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..6957c39 --- /dev/null +++ b/prompt.json @@ -0,0 +1,20 @@ +{ + "id": "msg_01CgPZ8WK1PeTXDQc6Kg1rtB", + "type": "message", + "role": "assistant", + "model": "claude-3-5-sonnet-20241022", + "content": [ + { + "type": "text", + "text": "I'll help create a software tools showcase website. For the domain, I suggest:\n\n---domain---\ntoolhub.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://toolhub.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Software Tools Hub - Download, Learn, and Master\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header>\n <nav class=\"main-nav\">\n <div class=\"logo\">ToolHub</div>\n <button class=\"mobile-menu\" aria-label=\"Toggle menu\">\n <span></span><span></span><span></span>\n </button>\n <ul class=\"nav-links\">\n <li><a href=\"#downloads\">Downloads</a></li>\n <li><a href=\"#documentation\">Documentation</a></li>\n <li><a href=\"#tutorials\">Tutorials</a></li>\n <li><a href=\"#case-studies\">Case Studies</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section class=\"hero\">\n <h1>Discover Powerful Software Tools</h1>\n <p>Download, learn, and master professional tools with comprehensive guides and real-world examples</p>\n </section>\n\n <section id=\"downloads\" class=\"downloads\">\n <h2>Featured Tools</h2>\n <div class=\"tools-grid\">\n <article class=\"tool-card\">\n <div class=\"tool-icon\">🛠️</div>\n <h3>Tool Name 1</h3>\n <p>Professional grade software for advanced users</p>\n <button class=\"download-btn\">Download</button>\n </article>\n <article class=\"tool-card\">\n <div class=\"tool-icon\">⚡</div>\n <h3>Tool Name 2</h3>\n <p>Streamline your workflow with automation</p>\n <button class=\"download-btn\">Download</button>\n </article>\n <article class=\"tool-card\">\n <div class=\"tool-icon\">📊</div>\n <h3>Tool Name 3</h3>\n <p>Data analysis and visualization suite</p>\n <button class=\"download-btn\">Download</button>\n </article>\n </div>\n </section>\n\n <section id=\"documentation\" class=\"documentation\">\n <h2>Documentation</h2>\n <div class=\"doc-container\">\n <div class=\"doc-card\">\n <h3>Getting Started</h3>\n <p>Quick setup guides and basic usage</p>\n <a href=\"#\" class=\"read-more\">Read More</a>\n </div>\n <div class=\"doc-card\">\n <h3>Advanced Features</h3>\n <p>Detailed technical documentation</p>\n <a href=\"#\" class=\"read-more\">Read More</a>\n </div>\n </div>\n </section>\n\n <section id=\"tutorials\" class=\"tutorials\">\n <h2>Video Tutorials</h2>\n <div class=\"tutorial-grid\">\n <div class=\"tutorial-card\">\n <div class=\"video-placeholder\"></div>\n <h3>Beginner Tutorial</h3>\n <p>Learn the basics in 10 minutes</p>\n </div>\n <div class=\"tutorial-card\">\n <div class=\"video-placeholder\"></div>\n <h3>Advanced Techniques</h3>\n <p>Master professional workflows</p>\n </div>\n </div>\n </section>\n\n <section id=\"case-studies\" class=\"case-studies\">\n <h2>Case Studies</h2>\n <div class=\"cases-grid\">\n <article class=\"case-card\">\n <h3>Enterprise Solution</h3>\n <p>How Company X improved efficiency by 300%</p>\n <a href=\"#\" class=\"case-link\">View Case Study</a>\n </article>\n <article class=\"case-card\">\n <h3>Startup Success</h3>\n <p>Scaling from 0 to 1M users with our tools</p>\n <a href=\"#\" class=\"case-link\">View Case Study</a>\n </article>\n </div>\n </section>\n</main>\n\n<footer>\n <div class=\"footer-content\">\n <div class=\"footer-section\">\n <h4>Contact</h4>\n <p>support@toolhub.scroll.pub</p>\n </div>\n <div class=\"footer-section\">\n <h4>Links</h4>\n <ul>\n <li><a href=\"#about\">About</a></li>\n <li><a href=\"#privacy\">Privacy</a></li>\n <li><a href=\"#terms\">Terms</a></li>\n </ul>\n </div>\n </div>\n</footer>\n\n---style.css---\n:root {\n --primary-color: #2563eb;\n --secondary-color: #1e40af;\n --text-color: #1f2937;\n --background-light: #f8fafc;\n --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);\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: system-ui, -apple-system, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n}\n\n.main-nav {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 1rem 5%;\n background: white;\n box-shadow: 0 2px 4px rgba(0,0,0,0.1);\n position: fixed;\n width: 100%;\n top: 0;\n z-index: 1000;\n}\n\n.logo {\n font-size: 1.5rem;\n font-weight: bold;\n color: var(--primary-color);\n}\n\n.nav-links {\n display: flex;\n gap: 2rem;\n list-style: none;\n}\n\n.nav-links a {\n text-decoration: none;\n color: var(--text-color);\n font-weight: 500;\n transition: var(--transition);\n}\n\n.nav-links a:hover {\n color: var(--primary-color);\n}\n\n.mobile-menu {\n display: none;\n}\n\n.hero {\n padding: 8rem 5% 4rem;\n text-align: center;\n background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);\n color: white;\n}\n\n.hero h1 {\n font-size: 3rem;\n margin-bottom: 1rem;\n}\n\nsection {\n padding: 4rem 5%;\n}\n\n.tools-grid, .tutorial-grid, .cases-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));\n gap: 2rem;\n margin-top: 2rem;\n}\n\n.tool-card {\n background: white;\n padding: 2rem;\n border-radius: 8px;\n box-shadow: var(--card-shadow);\n transition: var(--transition);\n}\n\n.tool-card:hover {\n transform: translateY(-5px);\n}\n\n.tool-icon {\n font-size: 2rem;\n margin-bottom: 1rem;\n}\n\n.download-btn {\n background: var(--primary-color);\n color: white;\n border: none;\n padding: 0.5rem 1rem;\n border-radius: 4px;\n cursor: pointer;\n transition: var(--transition);\n}\n\n.download-btn:hover {\n background: var(--secondary-color);\n}\n\n.tutorial-card .video-placeholder {\n background: #ddd;\n aspect-ratio: 16/9;\n border-radius: 8px;\n margin-bottom: 1rem;\n}\n\n.case-card {\n background: var(--background-light);\n padding: 2rem;\n border-radius: 8px;\n box-shadow: var(--card-shadow);\n}\n\nfooter {\n background: var(--text-color);\n color: white;\n padding: 3rem 5%;\n}\n\n.footer-content {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 2rem;\n}\n\n.footer-section ul {\n list-style: none;\n}\n\n.footer-section a {\n color: white;\n text-decoration: none;\n opacity: 0.8;\n transition: var(--transition);\n}\n\n.footer-section a:hover {\n opacity: 1;\n}\n\n@media (max-width: 768px) {\n .mobile-menu {\n display: block;\n background: none;\n border: none;\n cursor: pointer;\n }\n\n .mobile-menu span {\n display: block;\n width: 25px;\n height: 3px;\n background: var(--text-color);\n margin: 5px 0;\n transition: var(--transition);\n }\n\n .nav-links {\n display: none;\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n background: white;\n flex-direction: column;\n padding: 1rem;\n text-align: center;\n }\n\n .nav-links.active {\n display: flex;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n // Mobile menu toggle\n const mobileMenu = document.querySelector('.mobile-menu');\n const navLinks = document.querySelector('.nav-links');\n\n mobileMenu.addEventListener('click', () => {\n navLinks.classList.toggle('active');\n \n // Animate hamburger to X\n const spans = mobileMenu.querySelectorAll('span');\n spans.forEach(span => span.classList.toggle('active'));\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 const target = document.querySelector(this.getAttribute('href'));\n if (target) {\n target.scrollIntoView({\n behavior: 'smooth',\n block: 'start'\n });\n // Close mobile menu if open\n navLinks.classList.remove('active');\n }\n });\n });\n\n // Animation for tool cards on scroll\n const observerOptions = {\n threshold: 0.1,\n rootMargin: '0px 0px -50px 0px'\n };\n\n const observer = new IntersectionObserver((entries) => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n entry.target.classList.add('visible');\n observer.unobserve(entry.target);\n }\n });\n }, observerOptions);\n\n document.querySelectorAll('.tool-card, .tutorial-card, .case-card').forEach(card => {\n observer.observe(card);\n });\n\n // Download button interaction\n document.querySelectorAll('.download-btn').forEach(btn => {\n btn.addEventListener('click', function() {\n this.innerHTML = 'Downloading...';\n setTimeout(() => {\n this.innerHTML = 'Download';\n }, 2000);\n });\n });\n});\n\n---end---\n\nThis creates a modern, responsive software tools showcase website with smooth animations, interactive elements, and a clean design. The site features:\n\n1. Fixed navigation with mobile hamburger menu\n2. Hero section with gradient background\n3. Tool downloads section with hoverable cards\n4. Documentation section\n5. Video tutorials section\n6. Case studies section\n7. Responsive footer\n\nThe CSS includes modern features like CSS Grid, Flexbox, custom properties, and smooth transitions. The JavaScript handles mobile menu toggling, smooth scrolling, intersection observer for scroll animations, and download button interactions.\n\nThe design is fully responsive and follows accessibility best practices with semantic HTML structure and appropriate ARIA labels. The color scheme uses a professional blue palette with appropriate contrast ratios for readability." + } + ], + "stop_reason": "end_turn", + "stop_sequence": null, + "usage": { + "input_tokens": 328, + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "output_tokens": 3131 + } +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..16e044b --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# toolhub.scroll.pub +Website generated by Claude from prompt: 帮我创建一个网站,是一个展示软件工具的网站,上面有软件的下载,有软件的使用说明,有软件的应用案例,有软件的使用教程 \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..bdb01d4 --- /dev/null +++ b/script.js @@ -0,0 +1,58 @@ +document.addEventListener('DOMContentLoaded', () => { + // Mobile menu toggle + const mobileMenu = document.querySelector('.mobile-menu'); + const navLinks = document.querySelector('.nav-links'); + + mobileMenu.addEventListener('click', () => { + navLinks.classList.toggle('active'); + + // Animate hamburger to X + const spans = mobileMenu.querySelectorAll('span'); + spans.forEach(span => span.classList.toggle('active')); + }); + + // Smooth scroll for navigation links + document.querySelectorAll('a[href^="#"]').forEach(anchor => { + anchor.addEventListener('click', function (e) { + e.preventDefault(); + const target = document.querySelector(this.getAttribute('href')); + if (target) { + target.scrollIntoView({ + behavior: 'smooth', + block: 'start' + }); + // Close mobile menu if open + navLinks.classList.remove('active'); + } + }); + }); + + // Animation for tool cards on scroll + const observerOptions = { + threshold: 0.1, + rootMargin: '0px 0px -50px 0px' + }; + + const observer = new IntersectionObserver((entries) => { + entries.forEach(entry => { + if (entry.isIntersecting) { + entry.target.classList.add('visible'); + observer.unobserve(entry.target); + } + }); + }, observerOptions); + + document.querySelectorAll('.tool-card, .tutorial-card, .case-card').forEach(card => { + observer.observe(card); + }); + + // Download button interaction + document.querySelectorAll('.download-btn').forEach(btn => { + btn.addEventListener('click', function() { + this.innerHTML = 'Downloading...'; + setTimeout(() => { + this.innerHTML = 'Download'; + }, 2000); + }); + }); +}); diff --git a/style.css b/style.css new file mode 100644 index 0000000..21a17e2 --- /dev/null +++ b/style.css @@ -0,0 +1,189 @@ +:root { + --primary-color: #2563eb; + --secondary-color: #1e40af; + --text-color: #1f2937; + --background-light: #f8fafc; + --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); + --transition: all 0.3s ease; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: system-ui, -apple-system, sans-serif; + line-height: 1.6; + color: var(--text-color); +} + +.main-nav { + display: flex; + justify-content: space-between; + align-items: center; + padding: 1rem 5%; + background: white; + box-shadow: 0 2px 4px rgba(0,0,0,0.1); + position: fixed; + width: 100%; + top: 0; + z-index: 1000; +} + +.logo { + font-size: 1.5rem; + font-weight: bold; + color: var(--primary-color); +} + +.nav-links { + display: flex; + gap: 2rem; + list-style: none; +} + +.nav-links a { + text-decoration: none; + color: var(--text-color); + font-weight: 500; + transition: var(--transition); +} + +.nav-links a:hover { + color: var(--primary-color); +} + +.mobile-menu { + display: none; +} + +.hero { + padding: 8rem 5% 4rem; + text-align: center; + background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); + color: white; +} + +.hero h1 { + font-size: 3rem; + margin-bottom: 1rem; +} + +section { + padding: 4rem 5%; +} + +.tools-grid, .tutorial-grid, .cases-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); + gap: 2rem; + margin-top: 2rem; +} + +.tool-card { + background: white; + padding: 2rem; + border-radius: 8px; + box-shadow: var(--card-shadow); + transition: var(--transition); +} + +.tool-card:hover { + transform: translateY(-5px); +} + +.tool-icon { + font-size: 2rem; + margin-bottom: 1rem; +} + +.download-btn { + background: var(--primary-color); + color: white; + border: none; + padding: 0.5rem 1rem; + border-radius: 4px; + cursor: pointer; + transition: var(--transition); +} + +.download-btn:hover { + background: var(--secondary-color); +} + +.tutorial-card .video-placeholder { + background: #ddd; + aspect-ratio: 16/9; + border-radius: 8px; + margin-bottom: 1rem; +} + +.case-card { + background: var(--background-light); + padding: 2rem; + border-radius: 8px; + box-shadow: var(--card-shadow); +} + +footer { + background: var(--text-color); + color: white; + padding: 3rem 5%; +} + +.footer-content { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 2rem; +} + +.footer-section ul { + list-style: none; +} + +.footer-section a { + color: white; + text-decoration: none; + opacity: 0.8; + transition: var(--transition); +} + +.footer-section a:hover { + opacity: 1; +} + +@media (max-width: 768px) { + .mobile-menu { + display: block; + background: none; + border: none; + cursor: pointer; + } + + .mobile-menu span { + display: block; + width: 25px; + height: 3px; + background: var(--text-color); + margin: 5px 0; + transition: var(--transition); + } + + .nav-links { + display: none; + position: absolute; + top: 100%; + left: 0; + right: 0; + background: white; + flex-direction: column; + padding: 1rem; + text-align: center; + } + + .nav-links.active { + display: flex; + } +}