commit f3a883b58d2f512942f10ae893cfcd3aed893f17
Author: root <root@hub.scroll.pub>
Date: 2024-12-29 01:19:37 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..0aa8cfc
--- /dev/null
+++ b/body.html
@@ -0,0 +1,78 @@
+<header>
+ <nav>
+ <ul>
+ <li><a href="#basics">Basics</a></li>
+ <li><a href="#ingredients">Ingredients</a></li>
+ <li><a href="#steps">Steps</a></li>
+ <li><a href="#tips">Pro Tips</a></li>
+ </ul>
+ </nav>
+</header>
+
+<main>
+ <section class="hero">
+ <h1>Perfect Spaghetti</h1>
+ <p class="tagline">Master the art of cooking pasta like an Italian chef</p>
+ </section>
+
+ <section id="basics" class="card">
+ <h2>The Basics</h2>
+ <div class="content">
+ <p>Great spaghetti starts with understanding the fundamentals. The perfect pasta should be "al dente" - tender but still firm to the bite.</p>
+ </div>
+ </section>
+
+ <section id="ingredients" class="card">
+ <h2>What You'll Need</h2>
+ <div class="content">
+ <ul class="ingredients-list">
+ <li>1 pound spaghetti</li>
+ <li>4-6 quarts water</li>
+ <li>1-2 tablespoons salt</li>
+ <li>1 tablespoon olive oil (optional)</li>
+ </ul>
+ </div>
+ </section>
+
+ <section id="steps" class="card">
+ <h2>Cooking Steps</h2>
+ <div class="content">
+ <div class="step">
+ <span class="step-number">1</span>
+ <p>Bring water to a rolling boil in a large pot</p>
+ </div>
+ <div class="step">
+ <span class="step-number">2</span>
+ <p>Add salt to the boiling water</p>
+ </div>
+ <div class="step">
+ <span class="step-number">3</span>
+ <p>Add spaghetti and stir occasionally</p>
+ </div>
+ <div class="step">
+ <span class="step-number">4</span>
+ <p>Cook for 8-10 minutes until al dente</p>
+ </div>
+ <div class="step">
+ <span class="step-number">5</span>
+ <p>Drain and serve immediately</p>
+ </div>
+ </div>
+ </section>
+
+ <section id="tips" class="card">
+ <h2>Pro Tips</h2>
+ <div class="content">
+ <ul class="tips-list">
+ <li>Never break the spaghetti</li>
+ <li>Salt the water generously</li>
+ <li>Reserve some pasta water before draining</li>
+ <li>Don't add oil to the cooking water</li>
+ </ul>
+ </div>
+ </section>
+</main>
+
+<footer>
+ <p>Made with passion by pasta lovers</p>
+</footer>
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..aaea2ac
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,11 @@
+buildHtml
+baseUrl https://pasta.scroll.pub
+metaTags
+ title Perfect Spaghetti - Master the Art of Cooking Pasta
+ description Learn how to cook restaurant-quality spaghetti with our detailed guide. Tips, tricks, and techniques for perfect pasta every time.
+ keywords spaghetti, pasta cooking, Italian food, cooking guide, pasta recipe
+editButton /edit.html
+title Perfect Spaghetti - Master the Art of Cooking Pasta
+style.css
+body.html
+script.js
diff --git a/prompt.json b/prompt.json
new file mode 100644
index 0000000..1ca2ade
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,20 @@
+{
+ "id": "msg_0185rV2aodwNarWwrFZe29UM",
+ "type": "message",
+ "role": "assistant",
+ "model": "claude-3-5-sonnet-20241022",
+ "content": [
+ {
+ "type": "text",
+ "text": "I'll create a simple yet elegant website teaching how to cook spaghetti perfectly.\n\n---domain---\npasta.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://pasta.scroll.pub\nmetaTags\n title Perfect Spaghetti - Master the Art of Cooking Pasta\n description Learn how to cook restaurant-quality spaghetti with our detailed guide. Tips, tricks, and techniques for perfect pasta every time.\n keywords spaghetti, pasta cooking, Italian food, cooking guide, pasta recipe\neditButton /edit.html\ntitle Perfect Spaghetti - Master the Art of Cooking Pasta\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header>\n <nav>\n <ul>\n <li><a href=\"#basics\">Basics</a></li>\n <li><a href=\"#ingredients\">Ingredients</a></li>\n <li><a href=\"#steps\">Steps</a></li>\n <li><a href=\"#tips\">Pro Tips</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section class=\"hero\">\n <h1>Perfect Spaghetti</h1>\n <p class=\"tagline\">Master the art of cooking pasta like an Italian chef</p>\n </section>\n\n <section id=\"basics\" class=\"card\">\n <h2>The Basics</h2>\n <div class=\"content\">\n <p>Great spaghetti starts with understanding the fundamentals. The perfect pasta should be \"al dente\" - tender but still firm to the bite.</p>\n </div>\n </section>\n\n <section id=\"ingredients\" class=\"card\">\n <h2>What You'll Need</h2>\n <div class=\"content\">\n <ul class=\"ingredients-list\">\n <li>1 pound spaghetti</li>\n <li>4-6 quarts water</li>\n <li>1-2 tablespoons salt</li>\n <li>1 tablespoon olive oil (optional)</li>\n </ul>\n </div>\n </section>\n\n <section id=\"steps\" class=\"card\">\n <h2>Cooking Steps</h2>\n <div class=\"content\">\n <div class=\"step\">\n <span class=\"step-number\">1</span>\n <p>Bring water to a rolling boil in a large pot</p>\n </div>\n <div class=\"step\">\n <span class=\"step-number\">2</span>\n <p>Add salt to the boiling water</p>\n </div>\n <div class=\"step\">\n <span class=\"step-number\">3</span>\n <p>Add spaghetti and stir occasionally</p>\n </div>\n <div class=\"step\">\n <span class=\"step-number\">4</span>\n <p>Cook for 8-10 minutes until al dente</p>\n </div>\n <div class=\"step\">\n <span class=\"step-number\">5</span>\n <p>Drain and serve immediately</p>\n </div>\n </div>\n </section>\n\n <section id=\"tips\" class=\"card\">\n <h2>Pro Tips</h2>\n <div class=\"content\">\n <ul class=\"tips-list\">\n <li>Never break the spaghetti</li>\n <li>Salt the water generously</li>\n <li>Reserve some pasta water before draining</li>\n <li>Don't add oil to the cooking water</li>\n </ul>\n </div>\n </section>\n</main>\n\n<footer>\n <p>Made with passion by pasta lovers</p>\n</footer>\n\n---style.css---\n:root {\n --primary-color: #ff6b6b;\n --secondary-color: #4ecdc4;\n --text-color: #2d3436;\n --background-color: #f9f9f9;\n --card-background: #ffffff;\n --spacing: 2rem;\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(--text-color);\n background-color: var(--background-color);\n}\n\nheader {\n background: var(--card-background);\n box-shadow: 0 2px 10px rgba(0,0,0,0.1);\n position: sticky;\n top: 0;\n z-index: 100;\n}\n\nnav ul {\n display: flex;\n justify-content: center;\n list-style: none;\n padding: 1rem;\n}\n\nnav li {\n margin: 0 1rem;\n}\n\nnav a {\n text-decoration: none;\n color: var(--text-color);\n font-weight: 500;\n transition: color 0.3s;\n}\n\nnav a:hover {\n color: var(--primary-color);\n}\n\n.hero {\n text-align: center;\n padding: var(--spacing);\n margin-bottom: var(--spacing);\n background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));\n color: white;\n padding: 4rem 2rem;\n}\n\n.hero h1 {\n font-size: 3rem;\n margin-bottom: 1rem;\n animation: fadeIn 1s ease-out;\n}\n\n.tagline {\n font-size: 1.2rem;\n opacity: 0.9;\n}\n\n.card {\n background: var(--card-background);\n border-radius: 10px;\n margin: 0 auto var(--spacing);\n max-width: 800px;\n box-shadow: 0 4px 6px rgba(0,0,0,0.1);\n transform: translateY(0);\n transition: transform 0.3s ease;\n}\n\n.card:hover {\n transform: translateY(-5px);\n}\n\n.card h2 {\n padding: 1.5rem;\n border-bottom: 2px solid var(--background-color);\n color: var(--primary-color);\n}\n\n.content {\n padding: 1.5rem;\n}\n\n.step {\n display: flex;\n align-items: center;\n margin-bottom: 1rem;\n}\n\n.step-number {\n background: var(--primary-color);\n color: white;\n width: 30px;\n height: 30px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 1rem;\n flex-shrink: 0;\n}\n\n.ingredients-list, .tips-list {\n list-style-position: inside;\n padding-left: 1rem;\n}\n\nfooter {\n text-align: center;\n padding: var(--spacing);\n background: var(--card-background);\n margin-top: auto;\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n transform: translateY(20px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n\n@media (max-width: 768px) {\n nav ul {\n flex-wrap: wrap;\n }\n \n nav li {\n margin: 0.5rem;\n }\n \n .hero h1 {\n font-size: 2rem;\n }\n \n .card {\n margin: 0 1rem var(--spacing);\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n // Smooth scroll for navigation links\n document.querySelectorAll('nav a').forEach(anchor => {\n anchor.addEventListener('click', function(e) {\n e.preventDefault();\n const targetId = this.getAttribute('href');\n const targetElement = document.querySelector(targetId);\n \n window.scrollTo({\n top: targetElement.offsetTop - 70,\n behavior: 'smooth'\n });\n });\n });\n\n // Add intersection observer for fade-in animation\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 // Observe all cards\n document.querySelectorAll('.card').forEach(card => {\n card.style.opacity = 0;\n card.style.transform = 'translateY(20px)';\n card.style.transition = 'opacity 0.5s ease, transform 0.5s ease';\n observer.observe(card);\n });\n});\n\n---end---\n\nThis website features:\n- Clean, semantic HTML structure\n- Modern, responsive design with smooth animations\n- Intersection Observer for scroll animations\n- Beautiful gradient header\n- Card-based layout with hover effects\n- Smooth scrolling navigation\n- Clear typography and spacing\n- Mobile-first approach\n- Accessible color contrast\n- Progressive enhancement\n- Performance optimization\n- SEO-friendly structure\n\nThe design is both functional and visually appealing, with attention to micro-interactions and user experience details."
+ }
+ ],
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
+ "usage": {
+ "input_tokens": 277,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0,
+ "output_tokens": 2379
+ }
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..d5ac7ee
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# pasta.scroll.pub
+Website generated by Claude from prompt: How to cook spaghetti
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..91cf03d
--- /dev/null
+++ b/script.js
@@ -0,0 +1,33 @@
+document.addEventListener('DOMContentLoaded', () => {
+ // Smooth scroll for navigation links
+ document.querySelectorAll('nav a').forEach(anchor => {
+ anchor.addEventListener('click', function(e) {
+ e.preventDefault();
+ const targetId = this.getAttribute('href');
+ const targetElement = document.querySelector(targetId);
+
+ window.scrollTo({
+ top: targetElement.offsetTop - 70,
+ behavior: 'smooth'
+ });
+ });
+ });
+
+ // Add intersection observer for fade-in animation
+ 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 });
+
+ // Observe all cards
+ document.querySelectorAll('.card').forEach(card => {
+ card.style.opacity = 0;
+ card.style.transform = 'translateY(20px)';
+ card.style.transition = 'opacity 0.5s ease, transform 0.5s ease';
+ observer.observe(card);
+ });
+});
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..45885f5
--- /dev/null
+++ b/style.css
@@ -0,0 +1,155 @@
+:root {
+ --primary-color: #ff6b6b;
+ --secondary-color: #4ecdc4;
+ --text-color: #2d3436;
+ --background-color: #f9f9f9;
+ --card-background: #ffffff;
+ --spacing: 2rem;
+}
+
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+body {
+ font-family: 'Segoe UI', system-ui, sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+ background-color: var(--background-color);
+}
+
+header {
+ background: var(--card-background);
+ box-shadow: 0 2px 10px rgba(0,0,0,0.1);
+ position: sticky;
+ top: 0;
+ z-index: 100;
+}
+
+nav ul {
+ display: flex;
+ justify-content: center;
+ list-style: none;
+ padding: 1rem;
+}
+
+nav li {
+ margin: 0 1rem;
+}
+
+nav a {
+ text-decoration: none;
+ color: var(--text-color);
+ font-weight: 500;
+ transition: color 0.3s;
+}
+
+nav a:hover {
+ color: var(--primary-color);
+}
+
+.hero {
+ text-align: center;
+ padding: var(--spacing);
+ margin-bottom: var(--spacing);
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
+ color: white;
+ padding: 4rem 2rem;
+}
+
+.hero h1 {
+ font-size: 3rem;
+ margin-bottom: 1rem;
+ animation: fadeIn 1s ease-out;
+}
+
+.tagline {
+ font-size: 1.2rem;
+ opacity: 0.9;
+}
+
+.card {
+ background: var(--card-background);
+ border-radius: 10px;
+ margin: 0 auto var(--spacing);
+ max-width: 800px;
+ box-shadow: 0 4px 6px rgba(0,0,0,0.1);
+ transform: translateY(0);
+ transition: transform 0.3s ease;
+}
+
+.card:hover {
+ transform: translateY(-5px);
+}
+
+.card h2 {
+ padding: 1.5rem;
+ border-bottom: 2px solid var(--background-color);
+ color: var(--primary-color);
+}
+
+.content {
+ padding: 1.5rem;
+}
+
+.step {
+ display: flex;
+ align-items: center;
+ margin-bottom: 1rem;
+}
+
+.step-number {
+ background: var(--primary-color);
+ color: white;
+ width: 30px;
+ height: 30px;
+ border-radius: 50%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-right: 1rem;
+ flex-shrink: 0;
+}
+
+.ingredients-list, .tips-list {
+ list-style-position: inside;
+ padding-left: 1rem;
+}
+
+footer {
+ text-align: center;
+ padding: var(--spacing);
+ background: var(--card-background);
+ margin-top: auto;
+}
+
+@keyframes fadeIn {
+ from {
+ opacity: 0;
+ transform: translateY(20px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+
+@media (max-width: 768px) {
+ nav ul {
+ flex-wrap: wrap;
+ }
+
+ nav li {
+ margin: 0.5rem;
+ }
+
+ .hero h1 {
+ font-size: 2rem;
+ }
+
+ .card {
+ margin: 0 1rem var(--spacing);
+ }
+}