Changes to party.scroll.pub

root
root
1 day ago
Initial commit
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://party.scroll.pub
+ metaTags
+ editButton /edit.html
+ title Confetti Paradise - Interactive Confetti Experience
+ style.css
+ header
+ class hero
+ h1 Confetti Paradise
+ p Click anywhere or scroll to unleash the magic!
+ main
+ section
+ class confetti-zone
+ div
+ class controls
+ button Burst Mode
+ id burstBtn
+ class control-btn
+ button Rain Mode
+ id rainBtn
+ class control-btn
+ button Rainbow Mode
+ id rainbowBtn
+ class control-btn
+ section
+ class instructions
+ h2 How to Play
+ div
+ class instruction-cards
+ div
+ class card
+ h3 Click & Pop
+ p Click anywhere on the screen to create confetti bursts
+ div
+ class card
+ h3 Scroll & Shower
+ p Scroll up and down to create a continuous confetti shower
+ div
+ class card
+ h3 Choose Your Style
+ p Switch between different confetti modes using the controls
+ footer
+ p Made with ✨ for confetti lovers
+ nav
+ a About
+ href #
+ a Contact
+ href #
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "msg_01U7oXEwRDHQbSaRZ8FN8Lan",
+ "type": "message",
+ "role": "assistant",
+ "model": "claude-3-5-sonnet-20241022",
+ "content": [
+ {
+ "type": "text",
+ "text": "I'll create a fun confetti website. For the domain, I suggest:\n\n---domain---\nparty.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://party.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Confetti Paradise - Interactive Confetti Experience\nstyle.css\nheader\n class hero\n h1 Confetti Paradise\n p Click anywhere or scroll to unleash the magic!\nmain\n section\n class confetti-zone\n div\n class controls\n button Burst Mode\n id burstBtn\n class control-btn\n button Rain Mode\n id rainBtn\n class control-btn\n button Rainbow Mode\n id rainbowBtn\n class control-btn\n section\n class instructions\n h2 How to Play\n div\n class instruction-cards\n div\n class card\n h3 Click & Pop\n p Click anywhere on the screen to create confetti bursts\n div\n class card\n h3 Scroll & Shower\n p Scroll up and down to create a continuous confetti shower\n div\n class card\n h3 Choose Your Style\n p Switch between different confetti modes using the controls\nfooter\n p Made with ✨ for confetti lovers\n nav\n a About\n href #\n a Contact\n href #\nscript.js\n---style.css---\n:root {\n --primary: #ff6b6b;\n --secondary: #4ecdc4;\n --dark: #2c3e50;\n --light: #f7f7f7;\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: linear-gradient(135deg, #f6f8f9 0%, #e5ebee 100%);\n min-height: 100vh;\n overflow-x: hidden;\n}\n\n.hero {\n text-align: center;\n padding: 4rem 2rem;\n background: linear-gradient(45deg, var(--primary), var(--secondary));\n color: white;\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 opacity: 0.9;\n}\n\n.confetti-zone {\n min-height: 60vh;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n}\n\n.controls {\n display: flex;\n gap: 1rem;\n flex-wrap: wrap;\n justify-content: center;\n padding: 2rem;\n}\n\n.control-btn {\n padding: 0.8rem 1.5rem;\n border: none;\n border-radius: 25px;\n background: white;\n color: var(--dark);\n font-weight: bold;\n cursor: pointer;\n transition: transform 0.2s, box-shadow 0.2s;\n box-shadow: 0 2px 8px rgba(0,0,0,0.1);\n}\n\n.control-btn:hover {\n transform: translateY(-2px);\n box-shadow: 0 4px 12px rgba(0,0,0,0.15);\n}\n\n.control-btn.active {\n background: var(--primary);\n color: white;\n}\n\n.instructions {\n padding: 4rem 2rem;\n background: white;\n}\n\n.instruction-cards {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n max-width: 1200px;\n margin: 0 auto;\n padding: 2rem;\n}\n\n.card {\n background: var(--light);\n padding: 2rem;\n border-radius: 15px;\n box-shadow: 0 4px 6px rgba(0,0,0,0.1);\n transition: transform 0.3s;\n}\n\n.card:hover {\n transform: translateY(-5px);\n}\n\nfooter {\n text-align: center;\n padding: 2rem;\n background: var(--dark);\n color: white;\n}\n\nfooter nav {\n margin-top: 1rem;\n}\n\nfooter a {\n color: var(--secondary);\n text-decoration: none;\n margin: 0 1rem;\n}\n\nfooter a:hover {\n text-decoration: underline;\n}\n\n@media (max-width: 768px) {\n .hero h1 {\n font-size: 2.5rem;\n }\n \n .controls {\n flex-direction: column;\n align-items: center;\n }\n \n .control-btn {\n width: 100%;\n max-width: 200px;\n }\n}\n---script.js---\nclass ConfettiParticle {\n constructor(x, y) {\n this.x = x;\n this.y = y;\n this.size = Math.random() * 10 + 5;\n this.speedX = Math.random() * 6 - 3;\n this.speedY = Math.random() * -15 - 5;\n this.gravity = 0.5;\n this.rotation = Math.random() * 360;\n this.rotationSpeed = Math.random() * 10 - 5;\n this.color = `hsl(${Math.random() * 360}, 80%, 60%)`;\n this.opacity = 1;\n }\n\n update() {\n this.x += this.speedX;\n this.speedY += this.gravity;\n this.y += this.speedY;\n this.rotation += this.rotationSpeed;\n this.opacity -= 0.01;\n }\n\n draw(ctx) {\n ctx.save();\n ctx.translate(this.x, this.y);\n ctx.rotate((this.rotation * Math.PI) / 180);\n ctx.fillStyle = this.color;\n ctx.globalAlpha = this.opacity;\n ctx.fillRect(-this.size / 2, -this.size / 2, this.size, this.size);\n ctx.restore();\n }\n}\n\nclass ConfettiSystem {\n constructor() {\n this.canvas = document.createElement('canvas');\n this.ctx = this.canvas.getContext('2d');\n this.particles = [];\n this.mode = 'burst';\n \n document.body.appendChild(this.canvas);\n this.resize();\n this.setupEventListeners();\n this.animate();\n }\n\n resize() {\n this.canvas.width = window.innerWidth;\n this.canvas.height = window.innerHeight;\n this.canvas.style.position = 'fixed';\n this.canvas.style.top = '0';\n this.canvas.style.left = '0';\n this.canvas.style.pointerEvents = 'none';\n this.canvas.style.zIndex = '1000';\n }\n\n createConfetti(x, y, amount = 50) {\n for (let i = 0; i < amount; i++) {\n this.particles.push(new ConfettiParticle(x, y));\n }\n }\n\n setupEventListeners() {\n window.addEventListener('resize', () => this.resize());\n window.addEventListener('click', (e) => {\n if (this.mode === 'burst') {\n this.createConfetti(e.clientX, e.clientY);\n }\n });\n\n let lastScroll = window.scrollY;\n window.addEventListener('scroll', () => {\n if (this.mode === 'rain') {\n const diff = Math.abs(window.scrollY - lastScroll);\n const amount = Math.floor(diff / 10);\n for (let i = 0; i < amount; i++) {\n const x = Math.random() * window.innerWidth;\n this.createConfetti(x, -20, 1);\n }\n lastScroll = window.scrollY;\n }\n });\n\n document.getElementById('burstBtn').addEventListener('click', () => this.setMode('burst'));\n document.getElementById('rainBtn').addEventListener('click', () => this.setMode('rain'));\n document.getElementById('rainbowBtn').addEventListener('click', () => this.setMode('rainbow'));\n }\n\n setMode(mode) {\n this.mode = mode;\n document.querySelectorAll('.control-btn').forEach(btn => btn.classList.remove('active'));\n document.getElementById(`${mode}Btn`).classList.add('active');\n }\n\n animate() {\n this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);\n \n if (this.mode === 'rainbow') {\n this.createConfetti(Math.random() * this.canvas.width, -20, 1);\n }\n\n this.particles = this.particles.filter(particle => {\n particle.update();\n particle.draw(this.ctx);\n return particle.opacity > 0 && particle.y < this.canvas.height;\n });\n\n requestAnimationFrame(() => this.animate());\n }\n}\n\ndocument.addEventListener('DOMContentLoaded', () => {\n new ConfettiSystem();\n});\n---end---\n\nThis implementation creates a delightful confetti experience with three different modes:\n1. Burst Mode: Click anywhere to create confetti explosions\n2. Rain Mode: Scroll to create confetti rainfall\n3. Rainbow Mode: Continuous stream of confetti\n\nThe site features smooth animations, responsive design, and an intuitive interface. The confetti particles have realistic physics with gravity, rotation, and fade-out effects. The design is modern and clean, with gradient backgrounds and subtle shadows for depth.\n\nThe CSS includes smooth transitions and hover effects, while the JavaScript implements an efficient particle system using canvas for optimal performance. The code is organized using classes for better maintainability and follows modern best practices."
+ }
+ ],
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
+ "usage": {
+ "input_tokens": 822,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0,
+ "output_tokens": 2603
+ }
+ }
readme.scroll
Changed around line 1
+ # party.scroll.pub
+
+ Prompt: website
+ Agent: claude
+ Model: claude-3-5-sonnet-20241022
+
+ ## User prompt
+ A website that shoots confetti
+
+ ## System prompt
+ You are an expert web developer. Create a website based on this request: "A website that shoots confetti"
+
+ 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
+ class ConfettiParticle {
+ constructor(x, y) {
+ this.x = x;
+ this.y = y;
+ this.size = Math.random() * 10 + 5;
+ this.speedX = Math.random() * 6 - 3;
+ this.speedY = Math.random() * -15 - 5;
+ this.gravity = 0.5;
+ this.rotation = Math.random() * 360;
+ this.rotationSpeed = Math.random() * 10 - 5;
+ this.color = `hsl(${Math.random() * 360}, 80%, 60%)`;
+ this.opacity = 1;
+ }
+
+ update() {
+ this.x += this.speedX;
+ this.speedY += this.gravity;
+ this.y += this.speedY;
+ this.rotation += this.rotationSpeed;
+ this.opacity -= 0.01;
+ }
+
+ draw(ctx) {
+ ctx.save();
+ ctx.translate(this.x, this.y);
+ ctx.rotate((this.rotation * Math.PI) / 180);
+ ctx.fillStyle = this.color;
+ ctx.globalAlpha = this.opacity;
+ ctx.fillRect(-this.size / 2, -this.size / 2, this.size, this.size);
+ ctx.restore();
+ }
+ }
+
+ class ConfettiSystem {
+ constructor() {
+ this.canvas = document.createElement('canvas');
+ this.ctx = this.canvas.getContext('2d');
+ this.particles = [];
+ this.mode = 'burst';
+
+ document.body.appendChild(this.canvas);
+ this.resize();
+ this.setupEventListeners();
+ this.animate();
+ }
+
+ resize() {
+ this.canvas.width = window.innerWidth;
+ this.canvas.height = window.innerHeight;
+ this.canvas.style.position = 'fixed';
+ this.canvas.style.top = '0';
+ this.canvas.style.left = '0';
+ this.canvas.style.pointerEvents = 'none';
+ this.canvas.style.zIndex = '1000';
+ }
+
+ createConfetti(x, y, amount = 50) {
+ for (let i = 0; i < amount; i++) {
+ this.particles.push(new ConfettiParticle(x, y));
+ }
+ }
+
+ setupEventListeners() {
+ window.addEventListener('resize', () => this.resize());
+ window.addEventListener('click', (e) => {
+ if (this.mode === 'burst') {
+ this.createConfetti(e.clientX, e.clientY);
+ }
+ });
+
+ let lastScroll = window.scrollY;
+ window.addEventListener('scroll', () => {
+ if (this.mode === 'rain') {
+ const diff = Math.abs(window.scrollY - lastScroll);
+ const amount = Math.floor(diff / 10);
+ for (let i = 0; i < amount; i++) {
+ const x = Math.random() * window.innerWidth;
+ this.createConfetti(x, -20, 1);
+ }
+ lastScroll = window.scrollY;
+ }
+ });
+
+ document.getElementById('burstBtn').addEventListener('click', () => this.setMode('burst'));
+ document.getElementById('rainBtn').addEventListener('click', () => this.setMode('rain'));
+ document.getElementById('rainbowBtn').addEventListener('click', () => this.setMode('rainbow'));
+ }
+
+ setMode(mode) {
+ this.mode = mode;
+ document.querySelectorAll('.control-btn').forEach(btn => btn.classList.remove('active'));
+ document.getElementById(`${mode}Btn`).classList.add('active');
+ }
+
+ animate() {
+ this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
+
+ if (this.mode === 'rainbow') {
+ this.createConfetti(Math.random() * this.canvas.width, -20, 1);
+ }
+
+ this.particles = this.particles.filter(particle => {
+ particle.update();
+ particle.draw(this.ctx);
+ return particle.opacity > 0 && particle.y < this.canvas.height;
+ });
+
+ requestAnimationFrame(() => this.animate());
+ }
+ }
+
+ document.addEventListener('DOMContentLoaded', () => {
+ new ConfettiSystem();
+ });
style.css
Changed around line 1
+ :root {
+ --primary: #ff6b6b;
+ --secondary: #4ecdc4;
+ --dark: #2c3e50;
+ --light: #f7f7f7;
+ }
+
+ * {
+ 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: linear-gradient(135deg, #f6f8f9 0%, #e5ebee 100%);
+ min-height: 100vh;
+ overflow-x: hidden;
+ }
+
+ .hero {
+ text-align: center;
+ padding: 4rem 2rem;
+ background: linear-gradient(45deg, var(--primary), var(--secondary));
+ color: white;
+ }
+
+ .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;
+ opacity: 0.9;
+ }
+
+ .confetti-zone {
+ min-height: 60vh;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ position: relative;
+ }
+
+ .controls {
+ display: flex;
+ gap: 1rem;
+ flex-wrap: wrap;
+ justify-content: center;
+ padding: 2rem;
+ }
+
+ .control-btn {
+ padding: 0.8rem 1.5rem;
+ border: none;
+ border-radius: 25px;
+ background: white;
+ color: var(--dark);
+ font-weight: bold;
+ cursor: pointer;
+ transition: transform 0.2s, box-shadow 0.2s;
+ box-shadow: 0 2px 8px rgba(0,0,0,0.1);
+ }
+
+ .control-btn:hover {
+ transform: translateY(-2px);
+ box-shadow: 0 4px 12px rgba(0,0,0,0.15);
+ }
+
+ .control-btn.active {
+ background: var(--primary);
+ color: white;
+ }
+
+ .instructions {
+ padding: 4rem 2rem;
+ background: white;
+ }
+
+ .instruction-cards {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 2rem;
+ max-width: 1200px;
+ margin: 0 auto;
+ padding: 2rem;
+ }
+
+ .card {
+ background: var(--light);
+ padding: 2rem;
+ border-radius: 15px;
+ box-shadow: 0 4px 6px rgba(0,0,0,0.1);
+ transition: transform 0.3s;
+ }
+
+ .card:hover {
+ transform: translateY(-5px);
+ }
+
+ footer {
+ text-align: center;
+ padding: 2rem;
+ background: var(--dark);
+ color: white;
+ }
+
+ footer nav {
+ margin-top: 1rem;
+ }
+
+ footer a {
+ color: var(--secondary);
+ text-decoration: none;
+ margin: 0 1rem;
+ }
+
+ footer a:hover {
+ text-decoration: underline;
+ }
+
+ @media (max-width: 768px) {
+ .hero h1 {
+ font-size: 2.5rem;
+ }
+
+ .controls {
+ flex-direction: column;
+ align-items: center;
+ }
+
+ .control-btn {
+ width: 100%;
+ max-width: 200px;
+ }
+ }