Changes to hub.scroll.pub

root
root
3 days ago
Initial commit
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://hub.scroll.pub
+ metaTags
+ editButton /edit.html
+ title ScrollHub | The Scroll Language Hub
+ style.css
+ header
+ class hero
+ nav
+ div ScrollHub
+ 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 The Scroll Language Hub
+ p A beautiful, minimal language for writing structured documents that compiles to anything
+ a Get Started
+ class primary-button
+ href https://scroll.pub/tutorial.html
+ 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
+ code
+ header
+ class hero
+ h1 Hello World
+ p Welcome to my Scroll document
+ main
+ section
+ id about
+ h2 About
+ p Scroll makes writing structured documents simple
+ 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.
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "79c5b47e-1824-4538-995c-8e723d44a9ce",
+ "object": "chat.completion",
+ "created": 1743170877,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "I'll suggest the domain \"hub.scroll.pub\" as it's short, memorable, and clearly represents a central hub for Scroll resources.\n\nHere's the complete website:\n\n---domain---\nhub.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://hub.scroll.pub\nmetaTags\neditButton /edit.html\ntitle ScrollHub | The Scroll Language Hub\nstyle.css\nheader\n class hero\n nav\n div ScrollHub\n class logo\n div\n class nav-links\n a Features\n href #features\n a Examples\n href #examples\n a Edit\n href edit.html\n a GitHub\n class cta-button\n href https://github.com/breck7/scroll\n div\n class hero-content\n h1 The Scroll Language Hub\n p A beautiful, minimal language for writing structured documents that compiles to anything\n a Get Started\n class primary-button\n href https://scroll.pub/tutorial.html\nmain\n section\n id features\n class features\n h2 Why Scroll?\n div\n class feature-grid\n div\n class feature-card\n div ⚡\n class feature-icon\n h3 Simple Syntax\n p Like Markdown, but more powerful. No parentheses needed.\n div\n class feature-card\n div 🧩\n class feature-icon\n h3 Extendible\n p Build your own custom parsers.\n div\n class feature-card\n div 🎨\n class feature-icon\n h3 Beautiful Output\n p Create stunning documents with minimal effort.\n div\n class feature-card\n div 🚀\n class feature-icon\n h3 Fast & Light\n p Built on the efficient PPS Stack.\n section\n id examples\n class code-demo\n h2 See It In Action\n div\n class code-container\n pre\n class code-example\n code\n header\n class hero\n h1 Hello World\n p Welcome to my Scroll document\n main\n section\n id about\n h2 About\n p Scroll makes writing structured documents simple\n div\n class code-output\nfooter\n div\n class footer-content\n div\n class footer-links\n a Documentation\n href https://scroll.pub/tutorial.html\n a Community\n href https://www.reddit.com/r/WorldWideScroll/\n a Blog\n href https://scroll.pub/blog\n p Started by Breck Yunits. Evolved by a community.\nscript.js\n---style.css---\n:root {\n --primary: #2563eb;\n --primary-light: #3b82f6;\n --dark: #1e293b;\n --light: #f8fafc;\n --gray: #94a3b8;\n --border-radius: 8px;\n --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);\n --transition: all 0.2s ease;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;\n line-height: 1.6;\n color: var(--dark);\n background-color: var(--light);\n}\n\nheader.hero {\n background: linear-gradient(135deg, var(--primary), #1d4ed8);\n color: white;\n padding: 2rem 1rem;\n position: relative;\n overflow: hidden;\n}\n\nheader.hero::before {\n content: '';\n position: absolute;\n top: -50%;\n left: -50%;\n width: 200%;\n height: 200%;\n background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);\n transform: rotate(30deg);\n}\n\nnav {\n display: flex;\n justify-content: space-between;\n align-items: center;\n max-width: 1200px;\n margin: 0 auto;\n padding: 0 1rem;\n}\n\n.logo {\n font-size: 1.5rem;\n font-weight: 700;\n letter-spacing: -0.5px;\n}\n\n.nav-links {\n display: flex;\n gap: 1.5rem;\n align-items: center;\n}\n\n.nav-links a {\n color: white;\n text-decoration: none;\n font-weight: 500;\n transition: var(--transition);\n}\n\n.nav-links a:hover {\n opacity: 0.8;\n}\n\n.cta-button {\n background: white;\n color: var(--primary);\n padding: 0.5rem 1rem;\n border-radius: var(--border-radius);\n font-weight: 600;\n}\n\n.hero-content {\n max-width: 1200px;\n margin: 4rem auto;\n padding: 0 1rem;\n position: relative;\n}\n\n.hero-content h1 {\n font-size: 3rem;\n line-height: 1.2;\n margin-bottom: 1.5rem;\n max-width: 800px;\n}\n\n.hero-content p {\n font-size: 1.25rem;\n max-width: 600px;\n margin-bottom: 2rem;\n opacity: 0.9;\n}\n\n.primary-button {\n display: inline-block;\n background: white;\n color: var(--primary);\n padding: 0.75rem 1.5rem;\n border-radius: var(--border-radius);\n text-decoration: none;\n font-weight: 600;\n transition: var(--transition);\n}\n\n.primary-button:hover {\n transform: translateY(-2px);\n box-shadow: var(--shadow);\n}\n\nmain {\n max-width: 1200px;\n margin: 0 auto;\n padding: 4rem 1rem;\n}\n\nsection {\n margin-bottom: 4rem;\n}\n\nh2 {\n font-size: 2rem;\n margin-bottom: 2rem;\n text-align: center;\n}\n\n.feature-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n margin-top: 2rem;\n}\n\n.feature-card {\n background: white;\n border-radius: var(--border-radius);\n padding: 2rem;\n box-shadow: var(--shadow);\n transition: var(--transition);\n}\n\n.feature-card:hover {\n transform: translateY(-5px);\n box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);\n}\n\n.feature-icon {\n font-size: 2rem;\n margin-bottom: 1rem;\n}\n\n.feature-card h3 {\n font-size: 1.25rem;\n margin-bottom: 0.75rem;\n}\n\n.code-demo {\n background: var(--dark);\n color: white;\n padding: 3rem 1rem;\n border-radius: var(--border-radius);\n}\n\n.code-container {\n display: grid;\n grid-template-columns: 1fr;\n gap: 2rem;\n max-width: 1000px;\n margin: 0 auto;\n}\n\n@media (min-width: 768px) {\n .code-container {\n grid-template-columns: 1fr 1fr;\n }\n}\n\n.code-example {\n background: #0f172a;\n padding: 1.5rem;\n border-radius: var(--border-radius);\n overflow-x: auto;\n font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;\n font-size: 0.9rem;\n line-height: 1.7;\n}\n\n.code-example code {\n color: #e2e8f0;\n}\n\n.code-output {\n background: white;\n padding: 1.5rem;\n border-radius: var(--border-radius);\n color: var(--dark);\n}\n\nfooter {\n background: var(--dark);\n color: white;\n padding: 3rem 1rem;\n}\n\n.footer-content {\n max-width: 1200px;\n margin: 0 auto;\n display: grid;\n grid-template-columns: 1fr;\n gap: 2rem;\n}\n\n@media (min-width: 768px) {\n .footer-content {\n grid-template-columns: 1fr 1fr;\n }\n}\n\n.footer-links {\n display: flex;\n gap: 1.5rem;\n flex-wrap: wrap;\n}\n\n.footer-links a {\n color: white;\n text-decoration: none;\n transition: var(--transition);\n}\n\n.footer-links a:hover {\n opacity: 0.8;\n}\n\nfooter p {\n opacity: 0.8;\n line-height: 1.7;\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n // Smooth scrolling for anchor links\n document.querySelectorAll('a[href^=\"#\"]').forEach(anchor => {\n anchor.addEventListener('click', function(e) {\n e.preventDefault();\n const targetId = this.getAttribute('href');\n if (targetId === '#') return;\n \n const targetElement = document.querySelector(targetId);\n if (targetElement) {\n window.scrollTo({\n top: targetElement.offsetTop - 80,\n behavior: 'smooth'\n });\n }\n });\n });\n\n // Add animation to feature cards when they come into view\n const featureCards = document.querySelectorAll('.feature-card');\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 featureCards.forEach(card => {\n card.style.opacity = '0';\n card.style.transform = 'translateY(20px)';\n card.style.transition = 'opacity 0.6s ease, transform 0.6s ease';\n observer.observe(card);\n });\n\n // Dynamic year in footer\n const yearSpan = document.createElement('span');\n yearSpan.textContent = new Date().getFullYear();\n document.querySelector('footer p').prepend(yearSpan, ' ');\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 718,
+ "completion_tokens": 2272,
+ "total_tokens": 2990,
+ "prompt_tokens_details": {
+ "cached_tokens": 0
+ },
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 718
+ },
+ "system_fingerprint": "fp_3d5141a69a_prod0225"
+ }
readme.scroll
Changed around line 1
+ # hub.scroll.pub
+
+ Prompt: website
+ Agent: deepseek
+ Model: deepseek-chat
+
+ ## User prompt
+ scrollhub
+
+ ## System prompt
+ You are an expert web developer. Create a website based on this request: "scrollhub"
+
+ 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', function() {
+ // Smooth scrolling for anchor links
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
+ anchor.addEventListener('click', function(e) {
+ e.preventDefault();
+ const targetId = this.getAttribute('href');
+ if (targetId === '#') return;
+
+ const targetElement = document.querySelector(targetId);
+ if (targetElement) {
+ window.scrollTo({
+ top: targetElement.offsetTop - 80,
+ behavior: 'smooth'
+ });
+ }
+ });
+ });
+
+ // Add animation to feature cards when they come into view
+ const featureCards = document.querySelectorAll('.feature-card');
+ 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 });
+
+ featureCards.forEach(card => {
+ card.style.opacity = '0';
+ card.style.transform = 'translateY(20px)';
+ card.style.transition = 'opacity 0.6s ease, transform 0.6s ease';
+ observer.observe(card);
+ });
+
+ // Dynamic year in footer
+ const yearSpan = document.createElement('span');
+ yearSpan.textContent = new Date().getFullYear();
+ document.querySelector('footer p').prepend(yearSpan, ' ');
+ });
style.css
Changed around line 1
+ :root {
+ --primary: #2563eb;
+ --primary-light: #3b82f6;
+ --dark: #1e293b;
+ --light: #f8fafc;
+ --gray: #94a3b8;
+ --border-radius: 8px;
+ --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
+ --transition: all 0.2s ease;
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
+ line-height: 1.6;
+ color: var(--dark);
+ background-color: var(--light);
+ }
+
+ header.hero {
+ background: linear-gradient(135deg, var(--primary), #1d4ed8);
+ color: white;
+ padding: 2rem 1rem;
+ position: relative;
+ overflow: hidden;
+ }
+
+ header.hero::before {
+ content: '';
+ position: absolute;
+ top: -50%;
+ left: -50%;
+ width: 200%;
+ height: 200%;
+ background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
+ transform: rotate(30deg);
+ }
+
+ nav {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ max-width: 1200px;
+ margin: 0 auto;
+ padding: 0 1rem;
+ }
+
+ .logo {
+ font-size: 1.5rem;
+ font-weight: 700;
+ letter-spacing: -0.5px;
+ }
+
+ .nav-links {
+ display: flex;
+ gap: 1.5rem;
+ align-items: center;
+ }
+
+ .nav-links a {
+ color: white;
+ text-decoration: none;
+ font-weight: 500;
+ transition: var(--transition);
+ }
+
+ .nav-links a:hover {
+ opacity: 0.8;
+ }
+
+ .cta-button {
+ background: white;
+ color: var(--primary);
+ padding: 0.5rem 1rem;
+ border-radius: var(--border-radius);
+ font-weight: 600;
+ }
+
+ .hero-content {
+ max-width: 1200px;
+ margin: 4rem auto;
+ padding: 0 1rem;
+ position: relative;
+ }
+
+ .hero-content h1 {
+ font-size: 3rem;
+ line-height: 1.2;
+ margin-bottom: 1.5rem;
+ max-width: 800px;
+ }
+
+ .hero-content p {
+ font-size: 1.25rem;
+ max-width: 600px;
+ margin-bottom: 2rem;
+ opacity: 0.9;
+ }
+
+ .primary-button {
+ display: inline-block;
+ background: white;
+ color: var(--primary);
+ padding: 0.75rem 1.5rem;
+ border-radius: var(--border-radius);
+ text-decoration: none;
+ font-weight: 600;
+ transition: var(--transition);
+ }
+
+ .primary-button:hover {
+ transform: translateY(-2px);
+ box-shadow: var(--shadow);
+ }
+
+ main {
+ max-width: 1200px;
+ margin: 0 auto;
+ padding: 4rem 1rem;
+ }
+
+ section {
+ margin-bottom: 4rem;
+ }
+
+ h2 {
+ font-size: 2rem;
+ margin-bottom: 2rem;
+ text-align: center;
+ }
+
+ .feature-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 2rem;
+ margin-top: 2rem;
+ }
+
+ .feature-card {
+ background: white;
+ border-radius: var(--border-radius);
+ padding: 2rem;
+ box-shadow: var(--shadow);
+ transition: var(--transition);
+ }
+
+ .feature-card:hover {
+ transform: translateY(-5px);
+ box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
+ }
+
+ .feature-icon {
+ font-size: 2rem;
+ margin-bottom: 1rem;
+ }
+
+ .feature-card h3 {
+ font-size: 1.25rem;
+ margin-bottom: 0.75rem;
+ }
+
+ .code-demo {
+ background: var(--dark);
+ color: white;
+ padding: 3rem 1rem;
+ border-radius: var(--border-radius);
+ }
+
+ .code-container {
+ display: grid;
+ grid-template-columns: 1fr;
+ gap: 2rem;
+ max-width: 1000px;
+ margin: 0 auto;
+ }
+
+ @media (min-width: 768px) {
+ .code-container {
+ grid-template-columns: 1fr 1fr;
+ }
+ }
+
+ .code-example {
+ background: #0f172a;
+ padding: 1.5rem;
+ border-radius: var(--border-radius);
+ overflow-x: auto;
+ font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
+ font-size: 0.9rem;
+ line-height: 1.7;
+ }
+
+ .code-example code {
+ color: #e2e8f0;
+ }
+
+ .code-output {
+ background: white;
+ padding: 1.5rem;
+ border-radius: var(--border-radius);
+ color: var(--dark);
+ }
+
+ footer {
+ background: var(--dark);
+ color: white;
+ padding: 3rem 1rem;
+ }
+
+ .footer-content {
+ max-width: 1200px;
+ margin: 0 auto;
+ display: grid;
+ grid-template-columns: 1fr;
+ gap: 2rem;
+ }
+
+ @media (min-width: 768px) {
+ .footer-content {
+ grid-template-columns: 1fr 1fr;
+ }
+ }
+
+ .footer-links {
+ display: flex;
+ gap: 1.5rem;
+ flex-wrap: wrap;
+ }
+
+ .footer-links a {
+ color: white;
+ text-decoration: none;
+ transition: var(--transition);
+ }
+
+ .footer-links a:hover {
+ opacity: 0.8;
+ }
+
+ footer p {
+ opacity: 0.8;
+ line-height: 1.7;
+ }