Changes to react.scroll.pub

ScrollHub
ScrollHub
22 days ago
Initial commit
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://react.scroll.pub
+ metaTags
+ editButton /edit.html
+ title React - A JavaScript library for building user interfaces
+ style.css
+ header
+ class hero
+ nav
+ div React
+ class logo
+ div
+ class nav-links
+ a Docs
+ href #docs
+ a Tutorial
+ href #tutorial
+ a Blog
+ href #blog
+ a GitHub
+ class cta-button
+ href https://github.com/facebook/react
+ div
+ class hero-content
+ h1 Build user interfaces with React
+ p React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes.
+ a Get Started
+ class primary-button
+ href #get-started
+ main
+ section
+ id features
+ class features
+ h2 Why React?
+ div
+ class feature-grid
+ div
+ class feature-card
+ div ⚛️
+ class feature-icon
+ h3 Declarative
+ p React makes it painless to create interactive UIs. Design simple views for each state in your application.
+ div
+ class feature-card
+ div 🧩
+ class feature-icon
+ h3 Component-Based
+ p Build encapsulated components that manage their own state, then compose them to make complex UIs.
+ div
+ class feature-card
+ div 🔄
+ class feature-icon
+ h3 Learn Once, Write Anywhere
+ p We don't make assumptions about your tech stack, so you can develop new features without rewriting existing code.
+ section
+ id demo
+ class code-demo
+ h2 Try React
+ div
+ class code-container
+ pre
+ class code-example
+ code
+ function HelloMessage({ name }) {
+ return
Hello {name}
;
+ }
+ ReactDOM.render(
+ ,
+ document.getElementById('container')
+ );
+ div
+ class code-output
+ div Hello Taylor
+ id container
+ footer
+ div
+ class footer-content
+ div
+ class footer-links
+ a Docs
+ href https://reactjs.org/docs/getting-started.html
+ a Tutorial
+ href https://reactjs.org/tutorial/tutorial.html
+ a Blog
+ href https://reactjs.org/blog
+ p Created by Facebook. Maintained by the React team and community.
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "f3bbc0fa-8b52-42ac-ad86-f3d6f7081080",
+ "object": "chat.completion",
+ "created": 1747140658,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "Here's a professional, beautiful website for React built with Scroll:\n\n---domain---\nreact.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://react.scroll.pub\nmetaTags\neditButton /edit.html\ntitle React - A JavaScript library for building user interfaces\nstyle.css\nheader\n class hero\n nav\n div React\n class logo\n div\n class nav-links\n a Docs\n href #docs\n a Tutorial\n href #tutorial\n a Blog\n href #blog\n a GitHub\n class cta-button\n href https://github.com/facebook/react\n div\n class hero-content\n h1 Build user interfaces with React\n p React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes.\n a Get Started\n class primary-button\n href #get-started\nmain\n section\n id features\n class features\n h2 Why React?\n div\n class feature-grid\n div\n class feature-card\n div ⚛️\n class feature-icon\n h3 Declarative\n p React makes it painless to create interactive UIs. Design simple views for each state in your application.\n div\n class feature-card\n div 🧩\n class feature-icon\n h3 Component-Based\n p Build encapsulated components that manage their own state, then compose them to make complex UIs.\n div\n class feature-card\n div 🔄\n class feature-icon\n h3 Learn Once, Write Anywhere\n p We don't make assumptions about your tech stack, so you can develop new features without rewriting existing code.\n section\n id demo\n class code-demo\n h2 Try React\n div\n class code-container\n pre\n class code-example\n code\n function HelloMessage({ name }) {\n return
Hello {name}
;\n }\n ReactDOM.render(\n ,\n document.getElementById('container')\n );\n div\n class code-output\n div Hello Taylor\n id container\nfooter\n div\n class footer-content\n div\n class footer-links\n a Docs\n href https://reactjs.org/docs/getting-started.html\n a Tutorial\n href https://reactjs.org/tutorial/tutorial.html\n a Blog\n href https://reactjs.org/blog\n p Created by Facebook. Maintained by the React team and community.\nscript.js\n---style.css---\n:root {\n --primary: #61dafb;\n --dark: #282c34;\n --light: #ffffff;\n --gray: #f8f9fa;\n --text: #212529;\n --shadow: 0 4px 6px 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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;\n line-height: 1.6;\n color: var(--text);\n background: var(--light);\n}\n\nheader.hero {\n background: var(--dark);\n color: var(--light);\n padding: 2rem 0;\n position: relative;\n overflow: hidden;\n}\n\nheader.hero::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 100%;\n background: radial-gradient(circle at 10% 20%, rgba(97, 218, 251, 0.1) 0%, transparent 20%);\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 2rem;\n}\n\n.logo {\n font-size: 1.8rem;\n font-weight: 700;\n color: var(--primary);\n}\n\n.nav-links {\n display: flex;\n gap: 1.5rem;\n}\n\n.nav-links a {\n color: var(--light);\n text-decoration: none;\n font-weight: 500;\n transition: color 0.3s;\n}\n\n.nav-links a:hover {\n color: var(--primary);\n}\n\n.cta-button {\n background: var(--primary);\n color: var(--dark);\n padding: 0.5rem 1rem;\n border-radius: 4px;\n font-weight: 600;\n}\n\n.hero-content {\n max-width: 1200px;\n margin: 4rem auto;\n padding: 0 2rem;\n text-align: center;\n}\n\n.hero-content h1 {\n font-size: 3rem;\n margin-bottom: 1.5rem;\n line-height: 1.2;\n}\n\n.hero-content p {\n font-size: 1.2rem;\n max-width: 700px;\n margin: 0 auto 2rem;\n opacity: 0.9;\n}\n\n.primary-button {\n display: inline-block;\n background: var(--primary);\n color: var(--dark);\n padding: 0.8rem 1.8rem;\n border-radius: 4px;\n font-weight: 600;\n text-decoration: none;\n transition: transform 0.2s, box-shadow 0.2s;\n box-shadow: var(--shadow);\n}\n\n.primary-button:hover {\n transform: translateY(-2px);\n box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);\n}\n\nmain {\n max-width: 1200px;\n margin: 4rem auto;\n padding: 0 2rem;\n}\n\n.features {\n margin-bottom: 4rem;\n}\n\n.features h2 {\n text-align: center;\n font-size: 2.2rem;\n margin-bottom: 3rem;\n color: var(--dark);\n}\n\n.feature-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n}\n\n.feature-card {\n background: var(--gray);\n padding: 2rem;\n border-radius: 8px;\n text-align: center;\n transition: transform 0.3s;\n}\n\n.feature-card:hover {\n transform: translateY(-5px);\n}\n\n.feature-icon {\n font-size: 2.5rem;\n margin-bottom: 1rem;\n}\n\n.feature-card h3 {\n margin-bottom: 1rem;\n color: var(--dark);\n}\n\n.code-demo {\n background: var(--dark);\n color: var(--light);\n padding: 3rem 2rem;\n border-radius: 8px;\n margin-top: 4rem;\n}\n\n.code-demo h2 {\n text-align: center;\n margin-bottom: 2rem;\n font-size: 2rem;\n}\n\n.code-container {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n max-width: 800px;\n margin: 0 auto;\n}\n\n.code-example {\n background: #1e1e1e;\n padding: 1.5rem;\n border-radius: 6px;\n overflow-x: auto;\n font-family: 'Courier New', Courier, monospace;\n font-size: 0.9rem;\n line-height: 1.5;\n}\n\n.code-example code {\n color: #d4d4d4;\n}\n\n.code-output {\n background: var(--light);\n color: var(--text);\n padding: 1.5rem;\n border-radius: 6px;\n font-family: 'Courier New', Courier, monospace;\n}\n\nfooter {\n background: var(--dark);\n color: var(--light);\n padding: 3rem 0;\n margin-top: 4rem;\n}\n\n.footer-content {\n max-width: 1200px;\n margin: 0 auto;\n padding: 0 2rem;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 2rem;\n}\n\n.footer-links {\n display: flex;\n gap: 2rem;\n}\n\n.footer-links a {\n color: var(--light);\n text-decoration: none;\n transition: color 0.3s;\n}\n\n.footer-links a:hover {\n color: var(--primary);\n}\n\n@media (max-width: 768px) {\n .hero-content h1 {\n font-size: 2.2rem;\n }\n \n .nav-links {\n gap: 1rem;\n }\n \n .feature-grid {\n grid-template-columns: 1fr;\n }\n \n .footer-links {\n flex-direction: column;\n align-items: center;\n gap: 1rem;\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 \n const targetId = this.getAttribute('href');\n if (targetId === '#') return;\n \n const targetElement = document.querySelector(targetId);\n if (targetElement) {\n targetElement.scrollIntoView({\n behavior: 'smooth',\n block: 'start'\n });\n }\n });\n });\n\n // Animate feature cards on scroll\n const featureCards = document.querySelectorAll('.feature-card');\n \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 // Interactive code example\n const codeExample = document.querySelector('.code-example code');\n const codeOutput = document.querySelector('.code-output #container');\n \n if (codeExample && codeOutput) {\n const names = ['Taylor', 'Sarah', 'Alex', 'Jordan', 'Casey'];\n let currentIndex = 0;\n \n setInterval(() => {\n currentIndex = (currentIndex + 1) % names.length;\n codeOutput.textContent = `Hello ${names[currentIndex]}`;\n }, 2000);\n }\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 717,
+ "completion_tokens": 2381,
+ "total_tokens": 3098,
+ "prompt_tokens_details": {
+ "cached_tokens": 0
+ },
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 717
+ },
+ "system_fingerprint": "fp_8802369eaa_prod0425fp8"
+ }
readme.scroll
Changed around line 1
+ # react.scroll.pub
+
+ Prompt: website
+ Agent: deepseek
+ Model: deepseek-chat
+
+ ## User prompt
+ React
+
+ ## System prompt
+ You are an expert web developer. Create a website based on this request: "React"
+
+ 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();
+
+ const targetId = this.getAttribute('href');
+ if (targetId === '#') return;
+
+ const targetElement = document.querySelector(targetId);
+ if (targetElement) {
+ targetElement.scrollIntoView({
+ behavior: 'smooth',
+ block: 'start'
+ });
+ }
+ });
+ });
+
+ // Animate feature cards on scroll
+ 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);
+ });
+
+ // Interactive code example
+ const codeExample = document.querySelector('.code-example code');
+ const codeOutput = document.querySelector('.code-output #container');
+
+ if (codeExample && codeOutput) {
+ const names = ['Taylor', 'Sarah', 'Alex', 'Jordan', 'Casey'];
+ let currentIndex = 0;
+
+ setInterval(() => {
+ currentIndex = (currentIndex + 1) % names.length;
+ codeOutput.textContent = `Hello ${names[currentIndex]}`;
+ }, 2000);
+ }
+ });
style.css
Changed around line 1
+ :root {
+ --primary: #61dafb;
+ --dark: #282c34;
+ --light: #ffffff;
+ --gray: #f8f9fa;
+ --text: #212529;
+ --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
+ line-height: 1.6;
+ color: var(--text);
+ background: var(--light);
+ }
+
+ header.hero {
+ background: var(--dark);
+ color: var(--light);
+ padding: 2rem 0;
+ position: relative;
+ overflow: hidden;
+ }
+
+ header.hero::before {
+ content: "";
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ height: 100%;
+ background: radial-gradient(circle at 10% 20%, rgba(97, 218, 251, 0.1) 0%, transparent 20%);
+ }
+
+ nav {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ max-width: 1200px;
+ margin: 0 auto;
+ padding: 0 2rem;
+ }
+
+ .logo {
+ font-size: 1.8rem;
+ font-weight: 700;
+ color: var(--primary);
+ }
+
+ .nav-links {
+ display: flex;
+ gap: 1.5rem;
+ }
+
+ .nav-links a {
+ color: var(--light);
+ text-decoration: none;
+ font-weight: 500;
+ transition: color 0.3s;
+ }
+
+ .nav-links a:hover {
+ color: var(--primary);
+ }
+
+ .cta-button {
+ background: var(--primary);
+ color: var(--dark);
+ padding: 0.5rem 1rem;
+ border-radius: 4px;
+ font-weight: 600;
+ }
+
+ .hero-content {
+ max-width: 1200px;
+ margin: 4rem auto;
+ padding: 0 2rem;
+ text-align: center;
+ }
+
+ .hero-content h1 {
+ font-size: 3rem;
+ margin-bottom: 1.5rem;
+ line-height: 1.2;
+ }
+
+ .hero-content p {
+ font-size: 1.2rem;
+ max-width: 700px;
+ margin: 0 auto 2rem;
+ opacity: 0.9;
+ }
+
+ .primary-button {
+ display: inline-block;
+ background: var(--primary);
+ color: var(--dark);
+ padding: 0.8rem 1.8rem;
+ border-radius: 4px;
+ font-weight: 600;
+ text-decoration: none;
+ transition: transform 0.2s, box-shadow 0.2s;
+ box-shadow: var(--shadow);
+ }
+
+ .primary-button:hover {
+ transform: translateY(-2px);
+ box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
+ }
+
+ main {
+ max-width: 1200px;
+ margin: 4rem auto;
+ padding: 0 2rem;
+ }
+
+ .features {
+ margin-bottom: 4rem;
+ }
+
+ .features h2 {
+ text-align: center;
+ font-size: 2.2rem;
+ margin-bottom: 3rem;
+ color: var(--dark);
+ }
+
+ .feature-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 2rem;
+ }
+
+ .feature-card {
+ background: var(--gray);
+ padding: 2rem;
+ border-radius: 8px;
+ text-align: center;
+ transition: transform 0.3s;
+ }
+
+ .feature-card:hover {
+ transform: translateY(-5px);
+ }
+
+ .feature-icon {
+ font-size: 2.5rem;
+ margin-bottom: 1rem;
+ }
+
+ .feature-card h3 {
+ margin-bottom: 1rem;
+ color: var(--dark);
+ }
+
+ .code-demo {
+ background: var(--dark);
+ color: var(--light);
+ padding: 3rem 2rem;
+ border-radius: 8px;
+ margin-top: 4rem;
+ }
+
+ .code-demo h2 {
+ text-align: center;
+ margin-bottom: 2rem;
+ font-size: 2rem;
+ }
+
+ .code-container {
+ display: flex;
+ flex-direction: column;
+ gap: 1rem;
+ max-width: 800px;
+ margin: 0 auto;
+ }
+
+ .code-example {
+ background: #1e1e1e;
+ padding: 1.5rem;
+ border-radius: 6px;
+ overflow-x: auto;
+ font-family: 'Courier New', Courier, monospace;
+ font-size: 0.9rem;
+ line-height: 1.5;
+ }
+
+ .code-example code {
+ color: #d4d4d4;
+ }
+
+ .code-output {
+ background: var(--light);
+ color: var(--text);
+ padding: 1.5rem;
+ border-radius: 6px;
+ font-family: 'Courier New', Courier, monospace;
+ }
+
+ footer {
+ background: var(--dark);
+ color: var(--light);
+ padding: 3rem 0;
+ margin-top: 4rem;
+ }
+
+ .footer-content {
+ max-width: 1200px;
+ margin: 0 auto;
+ padding: 0 2rem;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 2rem;
+ }
+
+ .footer-links {
+ display: flex;
+ gap: 2rem;
+ }
+
+ .footer-links a {
+ color: var(--light);
+ text-decoration: none;
+ transition: color 0.3s;
+ }
+
+ .footer-links a:hover {
+ color: var(--primary);
+ }
+
+ @media (max-width: 768px) {
+ .hero-content h1 {
+ font-size: 2.2rem;
+ }
+
+ .nav-links {
+ gap: 1rem;
+ }
+
+ .feature-grid {
+ grid-template-columns: 1fr;
+ }
+
+ .footer-links {
+ flex-direction: column;
+ align-items: center;
+ gap: 1rem;
+ }
+ }