Changes to ascroll.pub.scroll.pub

ScrollHub
ScrollHub
10 days ago
updated index.scroll
index.scroll
Changed around line 1
+ title A
- title A
Changed around line 67: footer
- script.js
+ script.js
ScrollHub
ScrollHub
10 days ago
Initial commit
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://ascroll.pub
+ metaTags
+ editButton /edit.html
+ title A
+ style.css
+
+ header
+ class hero
+ div
+ class hero-content
+ h1 A
+ class letter-a
+ p The first letter. The beginning.
+ main
+ section
+ class features
+ h2 Why A?
+ div
+ class feature-grid
+ div
+ class feature-card
+ div A
+ class feature-icon
+ h3 Alphabetical
+ p The first letter of the English alphabet.
+ div
+ class feature-card
+ div α
+ class feature-icon
+ h3 Ancient
+ p Derived from the Greek letter Alpha.
+ div
+ class feature-card
+ div @
+ class feature-icon
+ h3 Digital
+ p The symbol for email and connectivity.
+ div
+ class feature-card
+ div ∀
+ class feature-icon
+ h3 Universal
+ p In math, it means "for all".
+ section
+ class gallery
+ h2 A in Nature
+ div
+ class gallery-grid
+ div
+ class gallery-item
+ div Apple
+ class gallery-img
+ style background-image:url('data:image/svg+xml;utf8,')
+ div
+ class gallery-item
+ div Ant
+ class gallery-img
+ style background-image:url('data:image/svg+xml;utf8,')
+ div
+ class gallery-item
+ div Aurora
+ class gallery-img
+ style background-image:url('data:image/svg+xml;utf8,')
+ footer
+ div
+ class footer-content
+ p A simple page about the letter A.
+
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "09008026-f170-49ff-9e92-cc5b8c7583c8",
+ "object": "chat.completion",
+ "created": 1749124708,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "I'll create a beautiful, modern website for a simple \"a\" page with advanced CSS techniques. Here's my suggestion:\n\n---domain---\nascroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://ascroll.pub\nmetaTags\neditButton /edit.html\ntitle A\nstyle.css\n\nheader\n class hero\n div\n class hero-content\n h1 A\n class letter-a\n p The first letter. The beginning.\nmain\n section\n class features\n h2 Why A?\n div\n class feature-grid\n div\n class feature-card\n div A\n class feature-icon\n h3 Alphabetical\n p The first letter of the English alphabet.\n div\n class feature-card\n div α\n class feature-icon\n h3 Ancient\n p Derived from the Greek letter Alpha.\n div\n class feature-card\n div @\n class feature-icon\n h3 Digital\n p The symbol for email and connectivity.\n div\n class feature-card\n div ∀\n class feature-icon\n h3 Universal\n p In math, it means \"for all\".\n section\n class gallery\n h2 A in Nature\n div\n class gallery-grid\n div\n class gallery-item\n div Apple\n class gallery-img\n style background-image:url('data:image/svg+xml;utf8,')\n div\n class gallery-item\n div Ant\n class gallery-img\n style background-image:url('data:image/svg+xml;utf8,')\n div\n class gallery-item\n div Aurora\n class gallery-img\n style background-image:url('data:image/svg+xml;utf8,')\nfooter\n div\n class footer-content\n p A simple page about the letter A.\n\nscript.js\n---style.css---\n:root {\n --primary: #4a6bff;\n --primary-light: #6a85ff;\n --secondary: #ff4a6b;\n --dark: #1a1a2e;\n --light: #f5f5ff;\n --gradient: linear-gradient(135deg, var(--primary), var(--secondary));\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(--dark);\n background: var(--light);\n overflow-x: hidden;\n}\n\nheader.hero {\n height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--gradient);\n color: white;\n text-align: center;\n position: relative;\n overflow: hidden;\n}\n\nheader.hero::before {\n content: 'A';\n position: absolute;\n font-size: 50vw;\n font-weight: 900;\n opacity: 0.05;\n z-index: 0;\n animation: float 15s ease-in-out infinite;\n}\n\n.hero-content {\n position: relative;\n z-index: 1;\n max-width: 800px;\n padding: 2rem;\n}\n\nh1.letter-a {\n font-size: 20rem;\n font-weight: 900;\n line-height: 0.8;\n margin-bottom: 2rem;\n text-shadow: 0 10px 30px rgba(0,0,0,0.3);\n animation: pulse 2s ease-in-out infinite alternate;\n}\n\n@keyframes pulse {\n from { transform: scale(1); }\n to { transform: scale(1.05); }\n}\n\n@keyframes float {\n 0%, 100% { transform: translateY(0) rotate(0deg); }\n 50% { transform: translateY(-20px) rotate(5deg); }\n}\n\nsection {\n padding: 6rem 2rem;\n max-width: 1200px;\n margin: 0 auto;\n}\n\nh2 {\n font-size: 3rem;\n margin-bottom: 3rem;\n text-align: center;\n position: relative;\n}\n\nh2::after {\n content: '';\n position: absolute;\n bottom: -1rem;\n left: 50%;\n transform: translateX(-50%);\n width: 100px;\n height: 4px;\n background: var(--gradient);\n}\n\n.feature-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n margin-top: 3rem;\n}\n\n.feature-card {\n background: white;\n padding: 2rem;\n border-radius: 1rem;\n box-shadow: 0 10px 30px rgba(0,0,0,0.1);\n text-align: center;\n transition: transform 0.3s ease;\n}\n\n.feature-card:hover {\n transform: translateY(-10px);\n}\n\n.feature-icon {\n font-size: 3rem;\n margin-bottom: 1rem;\n}\n\n.gallery-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));\n gap: 2rem;\n margin-top: 3rem;\n}\n\n.gallery-item {\n height: 300px;\n position: relative;\n overflow: hidden;\n border-radius: 1rem;\n box-shadow: 0 10px 30px rgba(0,0,0,0.1);\n}\n\n.gallery-img {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-size: cover;\n background-position: center;\n display: flex;\n align-items: flex-end;\n padding: 1rem;\n color: white;\n font-weight: bold;\n font-size: 1.5rem;\n text-shadow: 0 2px 5px rgba(0,0,0,0.5);\n transition: transform 0.5s ease;\n}\n\n.gallery-item:hover .gallery-img {\n transform: scale(1.1);\n}\n\nfooter {\n background: var(--dark);\n color: white;\n padding: 3rem 2rem;\n text-align: center;\n}\n\n@media (max-width: 768px) {\n h1.letter-a {\n font-size: 10rem;\n }\n \n section {\n padding: 4rem 1rem;\n }\n \n .feature-grid, .gallery-grid {\n grid-template-columns: 1fr;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\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.5s ease, transform 0.5s ease';\n observer.observe(card);\n });\n \n // Parallax effect for hero\n window.addEventListener('scroll', () => {\n const scrollPosition = window.scrollY;\n const hero = document.querySelector('.hero');\n if (hero) {\n hero.style.backgroundPositionY = `${scrollPosition * 0.5}px`;\n }\n });\n \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---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 717,
+ "completion_tokens": 2317,
+ "total_tokens": 3034,
+ "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
+ # ascroll.pub.scroll.pub
+
+ Prompt: website
+ Agent: deepseek
+ Model: deepseek-chat
+
+ ## User prompt
+ a
+
+ ## System prompt
+ You are an expert web developer. Create a website based on this request: "a"
+
+ 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', () => {
+ // 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.5s ease, transform 0.5s ease';
+ observer.observe(card);
+ });
+
+ // Parallax effect for hero
+ window.addEventListener('scroll', () => {
+ const scrollPosition = window.scrollY;
+ const hero = document.querySelector('.hero');
+ if (hero) {
+ hero.style.backgroundPositionY = `${scrollPosition * 0.5}px`;
+ }
+ });
+
+ // 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'
+ });
+ });
+ });
+ });
style.css
Changed around line 1
+ :root {
+ --primary: #4a6bff;
+ --primary-light: #6a85ff;
+ --secondary: #ff4a6b;
+ --dark: #1a1a2e;
+ --light: #f5f5ff;
+ --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: 'Segoe UI', system-ui, sans-serif;
+ line-height: 1.6;
+ color: var(--dark);
+ background: var(--light);
+ overflow-x: hidden;
+ }
+
+ header.hero {
+ height: 100vh;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: var(--gradient);
+ color: white;
+ text-align: center;
+ position: relative;
+ overflow: hidden;
+ }
+
+ header.hero::before {
+ content: 'A';
+ position: absolute;
+ font-size: 50vw;
+ font-weight: 900;
+ opacity: 0.05;
+ z-index: 0;
+ animation: float 15s ease-in-out infinite;
+ }
+
+ .hero-content {
+ position: relative;
+ z-index: 1;
+ max-width: 800px;
+ padding: 2rem;
+ }
+
+ h1.letter-a {
+ font-size: 20rem;
+ font-weight: 900;
+ line-height: 0.8;
+ margin-bottom: 2rem;
+ text-shadow: 0 10px 30px rgba(0,0,0,0.3);
+ animation: pulse 2s ease-in-out infinite alternate;
+ }
+
+ @keyframes pulse {
+ from { transform: scale(1); }
+ to { transform: scale(1.05); }
+ }
+
+ @keyframes float {
+ 0%, 100% { transform: translateY(0) rotate(0deg); }
+ 50% { transform: translateY(-20px) rotate(5deg); }
+ }
+
+ section {
+ padding: 6rem 2rem;
+ max-width: 1200px;
+ margin: 0 auto;
+ }
+
+ h2 {
+ font-size: 3rem;
+ margin-bottom: 3rem;
+ text-align: center;
+ position: relative;
+ }
+
+ h2::after {
+ content: '';
+ position: absolute;
+ bottom: -1rem;
+ left: 50%;
+ transform: translateX(-50%);
+ width: 100px;
+ height: 4px;
+ background: var(--gradient);
+ }
+
+ .feature-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 2rem;
+ margin-top: 3rem;
+ }
+
+ .feature-card {
+ background: white;
+ padding: 2rem;
+ border-radius: 1rem;
+ box-shadow: 0 10px 30px rgba(0,0,0,0.1);
+ text-align: center;
+ transition: transform 0.3s ease;
+ }
+
+ .feature-card:hover {
+ transform: translateY(-10px);
+ }
+
+ .feature-icon {
+ font-size: 3rem;
+ margin-bottom: 1rem;
+ }
+
+ .gallery-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
+ gap: 2rem;
+ margin-top: 3rem;
+ }
+
+ .gallery-item {
+ height: 300px;
+ position: relative;
+ overflow: hidden;
+ border-radius: 1rem;
+ box-shadow: 0 10px 30px rgba(0,0,0,0.1);
+ }
+
+ .gallery-img {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background-size: cover;
+ background-position: center;
+ display: flex;
+ align-items: flex-end;
+ padding: 1rem;
+ color: white;
+ font-weight: bold;
+ font-size: 1.5rem;
+ text-shadow: 0 2px 5px rgba(0,0,0,0.5);
+ transition: transform 0.5s ease;
+ }
+
+ .gallery-item:hover .gallery-img {
+ transform: scale(1.1);
+ }
+
+ footer {
+ background: var(--dark);
+ color: white;
+ padding: 3rem 2rem;
+ text-align: center;
+ }
+
+ @media (max-width: 768px) {
+ h1.letter-a {
+ font-size: 10rem;
+ }
+
+ section {
+ padding: 4rem 1rem;
+ }
+
+ .feature-grid, .gallery-grid {
+ grid-template-columns: 1fr;
+ }
+ }