Changes to herbscroll.pub.scroll.pub

root
root
10 days ago
Initial commit
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://herbscroll.pub
+ metaTags
+ editButton /edit.html
+ title Herb Scroll - Natural Wellness Resource & Marketplace
+ style.css
+ header
+ class hero
+ nav
+ div Herb Scroll
+ class logo
+ div
+ class nav-links
+ a About
+ href #about
+ a Resources
+ href #resources
+ a Shop
+ href #shop
+ a Contact
+ href #contact
+ div
+ class hero-content
+ h1 Natural Wellness Through Ancient Wisdom
+ p Discover the healing power of herbs - Your trusted resource for herbal knowledge and premium botanical products
+ div
+ class cta-buttons
+ a Explore Resources
+ class primary-button
+ href #resources
+ a Shop Now
+ class secondary-button
+ href #shop
+ main
+ section
+ id about
+ class about-section
+ h2 Your Journey to Natural Wellness
+ div
+ class feature-grid
+ div
+ class feature-card
+ img herb-guide.svg
+ class feature-icon
+ h3 Expert Guidance
+ p Comprehensive guides on herbal remedies and natural healing traditions
+ div
+ class feature-card
+ img quality.svg
+ class feature-icon
+ h3 Premium Quality
+ p Carefully sourced herbs and botanical products from trusted suppliers
+ div
+ class feature-card
+ img community.svg
+ class feature-icon
+ h3 Community
+ p Connect with herbalists and natural wellness enthusiasts
+ div
+ class feature-card
+ img education.svg
+ class feature-icon
+ h3 Education
+ p In-depth articles and resources about herbal medicine
+ section
+ id resources
+ class resources-section
+ h2 Herbal Knowledge Base
+ div
+ class resource-grid
+ article
+ class resource-card
+ img beginners-guide.svg
+ h3 Beginner's Guide
+ p Start your journey into herbal wellness
+ a Learn More
+ class link-button
+ article
+ class resource-card
+ img herb-directory.svg
+ h3 Herb Directory
+ p Detailed profiles of medicinal herbs
+ a Explore
+ class link-button
+ article
+ class resource-card
+ img preparation.svg
+ h3 Preparation Methods
+ p Learn how to make teas, tinctures, and more
+ a Discover
+ class link-button
+ section
+ id shop
+ class shop-section
+ h2 Herbal Marketplace
+ div
+ class product-grid
+ div
+ class product-filters
+ h3 Categories
+ ul
+ li Dried Herbs
+ li Tinctures
+ li Essential Oils
+ li Herbal Teas
+ li Supplements
+ div
+ class product-display
+ div
+ class product-card
+ img product1.svg
+ h3 Organic Chamomile
+ p Premium dried flowers
+ span $12.99
+ button Add to Cart
+ div
+ class product-card
+ img product2.svg
+ h3 Echinacea Tincture
+ p Immune support blend
+ span $24.99
+ button Add to Cart
+ div
+ class product-card
+ img product3.svg
+ h3 Lavender Essential Oil
+ p Pure therapeutic grade
+ span $18.99
+ button Add to Cart
+ section
+ id contact
+ class contact-section
+ h2 Connect With Us
+ div
+ class contact-container
+ form
+ class contact-form
+ input
+ type text
+ placeholder Your Name
+ input
+ type email
+ placeholder Your Email
+ textarea
+ placeholder Your Message
+ button Send Message
+ type submit
+ footer
+ div
+ class footer-content
+ div
+ class footer-links
+ a About Us
+ href #about
+ a Terms of Service
+ href /terms
+ a Privacy Policy
+ href /privacy
+ a Contact
+ href #contact
+ p Built with love by the herbal wellness community
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "msg_015vHKwrwHnNdbGD478iwYWD",
+ "type": "message",
+ "role": "assistant",
+ "model": "claude-3-5-sonnet-20241022",
+ "content": [
+ {
+ "type": "text",
+ "text": "I'll create a website for a healthy living and herbal marketplace called \"Herb Scroll\" - a clean, modern resource for herbal wellness information and products.\n\n---domain---\nherbscroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://herbscroll.pub\nmetaTags\neditButton /edit.html\ntitle Herb Scroll - Natural Wellness Resource & Marketplace\nstyle.css\nheader\n class hero\n nav\n div Herb Scroll\n class logo\n div\n class nav-links\n a About\n href #about\n a Resources\n href #resources\n a Shop\n href #shop\n a Contact\n href #contact\n div\n class hero-content\n h1 Natural Wellness Through Ancient Wisdom\n p Discover the healing power of herbs - Your trusted resource for herbal knowledge and premium botanical products\n div\n class cta-buttons\n a Explore Resources\n class primary-button\n href #resources\n a Shop Now\n class secondary-button\n href #shop\nmain\n section\n id about\n class about-section\n h2 Your Journey to Natural Wellness\n div\n class feature-grid\n div\n class feature-card\n img herb-guide.svg\n class feature-icon\n h3 Expert Guidance\n p Comprehensive guides on herbal remedies and natural healing traditions\n div\n class feature-card\n img quality.svg\n class feature-icon\n h3 Premium Quality\n p Carefully sourced herbs and botanical products from trusted suppliers\n div\n class feature-card\n img community.svg\n class feature-icon\n h3 Community\n p Connect with herbalists and natural wellness enthusiasts\n div\n class feature-card\n img education.svg\n class feature-icon\n h3 Education\n p In-depth articles and resources about herbal medicine\n section\n id resources\n class resources-section\n h2 Herbal Knowledge Base\n div\n class resource-grid\n article\n class resource-card\n img beginners-guide.svg\n h3 Beginner's Guide\n p Start your journey into herbal wellness\n a Learn More\n class link-button\n article\n class resource-card\n img herb-directory.svg\n h3 Herb Directory\n p Detailed profiles of medicinal herbs\n a Explore\n class link-button\n article\n class resource-card\n img preparation.svg\n h3 Preparation Methods\n p Learn how to make teas, tinctures, and more\n a Discover\n class link-button\n section\n id shop\n class shop-section\n h2 Herbal Marketplace\n div\n class product-grid\n div\n class product-filters\n h3 Categories\n ul\n li Dried Herbs\n li Tinctures\n li Essential Oils\n li Herbal Teas\n li Supplements\n div\n class product-display\n div\n class product-card\n img product1.svg\n h3 Organic Chamomile\n p Premium dried flowers\n span $12.99\n button Add to Cart\n div\n class product-card\n img product2.svg\n h3 Echinacea Tincture\n p Immune support blend\n span $24.99\n button Add to Cart\n div\n class product-card\n img product3.svg\n h3 Lavender Essential Oil\n p Pure therapeutic grade\n span $18.99\n button Add to Cart\n section\n id contact\n class contact-section\n h2 Connect With Us\n div\n class contact-container\n form\n class contact-form\n input\n type text\n placeholder Your Name\n input\n type email\n placeholder Your Email\n textarea\n placeholder Your Message\n button Send Message\n type submit\nfooter\n div\n class footer-content\n div\n class footer-links\n a About Us\n href #about\n a Terms of Service\n href /terms\n a Privacy Policy\n href /privacy\n a Contact\n href #contact\n p Built with love by the herbal wellness community\nscript.js\n---style.css---\n:root {\n --primary-color: #2c7744;\n --secondary-color: #4a9c6b;\n --accent-color: #f0f7f2;\n --text-color: #333;\n --light-text: #666;\n --white: #ffffff;\n --shadow: 0 2px 10px 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: 'Inter', sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n}\n\n.hero {\n background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));\n color: var(--white);\n padding: 2rem 0;\n min-height: 80vh;\n display: flex;\n flex-direction: column;\n}\n\nnav {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 1rem 5%;\n background: rgba(255,255,255,0.1);\n backdrop-filter: blur(10px);\n}\n\n.logo {\n font-size: 1.5rem;\n font-weight: bold;\n letter-spacing: 1px;\n}\n\n.nav-links {\n display: flex;\n gap: 2rem;\n}\n\n.nav-links a {\n color: var(--white);\n text-decoration: none;\n transition: opacity 0.3s;\n}\n\n.nav-links a:hover {\n opacity: 0.8;\n}\n\n.hero-content {\n text-align: center;\n max-width: 800px;\n margin: auto;\n padding: 4rem 2rem;\n}\n\n.hero-content h1 {\n font-size: 3.5rem;\n margin-bottom: 1.5rem;\n line-height: 1.2;\n}\n\n.cta-buttons {\n display: flex;\n gap: 1rem;\n justify-content: center;\n margin-top: 2rem;\n}\n\n.primary-button, .secondary-button {\n padding: 1rem 2rem;\n border-radius: 50px;\n text-decoration: none;\n font-weight: 600;\n transition: transform 0.3s;\n}\n\n.primary-button {\n background: var(--white);\n color: var(--primary-color);\n}\n\n.secondary-button {\n background: transparent;\n color: var(--white);\n border: 2px solid var(--white);\n}\n\n.primary-button:hover, .secondary-button:hover {\n transform: translateY(-2px);\n}\n\n.feature-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n padding: 4rem 5%;\n}\n\n.feature-card {\n background: var(--white);\n padding: 2rem;\n border-radius: 15px;\n box-shadow: var(--shadow);\n transition: transform 0.3s;\n}\n\n.feature-card:hover {\n transform: translateY(-5px);\n}\n\n.resource-grid, .product-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));\n gap: 2rem;\n padding: 2rem 5%;\n}\n\n.contact-form {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n max-width: 600px;\n margin: 0 auto;\n padding: 2rem;\n}\n\n@media (max-width: 768px) {\n .nav-links {\n display: none;\n }\n \n .hero-content h1 {\n font-size: 2.5rem;\n }\n \n .cta-buttons {\n flex-direction: column;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n // Smooth scrolling for anchor 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 // Mobile menu toggle\n const createMobileMenu = () => {\n const nav = document.querySelector('nav');\n const burger = document.createElement('div');\n burger.classList.add('burger');\n burger.innerHTML = '☰';\n burger.addEventListener('click', () => {\n document.querySelector('.nav-links').classList.toggle('active');\n });\n nav.appendChild(burger);\n };\n\n // Shopping cart functionality\n let cart = [];\n const addToCart = (product) => {\n cart.push(product);\n updateCartUI();\n };\n\n const updateCartUI = () => {\n const cartCount = document.createElement('div');\n cartCount.classList.add('cart-count');\n cartCount.textContent = cart.length;\n document.querySelector('nav').appendChild(cartCount);\n };\n\n // Add to cart button listeners\n document.querySelectorAll('.product-card button').forEach(button => {\n button.addEventListener('click', (e) => {\n const product = e.target.closest('.product-card');\n addToCart({\n name: product.querySelector('h3').textContent,\n price: product.querySelector('span').textContent\n });\n });\n });\n\n // Form validation\n const contactForm = document.querySelector('.contact-form');\n if (contactForm) {\n contactForm.addEventListener('submit', (e) => {\n e.preventDefault();\n // Add form validation logic here\n });\n }\n\n // Initialize mobile menu for smaller screens\n if (window.innerWidth <= 768) {\n createMobileMenu();\n }\n});\n---end---"
+ }
+ ],
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
+ "usage": {
+ "input_tokens": 828,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0,
+ "output_tokens": 2566
+ }
+ }
readme.scroll
Changed around line 1
+ # herbscroll.pub.scroll.pub
+
+ Prompt: website
+ Agent: claude
+ Model: claude-3-5-sonnet-20241022
+
+ ## User prompt
+ Info resource and marketplace for healthy living with a focus on herbs
+
+ ## System prompt
+ You are an expert web developer. Create a website based on this request: "Info resource and marketplace for healthy living with a focus on herbs"
+
+ Requirements:
+ - Use only Scroll, CSS, and JavaScript (NO frameworks, NO external dependencies)
+ - Create clean, semantic HTML5
+ - Make it mobile-responsive
+ - Follow modern best practices and accessibility guidelines
+ - Keep it simple but professional
+ - Use only relative links and no external resources
+ - Do not put a copyright symbol or all rights reserved in the footer.
+ - Make it beautiful. Dazzling. Advanced used of CSS.
+
+ As a refresher, for doing the html body, Scroll is a whitespace based language that uses a single indented space to mark a line (aka particle) as a subparticle of a parent line.
+
+ For example:
+
+ header
+ class hero
+ nav
+ div Scroll
+ class logo
+ div
+ class nav-links
+ a Features
+ href #features
+ a Examples
+ href #examples
+ a Edit
+ href edit.html
+ a GitHub
+ class cta-button
+ href https://github.com/breck7/scroll
+ div
+ class hero-content
+ h1 Write Better with Scroll
+ p The extendible markup language that makes source beautiful and compiles to anything
+ a Get Started
+ class primary-button
+ href https://hub.scroll.pub/
+ main
+ section
+ id features
+ class features
+ h2 Why Scroll?
+ div
+ class feature-grid
+ div
+ class feature-card
+ div ⚡
+ class feature-icon
+ h3 Simple Syntax
+ p Like Markdown, but more powerful. No parentheses needed.
+ div
+ class feature-card
+ div 🧩
+ class feature-icon
+ h3 Extendible
+ p Build your own custom parsers.
+ div
+ class feature-card
+ div 🎨
+ class feature-icon
+ h3 Beautiful Output
+ p Create stunning documents with minimal effort.
+ div
+ class feature-card
+ div 🚀
+ class feature-icon
+ h3 Fast & Light
+ p Built on the efficient PPS Stack.
+ section
+ id examples
+ class code-demo
+ h2 See It In Action
+ div
+ class code-container
+ pre
+ class code-example
+ div
+ class code-output
+ footer
+ div
+ class footer-content
+ div
+ class footer-links
+ a Documentation
+ href https://scroll.pub/tutorial.html
+ a Community
+ href https://www.reddit.com/r/WorldWideScroll/
+ a Blog
+ href https://scroll.pub/blog
+ p Started by Breck Yunits. Evolved by a community.
+ https://twitter.com/breckyunits Breck Yunits
+ https://github.com/breck7/scroll/graphs/contributors community
+
+
+ First suggest a short, memorable domain name ending in scroll.pub that represents this website. Then provide the website files. Use this exact format:
+
+ ---domain---
+ (domainscroll.pub here)
+ ---index.scroll---
+ buildHtml
+ baseUrl https://(domainscroll.pub here)
+ metaTags
+ editButton /edit.html
+ title (Title here)
+ style.css
+
+ (body content here. no blank lines please.)
+
+ script.js
+ ---style.css---
+ (CSS content here)
+ ---script.js---
+ (JavaScript content here)
+ ---end---
script.js
Changed around line 1
+ document.addEventListener('DOMContentLoaded', () => {
+ // Smooth scrolling for anchor links
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
+ anchor.addEventListener('click', function (e) {
+ e.preventDefault();
+ document.querySelector(this.getAttribute('href')).scrollIntoView({
+ behavior: 'smooth'
+ });
+ });
+ });
+
+ // Mobile menu toggle
+ const createMobileMenu = () => {
+ const nav = document.querySelector('nav');
+ const burger = document.createElement('div');
+ burger.classList.add('burger');
+ burger.innerHTML = '☰';
+ burger.addEventListener('click', () => {
+ document.querySelector('.nav-links').classList.toggle('active');
+ });
+ nav.appendChild(burger);
+ };
+
+ // Shopping cart functionality
+ let cart = [];
+ const addToCart = (product) => {
+ cart.push(product);
+ updateCartUI();
+ };
+
+ const updateCartUI = () => {
+ const cartCount = document.createElement('div');
+ cartCount.classList.add('cart-count');
+ cartCount.textContent = cart.length;
+ document.querySelector('nav').appendChild(cartCount);
+ };
+
+ // Add to cart button listeners
+ document.querySelectorAll('.product-card button').forEach(button => {
+ button.addEventListener('click', (e) => {
+ const product = e.target.closest('.product-card');
+ addToCart({
+ name: product.querySelector('h3').textContent,
+ price: product.querySelector('span').textContent
+ });
+ });
+ });
+
+ // Form validation
+ const contactForm = document.querySelector('.contact-form');
+ if (contactForm) {
+ contactForm.addEventListener('submit', (e) => {
+ e.preventDefault();
+ // Add form validation logic here
+ });
+ }
+
+ // Initialize mobile menu for smaller screens
+ if (window.innerWidth <= 768) {
+ createMobileMenu();
+ }
+ });
style.css
Changed around line 1
+ :root {
+ --primary-color: #2c7744;
+ --secondary-color: #4a9c6b;
+ --accent-color: #f0f7f2;
+ --text-color: #333;
+ --light-text: #666;
+ --white: #ffffff;
+ --shadow: 0 2px 10px rgba(0,0,0,0.1);
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: 'Inter', sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+ }
+
+ .hero {
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
+ color: var(--white);
+ padding: 2rem 0;
+ min-height: 80vh;
+ display: flex;
+ flex-direction: column;
+ }
+
+ nav {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 1rem 5%;
+ background: rgba(255,255,255,0.1);
+ backdrop-filter: blur(10px);
+ }
+
+ .logo {
+ font-size: 1.5rem;
+ font-weight: bold;
+ letter-spacing: 1px;
+ }
+
+ .nav-links {
+ display: flex;
+ gap: 2rem;
+ }
+
+ .nav-links a {
+ color: var(--white);
+ text-decoration: none;
+ transition: opacity 0.3s;
+ }
+
+ .nav-links a:hover {
+ opacity: 0.8;
+ }
+
+ .hero-content {
+ text-align: center;
+ max-width: 800px;
+ margin: auto;
+ padding: 4rem 2rem;
+ }
+
+ .hero-content h1 {
+ font-size: 3.5rem;
+ margin-bottom: 1.5rem;
+ line-height: 1.2;
+ }
+
+ .cta-buttons {
+ display: flex;
+ gap: 1rem;
+ justify-content: center;
+ margin-top: 2rem;
+ }
+
+ .primary-button, .secondary-button {
+ padding: 1rem 2rem;
+ border-radius: 50px;
+ text-decoration: none;
+ font-weight: 600;
+ transition: transform 0.3s;
+ }
+
+ .primary-button {
+ background: var(--white);
+ color: var(--primary-color);
+ }
+
+ .secondary-button {
+ background: transparent;
+ color: var(--white);
+ border: 2px solid var(--white);
+ }
+
+ .primary-button:hover, .secondary-button:hover {
+ transform: translateY(-2px);
+ }
+
+ .feature-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 2rem;
+ padding: 4rem 5%;
+ }
+
+ .feature-card {
+ background: var(--white);
+ padding: 2rem;
+ border-radius: 15px;
+ box-shadow: var(--shadow);
+ transition: transform 0.3s;
+ }
+
+ .feature-card:hover {
+ transform: translateY(-5px);
+ }
+
+ .resource-grid, .product-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
+ gap: 2rem;
+ padding: 2rem 5%;
+ }
+
+ .contact-form {
+ display: flex;
+ flex-direction: column;
+ gap: 1rem;
+ max-width: 600px;
+ margin: 0 auto;
+ padding: 2rem;
+ }
+
+ @media (max-width: 768px) {
+ .nav-links {
+ display: none;
+ }
+
+ .hero-content h1 {
+ font-size: 2.5rem;
+ }
+
+ .cta-buttons {
+ flex-direction: column;
+ }
+ }