Changes to purrscroll.pub.scroll.pub

root
root
6 days ago
Initial commit
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://purrscroll.pub
+ metaTags
+ editButton /edit.html
+ title PurrScroll - The Finest Cat Videos
+ style.css
+ header
+ class hero
+ nav
+ div PurrScroll
+ class logo
+ div
+ class nav-links
+ a Trending
+ href #trending
+ a Favorites
+ href #favorites
+ a Breeds
+ href #breeds
+ a Upload
+ class cta-button
+ href upload.html
+ div
+ class hero-content
+ h1 The Internet's Best Cat Videos
+ p Curated collection of the most purrfect feline moments
+ a Watch Now
+ class primary-button
+ href #trending
+ main
+ section
+ id trending
+ class video-section
+ h2 Trending Videos
+ div
+ class video-grid
+ div
+ class video-card
+ video
+ src videos/trending1.mp4
+ controls
+ h3 Cat vs. Cucumber
+ p 2.1M views
+ div
+ class video-card
+ video
+ src videos/trending2.mp4
+ controls
+ h3 Keyboard Cat Returns
+ p 1.8M views
+ div
+ class video-card
+ video
+ src videos/trending3.mp4
+ controls
+ h3 Tiny Kitten Yawn
+ p 1.5M views
+ section
+ id favorites
+ class video-section
+ h2 Staff Favorites
+ div
+ class video-grid
+ div
+ class video-card
+ video
+ src videos/fav1.mp4
+ controls
+ h3 Cat High Five
+ p 4.7M views
+ div
+ class video-card
+ video
+ src videos/fav2.mp4
+ controls
+ h3 Purr Machine
+ p 3.9M views
+ div
+ class video-card
+ video
+ src videos/fav3.mp4
+ controls
+ h3 Ninja Cat
+ p 3.2M views
+ section
+ id breeds
+ class breeds-section
+ h2 Browse By Breed
+ div
+ class breed-grid
+ div
+ class breed-card
+ style background-image:url('images/siamese.jpg')
+ h3 Siamese
+ div
+ class breed-card
+ style background-image:url('images/persian.jpg')
+ h3 Persian
+ div
+ class breed-card
+ style background-image:url('images/maine-coon.jpg')
+ h3 Maine Coon
+ div
+ class breed-card
+ style background-image:url('images/bengal.jpg')
+ h3 Bengal
+ footer
+ div
+ class footer-content
+ div
+ class footer-links
+ a About
+ href about.html
+ a Contact
+ href contact.html
+ a Privacy
+ href privacy.html
+ p A celebration of feline grace and comedy
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "ace36bd0-d49d-41d7-863c-6f3babb1b066",
+ "object": "chat.completion",
+ "created": 1742898955,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "Here's my suggestion for a cat video website using Scroll:\n\n---domain---\npurrscroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://purrscroll.pub\nmetaTags\neditButton /edit.html\ntitle PurrScroll - The Finest Cat Videos\nstyle.css\nheader\n class hero\n nav\n div PurrScroll\n class logo\n div\n class nav-links\n a Trending\n href #trending\n a Favorites\n href #favorites\n a Breeds\n href #breeds\n a Upload\n class cta-button\n href upload.html\n div\n class hero-content\n h1 The Internet's Best Cat Videos\n p Curated collection of the most purrfect feline moments\n a Watch Now\n class primary-button\n href #trending\nmain\n section\n id trending\n class video-section\n h2 Trending Videos\n div\n class video-grid\n div\n class video-card\n video\n src videos/trending1.mp4\n controls\n h3 Cat vs. Cucumber\n p 2.1M views\n div\n class video-card\n video\n src videos/trending2.mp4\n controls\n h3 Keyboard Cat Returns\n p 1.8M views\n div\n class video-card\n video\n src videos/trending3.mp4\n controls\n h3 Tiny Kitten Yawn\n p 1.5M views\n section\n id favorites\n class video-section\n h2 Staff Favorites\n div\n class video-grid\n div\n class video-card\n video\n src videos/fav1.mp4\n controls\n h3 Cat High Five\n p 4.7M views\n div\n class video-card\n video\n src videos/fav2.mp4\n controls\n h3 Purr Machine\n p 3.9M views\n div\n class video-card\n video\n src videos/fav3.mp4\n controls\n h3 Ninja Cat\n p 3.2M views\n section\n id breeds\n class breeds-section\n h2 Browse By Breed\n div\n class breed-grid\n div\n class breed-card\n style background-image:url('images/siamese.jpg')\n h3 Siamese\n div\n class breed-card\n style background-image:url('images/persian.jpg')\n h3 Persian\n div\n class breed-card\n style background-image:url('images/maine-coon.jpg')\n h3 Maine Coon\n div\n class breed-card\n style background-image:url('images/bengal.jpg')\n h3 Bengal\nfooter\n div\n class footer-content\n div\n class footer-links\n a About\n href about.html\n a Contact\n href contact.html\n a Privacy\n href privacy.html\n p A celebration of feline grace and comedy\nscript.js\n---style.css---\n:root {\n --primary: #ff6b6b;\n --secondary: #4ecdc4;\n --dark: #292f36;\n --light: #f7fff7;\n --accent: #ffe66d;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 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), var(--secondary));\n color: white;\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 width: 100%;\n height: 100%;\n background: url('data:image/svg+xml;utf8,');\n opacity: 0.3;\n}\n\nnav {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 5%;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.logo {\n font-size: 2rem;\n font-weight: bold;\n color: white;\n text-decoration: none;\n}\n\n.nav-links {\n display: flex;\n gap: 2rem;\n}\n\n.nav-links a {\n color: white;\n text-decoration: none;\n font-weight: 500;\n transition: all 0.3s ease;\n}\n\n.nav-links a:hover {\n color: var(--accent);\n transform: translateY(-2px);\n}\n\n.cta-button {\n background-color: var(--accent);\n color: var(--dark);\n padding: 0.5rem 1rem;\n border-radius: 50px;\n font-weight: bold;\n}\n\n.hero-content {\n max-width: 1200px;\n margin: 3rem auto;\n padding: 0 5%;\n text-align: center;\n}\n\n.hero-content 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-content p {\n font-size: 1.2rem;\n max-width: 600px;\n margin: 0 auto 2rem;\n}\n\n.primary-button {\n display: inline-block;\n background-color: var(--accent);\n color: var(--dark);\n padding: 0.8rem 2rem;\n border-radius: 50px;\n text-decoration: none;\n font-weight: bold;\n font-size: 1.1rem;\n transition: all 0.3s ease;\n}\n\n.primary-button:hover {\n transform: translateY(-3px);\n box-shadow: 0 10px 20px rgba(0,0,0,0.1);\n}\n\n.video-section, .breeds-section {\n padding: 4rem 5%;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.video-section h2, .breeds-section h2 {\n text-align: center;\n margin-bottom: 2rem;\n font-size: 2.5rem;\n color: var(--primary);\n}\n\n.video-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n gap: 2rem;\n}\n\n.video-card {\n background: white;\n border-radius: 8px;\n overflow: hidden;\n box-shadow: 0 5px 15px rgba(0,0,0,0.1);\n transition: transform 0.3s ease;\n}\n\n.video-card:hover {\n transform: translateY(-5px);\n}\n\n.video-card video {\n width: 100%;\n display: block;\n}\n\n.video-card h3 {\n padding: 1rem;\n font-size: 1.2rem;\n}\n\n.video-card p {\n padding: 0 1rem 1rem;\n color: #666;\n}\n\n.breed-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));\n gap: 1.5rem;\n}\n\n.breed-card {\n height: 200px;\n border-radius: 8px;\n display: flex;\n align-items: flex-end;\n padding: 1rem;\n color: white;\n font-size: 1.5rem;\n font-weight: bold;\n text-shadow: 1px 1px 3px rgba(0,0,0,0.8);\n background-size: cover;\n background-position: center;\n transition: all 0.3s ease;\n}\n\n.breed-card:hover {\n transform: scale(1.05);\n}\n\nfooter {\n background-color: var(--dark);\n color: white;\n padding: 3rem 5%;\n}\n\n.footer-content {\n max-width: 1200px;\n margin: 0 auto;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.footer-links {\n display: flex;\n gap: 2rem;\n margin-bottom: 1.5rem;\n}\n\n.footer-links a {\n color: white;\n text-decoration: none;\n}\n\n.footer-links a:hover {\n color: var(--secondary);\n}\n\n@media (max-width: 768px) {\n .hero-content h1 {\n font-size: 2.5rem;\n }\n \n .nav-links {\n gap: 1rem;\n }\n \n .video-grid {\n grid-template-columns: 1fr;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n // Lazy load videos\n const lazyVideos = document.querySelectorAll('video[data-src]');\n \n const lazyVideoObserver = new IntersectionObserver((entries, observer) => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n const video = entry.target;\n video.src = video.getAttribute('data-src');\n video.removeAttribute('data-src');\n observer.unobserve(video);\n }\n });\n }, { rootMargin: '100px' });\n \n lazyVideos.forEach(video => {\n lazyVideoObserver.observe(video);\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 \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 // Video hover preview\n const videoCards = document.querySelectorAll('.video-card');\n \n videoCards.forEach(card => {\n const video = card.querySelector('video');\n \n card.addEventListener('mouseenter', () => {\n video.currentTime = 0;\n video.play().catch(e => console.log('Autoplay prevented:', e));\n });\n \n card.addEventListener('mouseleave', () => {\n video.pause();\n });\n });\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 725,
+ "completion_tokens": 2436,
+ "total_tokens": 3161,
+ "prompt_tokens_details": {
+ "cached_tokens": 0
+ },
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 725
+ },
+ "system_fingerprint": "fp_3d5141a69a_prod0225"
+ }
readme.scroll
Changed around line 1
+ # purrscroll.pub.scroll.pub
+
+ Prompt: website
+ Agent: deepseek
+ Model: deepseek-chat
+
+ ## User prompt
+ I want a website that is about cat videos.
+
+ ## System prompt
+ You are an expert web developer. Create a website based on this request: "I want a website that is about cat videos."
+
+ 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() {
+ // Lazy load videos
+ const lazyVideos = document.querySelectorAll('video[data-src]');
+
+ const lazyVideoObserver = new IntersectionObserver((entries, observer) => {
+ entries.forEach(entry => {
+ if (entry.isIntersecting) {
+ const video = entry.target;
+ video.src = video.getAttribute('data-src');
+ video.removeAttribute('data-src');
+ observer.unobserve(video);
+ }
+ });
+ }, { rootMargin: '100px' });
+
+ lazyVideos.forEach(video => {
+ lazyVideoObserver.observe(video);
+ });
+
+ // 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'
+ });
+ }
+ });
+ });
+
+ // Video hover preview
+ const videoCards = document.querySelectorAll('.video-card');
+
+ videoCards.forEach(card => {
+ const video = card.querySelector('video');
+
+ card.addEventListener('mouseenter', () => {
+ video.currentTime = 0;
+ video.play().catch(e => console.log('Autoplay prevented:', e));
+ });
+
+ card.addEventListener('mouseleave', () => {
+ video.pause();
+ });
+ });
+ });
style.css
Changed around line 1
+ :root {
+ --primary: #ff6b6b;
+ --secondary: #4ecdc4;
+ --dark: #292f36;
+ --light: #f7fff7;
+ --accent: #ffe66d;
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
+ line-height: 1.6;
+ color: var(--dark);
+ background-color: var(--light);
+ }
+
+ header.hero {
+ background: linear-gradient(135deg, var(--primary), var(--secondary));
+ color: white;
+ padding: 2rem 0;
+ position: relative;
+ overflow: hidden;
+ }
+
+ header.hero::before {
+ content: '';
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background: url('data:image/svg+xml;utf8,');
+ opacity: 0.3;
+ }
+
+ nav {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 0 5%;
+ max-width: 1200px;
+ margin: 0 auto;
+ }
+
+ .logo {
+ font-size: 2rem;
+ font-weight: bold;
+ color: white;
+ text-decoration: none;
+ }
+
+ .nav-links {
+ display: flex;
+ gap: 2rem;
+ }
+
+ .nav-links a {
+ color: white;
+ text-decoration: none;
+ font-weight: 500;
+ transition: all 0.3s ease;
+ }
+
+ .nav-links a:hover {
+ color: var(--accent);
+ transform: translateY(-2px);
+ }
+
+ .cta-button {
+ background-color: var(--accent);
+ color: var(--dark);
+ padding: 0.5rem 1rem;
+ border-radius: 50px;
+ font-weight: bold;
+ }
+
+ .hero-content {
+ max-width: 1200px;
+ margin: 3rem auto;
+ padding: 0 5%;
+ text-align: center;
+ }
+
+ .hero-content h1 {
+ font-size: 3.5rem;
+ margin-bottom: 1rem;
+ text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
+ }
+
+ .hero-content p {
+ font-size: 1.2rem;
+ max-width: 600px;
+ margin: 0 auto 2rem;
+ }
+
+ .primary-button {
+ display: inline-block;
+ background-color: var(--accent);
+ color: var(--dark);
+ padding: 0.8rem 2rem;
+ border-radius: 50px;
+ text-decoration: none;
+ font-weight: bold;
+ font-size: 1.1rem;
+ transition: all 0.3s ease;
+ }
+
+ .primary-button:hover {
+ transform: translateY(-3px);
+ box-shadow: 0 10px 20px rgba(0,0,0,0.1);
+ }
+
+ .video-section, .breeds-section {
+ padding: 4rem 5%;
+ max-width: 1200px;
+ margin: 0 auto;
+ }
+
+ .video-section h2, .breeds-section h2 {
+ text-align: center;
+ margin-bottom: 2rem;
+ font-size: 2.5rem;
+ color: var(--primary);
+ }
+
+ .video-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
+ gap: 2rem;
+ }
+
+ .video-card {
+ background: white;
+ border-radius: 8px;
+ overflow: hidden;
+ box-shadow: 0 5px 15px rgba(0,0,0,0.1);
+ transition: transform 0.3s ease;
+ }
+
+ .video-card:hover {
+ transform: translateY(-5px);
+ }
+
+ .video-card video {
+ width: 100%;
+ display: block;
+ }
+
+ .video-card h3 {
+ padding: 1rem;
+ font-size: 1.2rem;
+ }
+
+ .video-card p {
+ padding: 0 1rem 1rem;
+ color: #666;
+ }
+
+ .breed-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
+ gap: 1.5rem;
+ }
+
+ .breed-card {
+ height: 200px;
+ border-radius: 8px;
+ display: flex;
+ align-items: flex-end;
+ padding: 1rem;
+ color: white;
+ font-size: 1.5rem;
+ font-weight: bold;
+ text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
+ background-size: cover;
+ background-position: center;
+ transition: all 0.3s ease;
+ }
+
+ .breed-card:hover {
+ transform: scale(1.05);
+ }
+
+ footer {
+ background-color: var(--dark);
+ color: white;
+ padding: 3rem 5%;
+ }
+
+ .footer-content {
+ max-width: 1200px;
+ margin: 0 auto;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ }
+
+ .footer-links {
+ display: flex;
+ gap: 2rem;
+ margin-bottom: 1.5rem;
+ }
+
+ .footer-links a {
+ color: white;
+ text-decoration: none;
+ }
+
+ .footer-links a:hover {
+ color: var(--secondary);
+ }
+
+ @media (max-width: 768px) {
+ .hero-content h1 {
+ font-size: 2.5rem;
+ }
+
+ .nav-links {
+ gap: 1rem;
+ }
+
+ .video-grid {
+ grid-template-columns: 1fr;
+ }
+ }