commit 25f56e4313ae87d3cf51625c79488ea4d48da143
Author: root <root@hub.scroll.pub> Date: 2025-01-07 07:43:17 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..a766d1e --- /dev/null +++ b/body.html @@ -0,0 +1,84 @@ +<header> + <nav> + <div class="logo">DAI</div> + <div class="menu-toggle" aria-label="Toggle menu"> + <span></span><span></span><span></span> + </div> + <ul class="nav-links"> + <li><a href="#about">About</a></li> + <li><a href="#features">Features</a></li> + <li><a href="#stats">Stats</a></li> + <li><a href="#contact">Contact</a></li> + </ul> + </nav> +</header> + +<main> + <section class="hero" id="hero"> + <div class="hero-content"> + <h1>DAI Stablecoin</h1> + <p class="tagline">The Decentralized Dollar</p> + <div class="price-ticker"> + <span class="price">1.00</span> + <span class="currency">USD</span> + </div> + </div> + </section> + + <section id="about" class="about"> + <h2>What is DAI?</h2> + <div class="features-grid"> + <div class="feature"> + <h3>Stable</h3> + <p>Maintains a soft peg to the US Dollar through decentralized mechanisms</p> + </div> + <div class="feature"> + <h3>Decentralized</h3> + <p>Governed by MakerDAO, a decentralized autonomous organization</p> + </div> + <div class="feature"> + <h3>Transparent</h3> + <p>Fully backed by on-chain collateral visible to everyone</p> + </div> + </div> + </section> + + <section id="stats" class="stats"> + <h2>Live Statistics</h2> + <div class="stats-container"> + <div class="stat-card"> + <h3>Market Cap</h3> + <div class="stat-value" id="marketCap">Loading...</div> + </div> + <div class="stat-card"> + <h3>Total Supply</h3> + <div class="stat-value" id="totalSupply">Loading...</div> + </div> + <div class="stat-card"> + <h3>Holders</h3> + <div class="stat-value" id="holders">Loading...</div> + </div> + </div> + </section> +</main> + +<footer> + <div class="footer-content"> + <div class="footer-section"> + <h4>Resources</h4> + <ul> + <li><a href="#docs">Documentation</a></li> + <li><a href="#whitepaper">Whitepaper</a></li> + <li><a href="#faq">FAQ</a></li> + </ul> + </div> + <div class="footer-section"> + <h4>Community</h4> + <ul> + <li><a href="#forum">Forum</a></li> + <li><a href="#discord">Discord</a></li> + <li><a href="#twitter">Twitter</a></li> + </ul> + </div> + </div> +</footer> diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..44c2b5b --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://daistable.scroll.pub +metaTags +editButton /edit.html +title DAI Stablecoin - The Decentralized Dollar +style.css +body.html +script.js diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..1079f92 --- /dev/null +++ b/prompt.json @@ -0,0 +1,20 @@ +{ + "id": "msg_016sCEyX5MkCAiMeLuPyydem", + "type": "message", + "role": "assistant", + "model": "claude-3-5-sonnet-20241022", + "content": [ + { + "type": "text", + "text": "For a website about \"dai\" (assuming this refers to the decentralized stablecoin), I suggest:\n\n---domain---\ndaistable.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://daistable.scroll.pub\nmetaTags\neditButton /edit.html\ntitle DAI Stablecoin - The Decentralized Dollar\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header>\n <nav>\n <div class=\"logo\">DAI</div>\n <div class=\"menu-toggle\" aria-label=\"Toggle menu\">\n <span></span><span></span><span></span>\n </div>\n <ul class=\"nav-links\">\n <li><a href=\"#about\">About</a></li>\n <li><a href=\"#features\">Features</a></li>\n <li><a href=\"#stats\">Stats</a></li>\n <li><a href=\"#contact\">Contact</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section class=\"hero\" id=\"hero\">\n <div class=\"hero-content\">\n <h1>DAI Stablecoin</h1>\n <p class=\"tagline\">The Decentralized Dollar</p>\n <div class=\"price-ticker\">\n <span class=\"price\">1.00</span>\n <span class=\"currency\">USD</span>\n </div>\n </div>\n </section>\n\n <section id=\"about\" class=\"about\">\n <h2>What is DAI?</h2>\n <div class=\"features-grid\">\n <div class=\"feature\">\n <h3>Stable</h3>\n <p>Maintains a soft peg to the US Dollar through decentralized mechanisms</p>\n </div>\n <div class=\"feature\">\n <h3>Decentralized</h3>\n <p>Governed by MakerDAO, a decentralized autonomous organization</p>\n </div>\n <div class=\"feature\">\n <h3>Transparent</h3>\n <p>Fully backed by on-chain collateral visible to everyone</p>\n </div>\n </div>\n </section>\n\n <section id=\"stats\" class=\"stats\">\n <h2>Live Statistics</h2>\n <div class=\"stats-container\">\n <div class=\"stat-card\">\n <h3>Market Cap</h3>\n <div class=\"stat-value\" id=\"marketCap\">Loading...</div>\n </div>\n <div class=\"stat-card\">\n <h3>Total Supply</h3>\n <div class=\"stat-value\" id=\"totalSupply\">Loading...</div>\n </div>\n <div class=\"stat-card\">\n <h3>Holders</h3>\n <div class=\"stat-value\" id=\"holders\">Loading...</div>\n </div>\n </div>\n </section>\n</main>\n\n<footer>\n <div class=\"footer-content\">\n <div class=\"footer-section\">\n <h4>Resources</h4>\n <ul>\n <li><a href=\"#docs\">Documentation</a></li>\n <li><a href=\"#whitepaper\">Whitepaper</a></li>\n <li><a href=\"#faq\">FAQ</a></li>\n </ul>\n </div>\n <div class=\"footer-section\">\n <h4>Community</h4>\n <ul>\n <li><a href=\"#forum\">Forum</a></li>\n <li><a href=\"#discord\">Discord</a></li>\n <li><a href=\"#twitter\">Twitter</a></li>\n </ul>\n </div>\n </div>\n</footer>\n\n---style.css---\n:root {\n --primary-color: #ffd700;\n --secondary-color: #f5b642;\n --text-color: #333;\n --background-color: #fff;\n --accent-color: #ff9900;\n --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Inter', system-ui, -apple-system, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n overflow-x: hidden;\n}\n\nheader {\n position: fixed;\n width: 100%;\n z-index: 1000;\n background: rgba(255, 255, 255, 0.95);\n backdrop-filter: blur(10px);\n box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);\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: 2rem;\n font-weight: 700;\n background: var(--gradient);\n -webkit-background-clip: text;\n color: transparent;\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: color 0.3s ease;\n}\n\n.nav-links a:hover {\n color: var(--accent-color);\n}\n\n.hero {\n height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--gradient);\n text-align: center;\n padding: 2rem;\n}\n\n.hero-content {\n max-width: 800px;\n}\n\nh1 {\n font-size: 4rem;\n margin-bottom: 1rem;\n color: white;\n text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);\n}\n\n.tagline {\n font-size: 1.5rem;\n color: white;\n margin-bottom: 2rem;\n}\n\n.price-ticker {\n display: inline-block;\n background: rgba(255, 255, 255, 0.9);\n padding: 1rem 2rem;\n border-radius: 50px;\n font-size: 2rem;\n font-weight: 700;\n}\n\n.features-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n padding: 4rem 2rem;\n}\n\n.feature {\n background: white;\n padding: 2rem;\n border-radius: 15px;\n box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);\n transition: transform 0.3s ease;\n}\n\n.feature:hover {\n transform: translateY(-5px);\n}\n\n.stats {\n background: #f8f9fa;\n padding: 4rem 2rem;\n}\n\n.stats-container {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 2rem;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.stat-card {\n background: white;\n padding: 2rem;\n border-radius: 15px;\n text-align: center;\n box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);\n}\n\n.stat-value {\n font-size: 2rem;\n font-weight: 700;\n color: var(--accent-color);\n}\n\nfooter {\n background: #333;\n color: white;\n padding: 4rem 2rem;\n}\n\n.footer-content {\n max-width: 1200px;\n margin: 0 auto;\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 2rem;\n}\n\n.footer-section h4 {\n margin-bottom: 1rem;\n}\n\n.footer-section ul {\n list-style: none;\n}\n\n.footer-section a {\n color: #ccc;\n text-decoration: none;\n transition: color 0.3s ease;\n}\n\n.footer-section a:hover {\n color: white;\n}\n\n@media (max-width: 768px) {\n .menu-toggle {\n display: flex;\n flex-direction: column;\n gap: 5px;\n cursor: pointer;\n }\n\n .menu-toggle span {\n width: 25px;\n height: 3px;\n background: var(--text-color);\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 padding: 1rem;\n flex-direction: column;\n text-align: center;\n }\n\n .nav-links.active {\n display: flex;\n }\n\n h1 {\n font-size: 2.5rem;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\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\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 // Simulate loading stats\n const stats = {\n marketCap: '$5.2B',\n totalSupply: '5.2B DAI',\n holders: '250,000+'\n };\n\n setTimeout(() => {\n document.getElementById('marketCap').textContent = stats.marketCap;\n document.getElementById('totalSupply').textContent = stats.totalSupply;\n document.getElementById('holders').textContent = stats.holders;\n }, 1000);\n\n // Price ticker animation\n const price = document.querySelector('.price');\n setInterval(() => {\n const random = (Math.random() * 0.002 - 0.001);\n const newPrice = (1 + random).toFixed(3);\n price.textContent = newPrice;\n }, 3000);\n\n // Intersection Observer for animations\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 document.querySelectorAll('.feature, .stat-card').forEach((el) => observer.observe(el));\n});\n\n---end---" + } + ], + "stop_reason": "end_turn", + "stop_sequence": null, + "usage": { + "input_tokens": 271, + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "output_tokens": 2879 + } +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..ed06b44 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# daistable.scroll.pub +Website generated by Claude from prompt: dai \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..8fa519d --- /dev/null +++ b/script.js @@ -0,0 +1,51 @@ +document.addEventListener('DOMContentLoaded', function() { + // Mobile menu toggle + const menuToggle = document.querySelector('.menu-toggle'); + const navLinks = document.querySelector('.nav-links'); + + menuToggle.addEventListener('click', () => { + navLinks.classList.toggle('active'); + }); + + // 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' + }); + }); + }); + + // Simulate loading stats + const stats = { + marketCap: '$5.2B', + totalSupply: '5.2B DAI', + holders: '250,000+' + }; + + setTimeout(() => { + document.getElementById('marketCap').textContent = stats.marketCap; + document.getElementById('totalSupply').textContent = stats.totalSupply; + document.getElementById('holders').textContent = stats.holders; + }, 1000); + + // Price ticker animation + const price = document.querySelector('.price'); + setInterval(() => { + const random = (Math.random() * 0.002 - 0.001); + const newPrice = (1 + random).toFixed(3); + price.textContent = newPrice; + }, 3000); + + // Intersection Observer for animations + const observer = new IntersectionObserver((entries) => { + entries.forEach(entry => { + if (entry.isIntersecting) { + entry.target.classList.add('visible'); + } + }); + }); + + document.querySelectorAll('.feature, .stat-card').forEach((el) => observer.observe(el)); +}); diff --git a/style.css b/style.css new file mode 100644 index 0000000..b6aa1e5 --- /dev/null +++ b/style.css @@ -0,0 +1,214 @@ +:root { + --primary-color: #ffd700; + --secondary-color: #f5b642; + --text-color: #333; + --background-color: #fff; + --accent-color: #ff9900; + --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: 'Inter', system-ui, -apple-system, sans-serif; + line-height: 1.6; + color: var(--text-color); + overflow-x: hidden; +} + +header { + position: fixed; + width: 100%; + z-index: 1000; + background: rgba(255, 255, 255, 0.95); + backdrop-filter: blur(10px); + box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); +} + +nav { + max-width: 1200px; + margin: 0 auto; + padding: 1rem; + display: flex; + justify-content: space-between; + align-items: center; +} + +.logo { + font-size: 2rem; + font-weight: 700; + background: var(--gradient); + -webkit-background-clip: text; + color: transparent; +} + +.nav-links { + display: flex; + gap: 2rem; + list-style: none; +} + +.nav-links a { + text-decoration: none; + color: var(--text-color); + font-weight: 500; + transition: color 0.3s ease; +} + +.nav-links a:hover { + color: var(--accent-color); +} + +.hero { + height: 100vh; + display: flex; + align-items: center; + justify-content: center; + background: var(--gradient); + text-align: center; + padding: 2rem; +} + +.hero-content { + max-width: 800px; +} + +h1 { + font-size: 4rem; + margin-bottom: 1rem; + color: white; + text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); +} + +.tagline { + font-size: 1.5rem; + color: white; + margin-bottom: 2rem; +} + +.price-ticker { + display: inline-block; + background: rgba(255, 255, 255, 0.9); + padding: 1rem 2rem; + border-radius: 50px; + font-size: 2rem; + font-weight: 700; +} + +.features-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 2rem; + padding: 4rem 2rem; +} + +.feature { + background: white; + padding: 2rem; + border-radius: 15px; + box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); + transition: transform 0.3s ease; +} + +.feature:hover { + transform: translateY(-5px); +} + +.stats { + background: #f8f9fa; + padding: 4rem 2rem; +} + +.stats-container { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 2rem; + max-width: 1200px; + margin: 0 auto; +} + +.stat-card { + background: white; + padding: 2rem; + border-radius: 15px; + text-align: center; + box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); +} + +.stat-value { + font-size: 2rem; + font-weight: 700; + color: var(--accent-color); +} + +footer { + background: #333; + color: white; + padding: 4rem 2rem; +} + +.footer-content { + max-width: 1200px; + margin: 0 auto; + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 2rem; +} + +.footer-section h4 { + margin-bottom: 1rem; +} + +.footer-section ul { + list-style: none; +} + +.footer-section a { + color: #ccc; + text-decoration: none; + transition: color 0.3s ease; +} + +.footer-section a:hover { + color: white; +} + +@media (max-width: 768px) { + .menu-toggle { + display: flex; + flex-direction: column; + gap: 5px; + cursor: pointer; + } + + .menu-toggle span { + width: 25px; + height: 3px; + background: var(--text-color); + transition: 0.3s; + } + + .nav-links { + display: none; + position: absolute; + top: 100%; + left: 0; + right: 0; + background: white; + padding: 1rem; + flex-direction: column; + text-align: center; + } + + .nav-links.active { + display: flex; + } + + h1 { + font-size: 2.5rem; + } +}