commit e68eaa6dc8e0511c6da5fbad9ee296eb4e5556fd
Author: root <root@hub.scroll.pub> Date: 2024-12-28 12:51:30 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..eb705c2 --- /dev/null +++ b/body.html @@ -0,0 +1,87 @@ +<header> + <nav> + <div class="logo">ChatGPT</div> + <button class="menu-toggle" aria-label="Toggle menu"> + <span></span><span></span><span></span> + </button> + <ul class="nav-links"> + <li><a href="#features">Features</a></li> + <li><a href="#how-it-works">How It Works</a></li> + <li><a href="#try-it">Try It</a></li> + </ul> + </nav> +</header> + +<main> + <section class="hero"> + <div class="hero-content"> + <h1>Experience the Power of AI Conversation</h1> + <p>Engage with the world's most advanced AI assistant</p> + <button class="cta-button">Start Chatting</button> + </div> + <div class="hero-animation"></div> + </section> + + <section id="features" class="features"> + <h2>Key Features</h2> + <div class="features-grid"> + <div class="feature-card"> + <div class="feature-icon">💡</div> + <h3>Smart Responses</h3> + <p>Advanced natural language processing for human-like conversations</p> + </div> + <div class="feature-card"> + <div class="feature-icon">🔄</div> + <h3>Context Awareness</h3> + <p>Maintains context throughout your conversation</p> + </div> + <div class="feature-card"> + <div class="feature-icon">🌐</div> + <h3>Multilingual</h3> + <p>Communicate in multiple languages seamlessly</p> + </div> + </div> + </section> + + <section id="how-it-works" class="how-it-works"> + <h2>How It Works</h2> + <div class="steps"> + <div class="step"> + <div class="step-number">1</div> + <h3>Ask a Question</h3> + <p>Type your query in natural language</p> + </div> + <div class="step"> + <div class="step-number">2</div> + <h3>AI Processing</h3> + <p>Advanced AI analyzes your input</p> + </div> + <div class="step"> + <div class="step-number">3</div> + <h3>Get Response</h3> + <p>Receive accurate, helpful answers</p> + </div> + </div> + </section> + + <section id="try-it" class="chat-demo"> + <h2>Try It Now</h2> + <div class="chat-container"> + <div class="chat-messages"></div> + <div class="chat-input"> + <input type="text" placeholder="Type your message..." aria-label="Chat input"> + <button class="send-button">Send</button> + </div> + </div> + </section> +</main> + +<footer> + <div class="footer-content"> + <div class="footer-links"> + <a href="#privacy">Privacy Policy</a> + <a href="#terms">Terms of Use</a> + <a href="#contact">Contact</a> + </div> + </div> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..ce8d29b --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://chat.scroll.pub +metaTags +editButton /edit.html +title ChatGPT Assistant - Your AI Companion +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..1fda217 --- /dev/null +++ b/prompt.json @@ -0,0 +1,20 @@ +{ + "id": "msg_014D5oG7q4xdyg1Hp13KCb1F", + "type": "message", + "role": "assistant", + "model": "claude-3-5-sonnet-20241022", + "content": [ + { + "type": "text", + "text": "I'll create a ChatGPT-focused website with a modern, professional design.\n\nSuggested domain: chat.scroll.pub\n\n---domain---\nchat.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://chat.scroll.pub\nmetaTags\neditButton /edit.html\ntitle ChatGPT Assistant - Your AI Companion\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <nav>\n <div class=\"logo\">ChatGPT</div>\n <button class=\"menu-toggle\" aria-label=\"Toggle menu\">\n <span></span><span></span><span></span>\n </button>\n <ul class=\"nav-links\">\n <li><a href=\"#features\">Features</a></li>\n <li><a href=\"#how-it-works\">How It Works</a></li>\n <li><a href=\"#try-it\">Try It</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section class=\"hero\">\n <div class=\"hero-content\">\n <h1>Experience the Power of AI Conversation</h1>\n <p>Engage with the world's most advanced AI assistant</p>\n <button class=\"cta-button\">Start Chatting</button>\n </div>\n <div class=\"hero-animation\"></div>\n </section>\n\n <section id=\"features\" class=\"features\">\n <h2>Key Features</h2>\n <div class=\"features-grid\">\n <div class=\"feature-card\">\n <div class=\"feature-icon\">💡</div>\n <h3>Smart Responses</h3>\n <p>Advanced natural language processing for human-like conversations</p>\n </div>\n <div class=\"feature-card\">\n <div class=\"feature-icon\">🔄</div>\n <h3>Context Awareness</h3>\n <p>Maintains context throughout your conversation</p>\n </div>\n <div class=\"feature-card\">\n <div class=\"feature-icon\">🌐</div>\n <h3>Multilingual</h3>\n <p>Communicate in multiple languages seamlessly</p>\n </div>\n </div>\n </section>\n\n <section id=\"how-it-works\" class=\"how-it-works\">\n <h2>How It Works</h2>\n <div class=\"steps\">\n <div class=\"step\">\n <div class=\"step-number\">1</div>\n <h3>Ask a Question</h3>\n <p>Type your query in natural language</p>\n </div>\n <div class=\"step\">\n <div class=\"step-number\">2</div>\n <h3>AI Processing</h3>\n <p>Advanced AI analyzes your input</p>\n </div>\n <div class=\"step\">\n <div class=\"step-number\">3</div>\n <h3>Get Response</h3>\n <p>Receive accurate, helpful answers</p>\n </div>\n </div>\n </section>\n\n <section id=\"try-it\" class=\"chat-demo\">\n <h2>Try It Now</h2>\n <div class=\"chat-container\">\n <div class=\"chat-messages\"></div>\n <div class=\"chat-input\">\n <input type=\"text\" placeholder=\"Type your message...\" aria-label=\"Chat input\">\n <button class=\"send-button\">Send</button>\n </div>\n </div>\n </section>\n</main>\n\n<footer>\n <div class=\"footer-content\">\n <div class=\"footer-links\">\n <a href=\"#privacy\">Privacy Policy</a>\n <a href=\"#terms\">Terms of Use</a>\n <a href=\"#contact\">Contact</a>\n </div>\n </div>\n</footer>\n---style.css---\n:root {\n --primary-color: #10a37f;\n --secondary-color: #1a7f64;\n --background-color: #f5f5f5;\n --text-color: #333;\n --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n overflow-x: hidden;\n}\n\nheader {\n background: white;\n box-shadow: var(--card-shadow);\n position: fixed;\n width: 100%;\n z-index: 1000;\n}\n\nnav {\n max-width: 1200px;\n margin: 0 auto;\n padding: 1rem;\n display: flex;\n justify-content: space-between;\n align-items: center;\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 list-style: none;\n gap: 2rem;\n}\n\n.nav-links a {\n text-decoration: none;\n color: var(--text-color);\n transition: color 0.3s ease;\n}\n\n.nav-links a:hover {\n color: var(--primary-color);\n}\n\n.menu-toggle {\n display: none;\n}\n\nmain {\n padding-top: 4rem;\n}\n\n.hero {\n min-height: 80vh;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 2rem;\n background: linear-gradient(135deg, #fff, #f0f0f0);\n}\n\n.hero-content {\n max-width: 600px;\n}\n\n.hero h1 {\n font-size: 3rem;\n margin-bottom: 1rem;\n background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n}\n\n.hero-animation {\n width: 400px;\n height: 400px;\n background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 70%);\n animation: pulse 4s infinite;\n}\n\n@keyframes pulse {\n 0% { transform: scale(1); opacity: 0.6; }\n 50% { transform: scale(1.1); opacity: 0.4; }\n 100% { transform: scale(1); opacity: 0.6; }\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: 5px;\n cursor: pointer;\n transition: transform 0.3s ease, background-color 0.3s ease;\n}\n\n.cta-button:hover {\n background: var(--secondary-color);\n transform: translateY(-2px);\n}\n\n.features-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n padding: 2rem;\n}\n\n.feature-card {\n background: white;\n padding: 2rem;\n border-radius: 10px;\n box-shadow: var(--card-shadow);\n transition: transform 0.3s ease;\n}\n\n.feature-card:hover {\n transform: translateY(-5px);\n}\n\n.feature-icon {\n font-size: 2rem;\n margin-bottom: 1rem;\n}\n\n.steps {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 2rem;\n padding: 2rem;\n}\n\n.step {\n text-align: center;\n padding: 2rem;\n}\n\n.step-number {\n width: 40px;\n height: 40px;\n background: var(--primary-color);\n color: white;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0 auto 1rem;\n}\n\n.chat-demo {\n padding: 2rem;\n}\n\n.chat-container {\n max-width: 800px;\n margin: 0 auto;\n background: white;\n border-radius: 10px;\n box-shadow: var(--card-shadow);\n overflow: hidden;\n}\n\n.chat-messages {\n height: 400px;\n padding: 1rem;\n overflow-y: auto;\n}\n\n.chat-input {\n display: flex;\n padding: 1rem;\n border-top: 1px solid #eee;\n}\n\n.chat-input input {\n flex: 1;\n padding: 0.5rem;\n border: 1px solid #ddd;\n border-radius: 5px;\n margin-right: 1rem;\n}\n\n.send-button {\n padding: 0.5rem 1rem;\n background: var(--primary-color);\n color: white;\n border: none;\n border-radius: 5px;\n cursor: pointer;\n}\n\nfooter {\n background: white;\n padding: 2rem;\n margin-top: 4rem;\n}\n\n.footer-content {\n max-width: 1200px;\n margin: 0 auto;\n text-align: center;\n}\n\n.footer-links {\n display: flex;\n justify-content: center;\n gap: 2rem;\n}\n\n.footer-links a {\n color: var(--text-color);\n text-decoration: none;\n}\n\n@media (max-width: 768px) {\n .menu-toggle {\n display: block;\n background: none;\n border: none;\n cursor: pointer;\n }\n\n .menu-toggle span {\n display: block;\n width: 25px;\n height: 3px;\n background: var(--text-color);\n margin: 5px 0;\n transition: 0.3s;\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 .hero {\n flex-direction: column;\n text-align: center;\n }\n\n .hero-animation {\n width: 200px;\n height: 200px;\n margin-top: 2rem;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n // Mobile menu toggle\n const menuToggle = document.querySelector('.menu-toggle');\n const navLinks = document.querySelector('.nav-links');\n\n menuToggle.addEventListener('click', () => {\n navLinks.classList.toggle('active');\n \n // Animate hamburger to X\n const spans = menuToggle.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 // Chat demo functionality\n const chatMessages = document.querySelector('.chat-messages');\n const chatInput = document.querySelector('.chat-input input');\n const sendButton = document.querySelector('.send-button');\n\n function addMessage(message, isUser = true) {\n const messageDiv = document.createElement('div');\n messageDiv.classList.add('message', isUser ? 'user-message' : 'bot-message');\n messageDiv.style.padding = '0.5rem';\n messageDiv.style.margin = '0.5rem';\n messageDiv.style.borderRadius = '5px';\n messageDiv.style.maxWidth = '80%';\n messageDiv.style.alignSelf = isUser ? 'flex-end' : 'flex-start';\n messageDiv.style.background = isUser ? '#10a37f' : '#f0f0f0';\n messageDiv.style.color = isUser ? 'white' : 'black';\n messageDiv.textContent = message;\n chatMessages.appendChild(messageDiv);\n chatMessages.scrollTop = chatMessages.scrollHeight;\n }\n\n function handleMessage() {\n const message = chatInput.value.trim();\n if (message) {\n addMessage(message, true);\n chatInput.value = '';\n \n // Simulate bot response\n setTimeout(() => {\n addMessage('Thanks for your message! This is a demo response.', false);\n }, 1000);\n }\n }\n\n sendButton.addEventListener('click', handleMessage);\n chatInput.addEventListener('keypress', (e) => {\n if (e.key === 'Enter') {\n handleMessage();\n }\n });\n\n // Intersection Observer for 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 }, { threshold: 0.1 });\n\n document.querySelectorAll('.feature-card, .step').forEach(element => {\n element.style.opacity = '0';\n element.style.transform = 'translateY(20px)';\n element.style.transition = 'opacity 0.5s ease, transform 0.5s ease';\n observer.observe(element);\n });\n});\n---end---" + } + ], + "stop_reason": "end_turn", + "stop_sequence": null, + "usage": { + "input_tokens": 273, + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "output_tokens": 3669 + } +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..89dc2a7 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# chat.scroll.pub +Website generated by Claude from prompt: chatgpt \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..93190fa --- /dev/null +++ b/script.js @@ -0,0 +1,86 @@ +document.addEventListener('DOMContentLoaded', () => { + // Mobile menu toggle + const menuToggle = document.querySelector('.menu-toggle'); + const navLinks = document.querySelector('.nav-links'); + + menuToggle.addEventListener('click', () => { + navLinks.classList.toggle('active'); + + // Animate hamburger to X + const spans = menuToggle.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'); + } + }); + }); + + // Chat demo functionality + const chatMessages = document.querySelector('.chat-messages'); + const chatInput = document.querySelector('.chat-input input'); + const sendButton = document.querySelector('.send-button'); + + function addMessage(message, isUser = true) { + const messageDiv = document.createElement('div'); + messageDiv.classList.add('message', isUser ? 'user-message' : 'bot-message'); + messageDiv.style.padding = '0.5rem'; + messageDiv.style.margin = '0.5rem'; + messageDiv.style.borderRadius = '5px'; + messageDiv.style.maxWidth = '80%'; + messageDiv.style.alignSelf = isUser ? 'flex-end' : 'flex-start'; + messageDiv.style.background = isUser ? '#10a37f' : '#f0f0f0'; + messageDiv.style.color = isUser ? 'white' : 'black'; + messageDiv.textContent = message; + chatMessages.appendChild(messageDiv); + chatMessages.scrollTop = chatMessages.scrollHeight; + } + + function handleMessage() { + const message = chatInput.value.trim(); + if (message) { + addMessage(message, true); + chatInput.value = ''; + + // Simulate bot response + setTimeout(() => { + addMessage('Thanks for your message! This is a demo response.', false); + }, 1000); + } + } + + sendButton.addEventListener('click', handleMessage); + chatInput.addEventListener('keypress', (e) => { + if (e.key === 'Enter') { + handleMessage(); + } + }); + + // Intersection Observer for animations + const observer = new IntersectionObserver((entries) => { + entries.forEach(entry => { + if (entry.isIntersecting) { + entry.target.style.opacity = '1'; + entry.target.style.transform = 'translateY(0)'; + } + }); + }, { threshold: 0.1 }); + + document.querySelectorAll('.feature-card, .step').forEach(element => { + element.style.opacity = '0'; + element.style.transform = 'translateY(20px)'; + element.style.transition = 'opacity 0.5s ease, transform 0.5s ease'; + observer.observe(element); + }); +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..f9cb329 --- /dev/null +++ b/style.css @@ -0,0 +1,275 @@ +:root { + --primary-color: #10a37f; + --secondary-color: #1a7f64; + --background-color: #f5f5f5; + --text-color: #333; + --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif; + line-height: 1.6; + color: var(--text-color); + overflow-x: hidden; +} + +header { + background: white; + box-shadow: var(--card-shadow); + position: fixed; + width: 100%; + z-index: 1000; +} + +nav { + max-width: 1200px; + margin: 0 auto; + padding: 1rem; + display: flex; + justify-content: space-between; + align-items: center; +} + +.logo { + font-size: 1.5rem; + font-weight: bold; + color: var(--primary-color); +} + +.nav-links { + display: flex; + list-style: none; + gap: 2rem; +} + +.nav-links a { + text-decoration: none; + color: var(--text-color); + transition: color 0.3s ease; +} + +.nav-links a:hover { + color: var(--primary-color); +} + +.menu-toggle { + display: none; +} + +main { + padding-top: 4rem; +} + +.hero { + min-height: 80vh; + display: flex; + align-items: center; + justify-content: space-between; + padding: 2rem; + background: linear-gradient(135deg, #fff, #f0f0f0); +} + +.hero-content { + max-width: 600px; +} + +.hero h1 { + font-size: 3rem; + margin-bottom: 1rem; + background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; +} + +.hero-animation { + width: 400px; + height: 400px; + background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 70%); + animation: pulse 4s infinite; +} + +@keyframes pulse { + 0% { transform: scale(1); opacity: 0.6; } + 50% { transform: scale(1.1); opacity: 0.4; } + 100% { transform: scale(1); opacity: 0.6; } +} + +.cta-button { + padding: 1rem 2rem; + font-size: 1.1rem; + background: var(--primary-color); + color: white; + border: none; + border-radius: 5px; + cursor: pointer; + transition: transform 0.3s ease, background-color 0.3s ease; +} + +.cta-button:hover { + background: var(--secondary-color); + transform: translateY(-2px); +} + +.features-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 2rem; + padding: 2rem; +} + +.feature-card { + background: white; + padding: 2rem; + border-radius: 10px; + box-shadow: var(--card-shadow); + transition: transform 0.3s ease; +} + +.feature-card:hover { + transform: translateY(-5px); +} + +.feature-icon { + font-size: 2rem; + margin-bottom: 1rem; +} + +.steps { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 2rem; + padding: 2rem; +} + +.step { + text-align: center; + padding: 2rem; +} + +.step-number { + width: 40px; + height: 40px; + background: var(--primary-color); + color: white; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + margin: 0 auto 1rem; +} + +.chat-demo { + padding: 2rem; +} + +.chat-container { + max-width: 800px; + margin: 0 auto; + background: white; + border-radius: 10px; + box-shadow: var(--card-shadow); + overflow: hidden; +} + +.chat-messages { + height: 400px; + padding: 1rem; + overflow-y: auto; +} + +.chat-input { + display: flex; + padding: 1rem; + border-top: 1px solid #eee; +} + +.chat-input input { + flex: 1; + padding: 0.5rem; + border: 1px solid #ddd; + border-radius: 5px; + margin-right: 1rem; +} + +.send-button { + padding: 0.5rem 1rem; + background: var(--primary-color); + color: white; + border: none; + border-radius: 5px; + cursor: pointer; +} + +footer { + background: white; + padding: 2rem; + margin-top: 4rem; +} + +.footer-content { + max-width: 1200px; + margin: 0 auto; + text-align: center; +} + +.footer-links { + display: flex; + justify-content: center; + gap: 2rem; +} + +.footer-links a { + color: var(--text-color); + text-decoration: none; +} + +@media (max-width: 768px) { + .menu-toggle { + display: block; + background: none; + border: none; + cursor: pointer; + } + + .menu-toggle span { + display: block; + width: 25px; + height: 3px; + background: var(--text-color); + margin: 5px 0; + transition: 0.3s; + } + + .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; + } + + .hero { + flex-direction: column; + text-align: center; + } + + .hero-animation { + width: 200px; + height: 200px; + margin-top: 2rem; + } +} \ No newline at end of file