commit 004d18a9fa2d699c6f0c4cb2b527c9ee06140f28
Author: root <root@hub.scroll.pub> Date: 2025-01-12 17:19:55 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..f6f698b --- /dev/null +++ b/body.html @@ -0,0 +1,73 @@ +<header> + <nav> + <div class="logo">DadSpace</div> + <button class="menu-toggle" aria-label="Toggle menu"> + <span></span><span></span><span></span> + </button> + <ul class="nav-links"> + <li><a href="#home">Home</a></li> + <li><a href="#stories">Stories</a></li> + <li><a href="#advice">Advice</a></li> + <li><a href="#connect">Connect</a></li> + </ul> + </nav> +</header> + +<main> + <section id="home" class="hero"> + <h1>Welcome to the Dad Community</h1> + <p>Share experiences. Get advice. Connect with other dads.</p> + <button class="cta">Join Now</button> + </section> + + <section id="stories" class="stories"> + <h2>Dad Stories</h2> + <div class="story-grid"> + <article class="story-card"> + <div class="card-content"> + <h3>First Steps</h3> + <p>Moments that make fatherhood special...</p> + </div> + </article> + <article class="story-card"> + <div class="card-content"> + <h3>Dad Wisdom</h3> + <p>Lessons learned along the way...</p> + </div> + </article> + <article class="story-card"> + <div class="card-content"> + <h3>Adventures</h3> + <p>Creating memories together...</p> + </div> + </article> + </div> + </section> + + <section id="connect" class="connect"> + <h2>Join Our Community</h2> + <form class="contact-form"> + <input type="text" placeholder="Name" required> + <input type="email" placeholder="Email" required> + <textarea placeholder="Your message"></textarea> + <button type="submit">Send</button> + </form> + </section> +</main> + +<footer> + <div class="footer-content"> + <div class="footer-section"> + <h4>DadSpace</h4> + <p>Building stronger families through community.</p> + </div> + <div class="footer-section"> + <h4>Quick Links</h4> + <ul> + <li><a href="#home">Home</a></li> + <li><a href="#stories">Stories</a></li> + <li><a href="#advice">Advice</a></li> + </ul> + </div> + </div> +</footer> diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..ce8451a --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://dadspace.scroll.pub +metaTags +editButton /edit.html +title DadSpace - The Modern Dad Community +style.css +body.html +script.js diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..d1085cf --- /dev/null +++ b/prompt.json @@ -0,0 +1,20 @@ +{ + "id": "msg_01LHjYjTRpvKjNrGvUwHwhH2", + "type": "message", + "role": "assistant", + "model": "claude-3-5-sonnet-20241022", + "content": [ + { + "type": "text", + "text": "Based on the request for \"new sitedads\", I'll create a modern website for connecting with and celebrating dads. Let's call it:\n\n---domain---\ndadspace.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://dadspace.scroll.pub\nmetaTags\neditButton /edit.html\ntitle DadSpace - The Modern Dad Community\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header>\n <nav>\n <div class=\"logo\">DadSpace</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=\"#home\">Home</a></li>\n <li><a href=\"#stories\">Stories</a></li>\n <li><a href=\"#advice\">Advice</a></li>\n <li><a href=\"#connect\">Connect</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section id=\"home\" class=\"hero\">\n <h1>Welcome to the Dad Community</h1>\n <p>Share experiences. Get advice. Connect with other dads.</p>\n <button class=\"cta\">Join Now</button>\n </section>\n\n <section id=\"stories\" class=\"stories\">\n <h2>Dad Stories</h2>\n <div class=\"story-grid\">\n <article class=\"story-card\">\n <div class=\"card-content\">\n <h3>First Steps</h3>\n <p>Moments that make fatherhood special...</p>\n </div>\n </article>\n <article class=\"story-card\">\n <div class=\"card-content\">\n <h3>Dad Wisdom</h3>\n <p>Lessons learned along the way...</p>\n </div>\n </article>\n <article class=\"story-card\">\n <div class=\"card-content\">\n <h3>Adventures</h3>\n <p>Creating memories together...</p>\n </div>\n </article>\n </div>\n </section>\n\n <section id=\"connect\" class=\"connect\">\n <h2>Join Our Community</h2>\n <form class=\"contact-form\">\n <input type=\"text\" placeholder=\"Name\" required>\n <input type=\"email\" placeholder=\"Email\" required>\n <textarea placeholder=\"Your message\"></textarea>\n <button type=\"submit\">Send</button>\n </form>\n </section>\n</main>\n\n<footer>\n <div class=\"footer-content\">\n <div class=\"footer-section\">\n <h4>DadSpace</h4>\n <p>Building stronger families through community.</p>\n </div>\n <div class=\"footer-section\">\n <h4>Quick Links</h4>\n <ul>\n <li><a href=\"#home\">Home</a></li>\n <li><a href=\"#stories\">Stories</a></li>\n <li><a href=\"#advice\">Advice</a></li>\n </ul>\n </div>\n </div>\n</footer>\n\n---style.css---\n:root {\n --primary: #2c3e50;\n --secondary: #3498db;\n --accent: #e74c3c;\n --light: #ecf0f1;\n --dark: #2c3e50;\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(--dark);\n}\n\n/* Header & Navigation */\nheader {\n background: var(--primary);\n padding: 1rem;\n position: fixed;\n width: 100%;\n z-index: 1000;\n box-shadow: 0 2px 10px rgba(0,0,0,0.1);\n}\n\nnav {\n display: flex;\n justify-content: space-between;\n align-items: center;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.logo {\n color: var(--light);\n font-size: 1.5rem;\n font-weight: bold;\n text-transform: uppercase;\n}\n\n.nav-links {\n display: flex;\n list-style: none;\n}\n\n.nav-links a {\n color: var(--light);\n text-decoration: none;\n padding: 0.5rem 1rem;\n transition: color 0.3s ease;\n}\n\n.nav-links a:hover {\n color: var(--secondary);\n}\n\n/* Hero Section */\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 padding: 2rem;\n background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);\n color: var(--light);\n}\n\n.hero h1 {\n font-size: 3rem;\n margin-bottom: 1rem;\n animation: fadeIn 1s ease-out;\n}\n\n.cta {\n padding: 1rem 2rem;\n font-size: 1.2rem;\n background: var(--accent);\n color: white;\n border: none;\n border-radius: 50px;\n cursor: pointer;\n transition: transform 0.3s ease;\n}\n\n.cta:hover {\n transform: scale(1.05);\n}\n\n/* Story Grid */\n.story-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));\n gap: 2rem;\n padding: 2rem;\n}\n\n.story-card {\n background: white;\n border-radius: 10px;\n overflow: hidden;\n box-shadow: 0 4px 15px rgba(0,0,0,0.1);\n transition: transform 0.3s ease;\n}\n\n.story-card:hover {\n transform: translateY(-5px);\n}\n\n.card-content {\n padding: 1.5rem;\n}\n\n/* Contact Form */\n.contact-form {\n max-width: 600px;\n margin: 0 auto;\n padding: 2rem;\n}\n\n.contact-form input,\n.contact-form textarea {\n width: 100%;\n padding: 0.8rem;\n margin-bottom: 1rem;\n border: 1px solid #ddd;\n border-radius: 5px;\n}\n\n/* Animations */\n@keyframes fadeIn {\n from { opacity: 0; transform: translateY(20px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n/* Mobile Responsive */\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(--light);\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: var(--primary);\n flex-direction: column;\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 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.getElementsByTagName('span');\n Array.from(spans).forEach(span => {\n span.classList.toggle('active');\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 const target = document.querySelector(this.getAttribute('href'));\n if (target) {\n target.scrollIntoView({\n behavior: 'smooth'\n });\n // Close mobile menu if open\n navLinks.classList.remove('active');\n }\n });\n });\n\n // Form submission handling\n const form = document.querySelector('.contact-form');\n form?.addEventListener('submit', (e) => {\n e.preventDefault();\n // Add form submission logic here\n alert('Thank you for your message! We\\'ll be in touch soon.');\n form.reset();\n });\n\n // Add intersection observer for animation\n const observer = new IntersectionObserver((entries) => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n entry.target.classList.add('visible');\n }\n });\n });\n\n // Observe all story cards\n document.querySelectorAll('.story-card').forEach((card) => {\n observer.observe(card);\n });\n});\n\n---end---" + } + ], + "stop_reason": "end_turn", + "stop_sequence": null, + "usage": { + "input_tokens": 274, + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "output_tokens": 2390 + } +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..277905b --- /dev/null +++ b/readme.scroll @@ -0,0 +1,3 @@ +# dadspace.scroll.pub + +website generated by Claude from prompt: new sitedads \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..ab0cc8d --- /dev/null +++ b/script.js @@ -0,0 +1,53 @@ +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.getElementsByTagName('span'); + Array.from(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' + }); + // Close mobile menu if open + navLinks.classList.remove('active'); + } + }); + }); + + // Form submission handling + const form = document.querySelector('.contact-form'); + form?.addEventListener('submit', (e) => { + e.preventDefault(); + // Add form submission logic here + alert('Thank you for your message! We\'ll be in touch soon.'); + form.reset(); + }); + + // Add intersection observer for animation + const observer = new IntersectionObserver((entries) => { + entries.forEach(entry => { + if (entry.isIntersecting) { + entry.target.classList.add('visible'); + } + }); + }); + + // Observe all story cards + document.querySelectorAll('.story-card').forEach((card) => { + observer.observe(card); + }); +}); diff --git a/style.css b/style.css new file mode 100644 index 0000000..dda6b72 --- /dev/null +++ b/style.css @@ -0,0 +1,174 @@ +:root { + --primary: #2c3e50; + --secondary: #3498db; + --accent: #e74c3c; + --light: #ecf0f1; + --dark: #2c3e50; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: 'Segoe UI', system-ui, sans-serif; + line-height: 1.6; + color: var(--dark); +} + +/* Header & Navigation */ +header { + background: var(--primary); + padding: 1rem; + position: fixed; + width: 100%; + z-index: 1000; + box-shadow: 0 2px 10px rgba(0,0,0,0.1); +} + +nav { + display: flex; + justify-content: space-between; + align-items: center; + max-width: 1200px; + margin: 0 auto; +} + +.logo { + color: var(--light); + font-size: 1.5rem; + font-weight: bold; + text-transform: uppercase; +} + +.nav-links { + display: flex; + list-style: none; +} + +.nav-links a { + color: var(--light); + text-decoration: none; + padding: 0.5rem 1rem; + transition: color 0.3s ease; +} + +.nav-links a:hover { + color: var(--secondary); +} + +/* Hero Section */ +.hero { + height: 100vh; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + text-align: center; + padding: 2rem; + background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); + color: var(--light); +} + +.hero h1 { + font-size: 3rem; + margin-bottom: 1rem; + animation: fadeIn 1s ease-out; +} + +.cta { + padding: 1rem 2rem; + font-size: 1.2rem; + background: var(--accent); + color: white; + border: none; + border-radius: 50px; + cursor: pointer; + transition: transform 0.3s ease; +} + +.cta:hover { + transform: scale(1.05); +} + +/* Story Grid */ +.story-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); + gap: 2rem; + padding: 2rem; +} + +.story-card { + background: white; + border-radius: 10px; + overflow: hidden; + box-shadow: 0 4px 15px rgba(0,0,0,0.1); + transition: transform 0.3s ease; +} + +.story-card:hover { + transform: translateY(-5px); +} + +.card-content { + padding: 1.5rem; +} + +/* Contact Form */ +.contact-form { + max-width: 600px; + margin: 0 auto; + padding: 2rem; +} + +.contact-form input, +.contact-form textarea { + width: 100%; + padding: 0.8rem; + margin-bottom: 1rem; + border: 1px solid #ddd; + border-radius: 5px; +} + +/* Animations */ +@keyframes fadeIn { + from { opacity: 0; transform: translateY(20px); } + to { opacity: 1; transform: translateY(0); } +} + +/* Mobile Responsive */ +@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(--light); + margin: 5px 0; + transition: 0.3s; + } + + .nav-links { + display: none; + position: absolute; + top: 100%; + left: 0; + right: 0; + background: var(--primary); + flex-direction: column; + text-align: center; + } + + .nav-links.active { + display: flex; + } +}