Changes to party1.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 Party - Interactive Confetti Effects
+ style.css
+ header
+ class hero
+ h1 Confetti Party!
+ p Click anywhere or scroll to celebrate! 🎉
+ main
+ section
+ class confetti-controls
+ button Launch Confetti!
+ id launchButton
+ class primary-button
+ div
+ class intensity-control
+ label Intensity
+ for intensitySlider
+ input
+ id intensitySlider
+ type range
+ min 1
+ max 100
+ value 50
+ section
+ class info-cards
+ div
+ class card
+ h2 How It Works
+ p Move your mouse, click, or scroll to trigger magical confetti explosions!
+ div
+ class card
+ h2 Performance
+ p Built with pure JavaScript for smooth animations and optimal performance.
+ div
+ class card
+ h2 Customize
+ p Adjust the intensity slider to control the confetti density.
+ footer
+ p Made with ❤️ for fun and celebration
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "msg_01PGLmRscVciv6xw6nSbiQzN",
+ "type": "message",
+ "role": "assistant",
+ "model": "claude-3-5-sonnet-20241022",
+ "content": [
+ {
+ "type": "text",
+ "text": "I'll create a confetti website with interactive confetti effects. Given it's about confetti, a fun and playful domain would be:\n\n---domain---\nparty.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://party.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Confetti Party - Interactive Confetti Effects\nstyle.css\nheader\n class hero\n h1 Confetti Party!\n p Click anywhere or scroll to celebrate! 🎉\nmain\n section\n class confetti-controls\n button Launch Confetti!\n id launchButton\n class primary-button\n div\n class intensity-control\n label Intensity\n for intensitySlider\n input\n id intensitySlider\n type range\n min 1\n max 100\n value 50\n section\n class info-cards\n div\n class card\n h2 How It Works\n p Move your mouse, click, or scroll to trigger magical confetti explosions!\n div\n class card\n h2 Performance\n p Built with pure JavaScript for smooth animations and optimal performance.\n div\n class card\n h2 Customize\n p Adjust the intensity slider to control the confetti density.\nfooter\n p Made with ❤️ for fun and celebration\nscript.js\n---style.css---\n:root {\n --primary: #FF3366;\n --secondary: #6C63FF;\n --background: #FAFAFA;\n --text: #2C3E50;\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(--text);\n background: var(--background);\n overflow-x: hidden;\n}\n\n.hero {\n min-height: 60vh;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n padding: 2rem;\n background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);\n color: white;\n}\n\nh1 {\n font-size: 4rem;\n margin-bottom: 1rem;\n animation: float 3s ease-in-out infinite;\n}\n\n@keyframes float {\n 0% { transform: translateY(0px); }\n 50% { transform: translateY(-20px); }\n 100% { transform: translateY(0px); }\n}\n\n.confetti-controls {\n padding: 2rem;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 2rem;\n}\n\n.primary-button {\n padding: 1rem 2rem;\n font-size: 1.2rem;\n border: none;\n border-radius: 50px;\n background: var(--primary);\n color: white;\n cursor: pointer;\n transition: transform 0.2s, box-shadow 0.2s;\n}\n\n.primary-button:hover {\n transform: translateY(-2px);\n box-shadow: 0 5px 15px rgba(0,0,0,0.2);\n}\n\n.intensity-control {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 1rem;\n}\n\ninput[type=\"range\"] {\n width: 200px;\n}\n\n.info-cards {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n padding: 2rem;\n}\n\n.card {\n background: white;\n padding: 2rem;\n border-radius: 15px;\n box-shadow: 0 5px 15px 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: #f5f5f5;\n}\n\n@media (max-width: 768px) {\n h1 {\n font-size: 2.5rem;\n }\n \n .info-cards {\n grid-template-columns: 1fr;\n }\n}\n---script.js---\nclass Confetti {\n constructor() {\n this.particles = [];\n this.intensity = 50;\n this.init();\n }\n\n init() {\n document.getElementById('launchButton').addEventListener('click', () => this.createBurst(window.innerWidth / 2, window.innerHeight / 2));\n document.addEventListener('click', (e) => this.createBurst(e.clientX, e.clientY));\n document.addEventListener('scroll', () => this.createBurst(window.innerWidth / 2, window.innerHeight / 2));\n document.getElementById('intensitySlider').addEventListener('input', (e) => this.intensity = e.target.value);\n \n window.requestAnimationFrame(this.animate.bind(this));\n }\n\n createParticle(x, y) {\n return {\n x,\n y,\n color: `hsl(${Math.random() * 360}, 80%, 60%)`,\n size: Math.random() * 10 + 5,\n speedX: (Math.random() - 0.5) * 15,\n speedY: Math.random() * -15 - 5,\n rotation: Math.random() * 360,\n rotationSpeed: (Math.random() - 0.5) * 10\n };\n }\n\n createBurst(x, y) {\n const particleCount = Math.floor(this.intensity / 2);\n for (let i = 0; i < particleCount; i++) {\n this.particles.push(this.createParticle(x, y));\n }\n }\n\n animate() {\n const canvas = document.createElement('canvas');\n const ctx = canvas.getContext('2d');\n \n canvas.style.position = 'fixed';\n canvas.style.top = '0';\n canvas.style.left = '0';\n canvas.style.pointerEvents = 'none';\n canvas.style.zIndex = '1000';\n \n if (!document.body.contains(canvas)) {\n document.body.appendChild(canvas);\n }\n\n canvas.width = window.innerWidth;\n canvas.height = window.innerHeight;\n\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n\n this.particles.forEach((p, index) => {\n p.x += p.speedX;\n p.y += p.speedY;\n p.speedY += 0.5;\n p.rotation += p.rotationSpeed;\n\n ctx.save();\n ctx.translate(p.x, p.y);\n ctx.rotate((p.rotation * Math.PI) / 180);\n ctx.fillStyle = p.color;\n ctx.fillRect(-p.size / 2, -p.size / 2, p.size, p.size);\n ctx.restore();\n\n if (p.y > window.innerHeight + p.size) {\n this.particles.splice(index, 1);\n }\n });\n\n window.requestAnimationFrame(this.animate.bind(this));\n }\n}\n\ndocument.addEventListener('DOMContentLoaded', () => new Confetti());\n---end---\n\nThis implementation creates a fun, interactive confetti website with the following features:\n\n1. Click-triggered confetti explosions\n2. Scroll-triggered celebrations\n3. Adjustable intensity slider\n4. Smooth animations using Canvas\n5. Responsive design\n6. Beautiful gradient header\n7. Floating animation effects\n8. Info cards with hover effects\n9. Modern, clean UI\n10. Accessible controls and semantic HTML\n\nThe confetti particles are rendered using Canvas for optimal performance, with realistic physics including gravity and rotation. The intensity slider allows users to control how many particles appear in each burst."
+ }
+ ],
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
+ "usage": {
+ "input_tokens": 822,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0,
+ "output_tokens": 2072
+ }
+ }
readme.scroll
Changed around line 1
+ # party1.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 Confetti {
+ constructor() {
+ this.particles = [];
+ this.intensity = 50;
+ this.init();
+ }
+
+ init() {
+ document.getElementById('launchButton').addEventListener('click', () => this.createBurst(window.innerWidth / 2, window.innerHeight / 2));
+ document.addEventListener('click', (e) => this.createBurst(e.clientX, e.clientY));
+ document.addEventListener('scroll', () => this.createBurst(window.innerWidth / 2, window.innerHeight / 2));
+ document.getElementById('intensitySlider').addEventListener('input', (e) => this.intensity = e.target.value);
+
+ window.requestAnimationFrame(this.animate.bind(this));
+ }
+
+ createParticle(x, y) {
+ return {
+ x,
+ y,
+ color: `hsl(${Math.random() * 360}, 80%, 60%)`,
+ size: Math.random() * 10 + 5,
+ speedX: (Math.random() - 0.5) * 15,
+ speedY: Math.random() * -15 - 5,
+ rotation: Math.random() * 360,
+ rotationSpeed: (Math.random() - 0.5) * 10
+ };
+ }
+
+ createBurst(x, y) {
+ const particleCount = Math.floor(this.intensity / 2);
+ for (let i = 0; i < particleCount; i++) {
+ this.particles.push(this.createParticle(x, y));
+ }
+ }
+
+ animate() {
+ const canvas = document.createElement('canvas');
+ const ctx = canvas.getContext('2d');
+
+ canvas.style.position = 'fixed';
+ canvas.style.top = '0';
+ canvas.style.left = '0';
+ canvas.style.pointerEvents = 'none';
+ canvas.style.zIndex = '1000';
+
+ if (!document.body.contains(canvas)) {
+ document.body.appendChild(canvas);
+ }
+
+ canvas.width = window.innerWidth;
+ canvas.height = window.innerHeight;
+
+ ctx.clearRect(0, 0, canvas.width, canvas.height);
+
+ this.particles.forEach((p, index) => {
+ p.x += p.speedX;
+ p.y += p.speedY;
+ p.speedY += 0.5;
+ p.rotation += p.rotationSpeed;
+
+ ctx.save();
+ ctx.translate(p.x, p.y);
+ ctx.rotate((p.rotation * Math.PI) / 180);
+ ctx.fillStyle = p.color;
+ ctx.fillRect(-p.size / 2, -p.size / 2, p.size, p.size);
+ ctx.restore();
+
+ if (p.y > window.innerHeight + p.size) {
+ this.particles.splice(index, 1);
+ }
+ });
+
+ window.requestAnimationFrame(this.animate.bind(this));
+ }
+ }
+
+ document.addEventListener('DOMContentLoaded', () => new Confetti());
style.css
Changed around line 1
+ :root {
+ --primary: #FF3366;
+ --secondary: #6C63FF;
+ --background: #FAFAFA;
+ --text: #2C3E50;
+ }
+
+ * {
+ 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(--text);
+ background: var(--background);
+ overflow-x: hidden;
+ }
+
+ .hero {
+ min-height: 60vh;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ padding: 2rem;
+ background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
+ color: white;
+ }
+
+ h1 {
+ font-size: 4rem;
+ margin-bottom: 1rem;
+ animation: float 3s ease-in-out infinite;
+ }
+
+ @keyframes float {
+ 0% { transform: translateY(0px); }
+ 50% { transform: translateY(-20px); }
+ 100% { transform: translateY(0px); }
+ }
+
+ .confetti-controls {
+ padding: 2rem;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 2rem;
+ }
+
+ .primary-button {
+ padding: 1rem 2rem;
+ font-size: 1.2rem;
+ border: none;
+ border-radius: 50px;
+ background: var(--primary);
+ color: white;
+ cursor: pointer;
+ transition: transform 0.2s, box-shadow 0.2s;
+ }
+
+ .primary-button:hover {
+ transform: translateY(-2px);
+ box-shadow: 0 5px 15px rgba(0,0,0,0.2);
+ }
+
+ .intensity-control {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 1rem;
+ }
+
+ input[type="range"] {
+ width: 200px;
+ }
+
+ .info-cards {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 2rem;
+ padding: 2rem;
+ }
+
+ .card {
+ background: white;
+ padding: 2rem;
+ border-radius: 15px;
+ box-shadow: 0 5px 15px rgba(0,0,0,0.1);
+ transition: transform 0.3s;
+ }
+
+ .card:hover {
+ transform: translateY(-5px);
+ }
+
+ footer {
+ text-align: center;
+ padding: 2rem;
+ background: #f5f5f5;
+ }
+
+ @media (max-width: 768px) {
+ h1 {
+ font-size: 2.5rem;
+ }
+
+ .info-cards {
+ grid-template-columns: 1fr;
+ }
+ }