Changes to bananas.scroll.pub

root
root
17 days ago
Initial commit
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://bananas.scroll.pub
+ metaTags
+ editButton /edit.html
+ title The Ultimate Guide to Bananas
+ style.css
+ header
+ class hero
+ div
+ class hero-content
+ h1 🍌 The Amazing World of Bananas
+ p Nature's perfect snack: convenient, nutritious, and delicious
+ main
+ section
+ class nutrition-section
+ h2 Banana Benefits
+ div
+ class card-grid
+ div
+ class info-card
+ h3 Nutrition Facts
+ ul
+ li Rich in potassium
+ li Good source of fiber
+ li Contains vitamin B6
+ li Only 105 calories
+ div
+ class info-card
+ h3 Fun Facts
+ ul
+ li Bananas are berries
+ li They grow pointing upward
+ li Wild bananas have seeds
+ li They're naturally radioactive
+ section
+ class varieties-section
+ h2 Popular Varieties
+ div
+ class variety-grid
+ div
+ class variety-card
+ h3 Cavendish
+ p The most common banana worldwide
+ div
+ class variety-card
+ h3 Lady Finger
+ p Small, sweet, and creamy
+ div
+ class variety-card
+ h3 Red Dacca
+ p Reddish peel with pink flesh
+ div
+ class variety-card
+ h3 Plantain
+ p Starchy cooking banana
+ section
+ class ripeness-guide
+ h2 Ripeness Guide
+ div
+ class ripeness-scale
+ div
+ class stage
+ span Green
+ p Too early
+ div
+ class stage
+ span Yellow with green
+ p Almost ready
+ div
+ class stage
+ span Perfect yellow
+ p Ready to eat
+ div
+ class stage
+ span Spotted
+ p Very sweet
+ footer
+ div
+ class footer-content
+ p Created with love for banana enthusiasts everywhere
+ nav
+ class footer-nav
+ a Home
+ href #
+ a Benefits
+ href #nutrition-section
+ a Varieties
+ href #varieties-section
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "msg_01BYw17rJGpUr9NuhNfwfqMr",
+ "type": "message",
+ "role": "assistant",
+ "model": "claude-3-5-sonnet-20241022",
+ "content": [
+ {
+ "type": "text",
+ "text": "I'll create a website about bananas with a green theme. For the domain, I suggest:\n\n---domain---\nbananas.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://bananas.scroll.pub\nmetaTags\neditButton /edit.html\ntitle The Ultimate Guide to Bananas\nstyle.css\nheader\n class hero\n div\n class hero-content\n h1 🍌 The Amazing World of Bananas\n p Nature's perfect snack: convenient, nutritious, and delicious\nmain\n section\n class nutrition-section\n h2 Banana Benefits\n div\n class card-grid\n div\n class info-card\n h3 Nutrition Facts\n ul\n li Rich in potassium\n li Good source of fiber\n li Contains vitamin B6\n li Only 105 calories\n div\n class info-card\n h3 Fun Facts\n ul\n li Bananas are berries\n li They grow pointing upward\n li Wild bananas have seeds\n li They're naturally radioactive\n section\n class varieties-section\n h2 Popular Varieties\n div\n class variety-grid\n div\n class variety-card\n h3 Cavendish\n p The most common banana worldwide\n div\n class variety-card\n h3 Lady Finger\n p Small, sweet, and creamy\n div\n class variety-card\n h3 Red Dacca\n p Reddish peel with pink flesh\n div\n class variety-card\n h3 Plantain\n p Starchy cooking banana\n section\n class ripeness-guide\n h2 Ripeness Guide\n div\n class ripeness-scale\n div\n class stage\n span Green\n p Too early\n div\n class stage\n span Yellow with green\n p Almost ready\n div\n class stage\n span Perfect yellow\n p Ready to eat\n div\n class stage\n span Spotted\n p Very sweet\nfooter\n div\n class footer-content\n p Created with love for banana enthusiasts everywhere\n nav\n class footer-nav\n a Home\n href #\n a Benefits\n href #nutrition-section\n a Varieties\n href #varieties-section\nscript.js\n---style.css---\n:root {\n --primary-color: #4CAF50;\n --secondary-color: #8BC34A;\n --accent-color: #FFEB3B;\n --text-color: #333;\n --bg-color: #f9f9f9;\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(--bg-color);\n}\n\n.hero {\n background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));\n color: white;\n padding: 4rem 2rem;\n text-align: center;\n clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);\n}\n\n.hero h1 {\n font-size: 3.5rem;\n margin-bottom: 1rem;\n text-shadow: 2px 2px 4px rgba(0,0,0,0.2);\n}\n\n.hero p {\n font-size: 1.2rem;\n max-width: 600px;\n margin: 0 auto;\n}\n\nsection {\n padding: 4rem 2rem;\n}\n\n.card-grid, .variety-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n margin-top: 2rem;\n}\n\n.info-card, .variety-card {\n background: white;\n padding: 2rem;\n border-radius: 15px;\n box-shadow: 0 4px 6px rgba(0,0,0,0.1);\n transition: transform 0.3s ease;\n}\n\n.info-card:hover, .variety-card:hover {\n transform: translateY(-5px);\n}\n\n.ripeness-scale {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 1rem;\n margin-top: 2rem;\n}\n\n.stage {\n background: white;\n padding: 1rem;\n border-radius: 10px;\n text-align: center;\n flex: 1;\n min-width: 150px;\n box-shadow: 0 2px 4px rgba(0,0,0,0.1);\n}\n\nh2 {\n color: var(--primary-color);\n text-align: center;\n margin-bottom: 2rem;\n}\n\nfooter {\n background: var(--primary-color);\n color: white;\n padding: 2rem;\n text-align: center;\n}\n\n.footer-nav {\n margin-top: 1rem;\n}\n\n.footer-nav a {\n color: white;\n text-decoration: none;\n margin: 0 1rem;\n transition: color 0.3s ease;\n}\n\n.footer-nav a:hover {\n color: var(--accent-color);\n}\n\n@media (max-width: 768px) {\n .hero h1 {\n font-size: 2.5rem;\n }\n \n section {\n padding: 2rem 1rem;\n }\n \n .ripeness-scale {\n flex-direction: column;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n // Smooth scroll 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 // Add animation on scroll\n const observer = new IntersectionObserver((entries) => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n entry.target.classList.add('fade-in');\n }\n });\n }, { threshold: 0.1 });\n\n document.querySelectorAll('section').forEach((section) => {\n observer.observe(section);\n });\n});\n---end---\n\nThis website features:\n- A modern, clean design with a green color scheme\n- Smooth animations and transitions\n- Fully responsive layout\n- Semantic HTML5 structure\n- Accessible navigation\n- Interactive card elements\n- Clean typography\n- Beautiful gradient header with clip-path\n- CSS Grid for responsive layouts\n- Smooth scroll behavior\n- Intersection Observer for scroll animations\n- No external dependencies\n- Optimized performance\n\nThe design uses various shades of green to maintain the theme while keeping the content about bananas clear and engaging. The layout is structured to be both informative and visually appealing, with cards that respond to user interaction and a clean, professional appearance."
+ }
+ ],
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
+ "usage": {
+ "input_tokens": 825,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0,
+ "output_tokens": 1813
+ }
+ }
readme.scroll
Changed around line 1
+ # bananas.scroll.pub
+
+ Prompt: website
+ Agent: claude
+ Model: claude-3-5-sonnet-20241022
+
+ ## User prompt
+ A website, green, that explains bananas
+
+ ## System prompt
+ You are an expert web developer. Create a website based on this request: "A website, green, that explains bananas"
+
+ 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 scroll for anchor links
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
+ anchor.addEventListener('click', function (e) {
+ e.preventDefault();
+ document.querySelector(this.getAttribute('href')).scrollIntoView({
+ behavior: 'smooth'
+ });
+ });
+ });
+
+ // Add animation on scroll
+ const observer = new IntersectionObserver((entries) => {
+ entries.forEach(entry => {
+ if (entry.isIntersecting) {
+ entry.target.classList.add('fade-in');
+ }
+ });
+ }, { threshold: 0.1 });
+
+ document.querySelectorAll('section').forEach((section) => {
+ observer.observe(section);
+ });
+ });
style.css
Changed around line 1
+ :root {
+ --primary-color: #4CAF50;
+ --secondary-color: #8BC34A;
+ --accent-color: #FFEB3B;
+ --text-color: #333;
+ --bg-color: #f9f9f9;
+ }
+
+ * {
+ 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(--bg-color);
+ }
+
+ .hero {
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
+ color: white;
+ padding: 4rem 2rem;
+ text-align: center;
+ clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
+ }
+
+ .hero h1 {
+ font-size: 3.5rem;
+ margin-bottom: 1rem;
+ text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
+ }
+
+ .hero p {
+ font-size: 1.2rem;
+ max-width: 600px;
+ margin: 0 auto;
+ }
+
+ section {
+ padding: 4rem 2rem;
+ }
+
+ .card-grid, .variety-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 2rem;
+ margin-top: 2rem;
+ }
+
+ .info-card, .variety-card {
+ background: white;
+ padding: 2rem;
+ border-radius: 15px;
+ box-shadow: 0 4px 6px rgba(0,0,0,0.1);
+ transition: transform 0.3s ease;
+ }
+
+ .info-card:hover, .variety-card:hover {
+ transform: translateY(-5px);
+ }
+
+ .ripeness-scale {
+ display: flex;
+ justify-content: space-between;
+ flex-wrap: wrap;
+ gap: 1rem;
+ margin-top: 2rem;
+ }
+
+ .stage {
+ background: white;
+ padding: 1rem;
+ border-radius: 10px;
+ text-align: center;
+ flex: 1;
+ min-width: 150px;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
+ }
+
+ h2 {
+ color: var(--primary-color);
+ text-align: center;
+ margin-bottom: 2rem;
+ }
+
+ footer {
+ background: var(--primary-color);
+ color: white;
+ padding: 2rem;
+ text-align: center;
+ }
+
+ .footer-nav {
+ margin-top: 1rem;
+ }
+
+ .footer-nav a {
+ color: white;
+ text-decoration: none;
+ margin: 0 1rem;
+ transition: color 0.3s ease;
+ }
+
+ .footer-nav a:hover {
+ color: var(--accent-color);
+ }
+
+ @media (max-width: 768px) {
+ .hero h1 {
+ font-size: 2.5rem;
+ }
+
+ section {
+ padding: 2rem 1rem;
+ }
+
+ .ripeness-scale {
+ flex-direction: column;
+ }
+ }