Changes to cosmic.scroll.pub

root
root
4 days ago
Initial commit
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://cosmic.scroll.pub
+ metaTags
+ editButton /edit.html
+ title Cosmic Nebula Experience
+ style.css
+ header
+ class hero
+ div
+ class nebula-container
+ div
+ class nebula
+ main
+ section
+ class content
+ h1 Journey Through the Cosmos
+ p Explore the infinite beauty of space
+ button Discover More
+ class cta-button
+ onclick toggleNebula()
+ footer
+ nav
+ class footer-nav
+ a Home
+ href #
+ a About
+ href #about
+ a Contact
+ href #contact
+ p Made with love for the cosmos
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "msg_013qE2XYKxZskoomSLYSpsF4",
+ "type": "message",
+ "role": "assistant",
+ "model": "claude-3-5-sonnet-20241022",
+ "content": [
+ {
+ "type": "text",
+ "text": "I'll help create a cosmic-themed landing page with a nebula animation. For the domain, I suggest:\n\n---domain---\ncosmic.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://cosmic.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Cosmic Nebula Experience\nstyle.css\nheader\n class hero\n div\n class nebula-container\n div\n class nebula\nmain\n section\n class content\n h1 Journey Through the Cosmos\n p Explore the infinite beauty of space\n button Discover More\n class cta-button\n onclick toggleNebula()\nfooter\n nav\n class footer-nav\n a Home\n href #\n a About\n href #about\n a Contact\n href #contact\n p Made with love for the cosmos\nscript.js\n---style.css---\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\n:root {\n --primary-color: #1a1a2e;\n --accent-color: #e94560;\n --text-color: #fff;\n}\n\nbody {\n font-family: 'Arial', sans-serif;\n background: var(--primary-color);\n color: var(--text-color);\n overflow-x: hidden;\n}\n\n.hero {\n height: 100vh;\n position: relative;\n overflow: hidden;\n}\n\n.nebula-container {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n\n.nebula {\n position: absolute;\n width: 100%;\n height: 100%;\n background: \n radial-gradient(circle at center,\n rgba(63, 94, 251, 0.2) 0%,\n rgba(252, 70, 107, 0.2) 100%);\n filter: blur(80px);\n animation: nebula-animation 20s infinite;\n}\n\n.content {\n position: relative;\n z-index: 1;\n text-align: center;\n padding-top: 40vh;\n}\n\nh1 {\n font-size: 4rem;\n margin-bottom: 1rem;\n text-shadow: 0 0 10px rgba(255,255,255,0.5);\n}\n\np {\n font-size: 1.5rem;\n margin-bottom: 2rem;\n}\n\n.cta-button {\n padding: 1rem 2rem;\n font-size: 1.2rem;\n background: transparent;\n border: 2px solid var(--text-color);\n color: var(--text-color);\n cursor: pointer;\n transition: all 0.3s ease;\n border-radius: 30px;\n}\n\n.cta-button:hover {\n background: var(--text-color);\n color: var(--primary-color);\n}\n\nfooter {\n position: fixed;\n bottom: 0;\n width: 100%;\n padding: 1rem;\n text-align: center;\n background: rgba(0,0,0,0.3);\n backdrop-filter: blur(10px);\n}\n\n.footer-nav {\n margin-bottom: 1rem;\n}\n\n.footer-nav a {\n color: var(--text-color);\n text-decoration: none;\n margin: 0 1rem;\n transition: color 0.3s ease;\n}\n\n.footer-nav a:hover {\n color: var(--accent-color);\n}\n\n@keyframes nebula-animation {\n 0% {\n transform: scale(1);\n background-position: 0% 0%;\n }\n 50% {\n transform: scale(1.2);\n background-position: 100% 100%;\n }\n 100% {\n transform: scale(1);\n background-position: 0% 0%;\n }\n}\n\n@media (max-width: 768px) {\n h1 {\n font-size: 2.5rem;\n }\n \n p {\n font-size: 1.2rem;\n }\n \n .cta-button {\n padding: 0.8rem 1.6rem;\n font-size: 1rem;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n createStars();\n initializeParallax();\n});\n\nfunction createStars() {\n const nebula = document.querySelector('.nebula-container');\n for (let i = 0; i < 200; i++) {\n const star = document.createElement('div');\n star.className = 'star';\n star.style.cssText = `\n position: absolute;\n width: ${Math.random() * 3}px;\n height: ${Math.random() * 3}px;\n background: white;\n border-radius: 50%;\n left: ${Math.random() * 100}%;\n top: ${Math.random() * 100}%;\n opacity: ${Math.random()};\n animation: twinkle ${Math.random() * 4 + 2}s infinite;\n `;\n nebula.appendChild(star);\n }\n}\n\nfunction initializeParallax() {\n document.addEventListener('mousemove', (e) => {\n const nebula = document.querySelector('.nebula');\n const x = e.clientX / window.innerWidth;\n const y = e.clientY / window.innerHeight;\n \n nebula.style.transform = `translate(${x * 20}px, ${y * 20}px)`;\n });\n}\n\nfunction toggleNebula() {\n const nebula = document.querySelector('.nebula');\n nebula.style.animation = 'none';\n nebula.offsetHeight;\n nebula.style.animation = 'nebula-animation 20s infinite';\n}\n---end---\n\nThis website features:\n1. A beautiful animated nebula background using CSS gradients and filters\n2. Parallax effect on mouse movement\n3. Dynamic star field generation\n4. Responsive design for all screen sizes\n5. Smooth animations and transitions\n6. Interactive elements with hover effects\n7. Clean, semantic HTML structure\n8. Accessible navigation\n9. Performance-optimized animations\n10. Modern glass-morphism effects in the footer\n\nThe nebula effect is created using CSS gradients and animations, while the stars are dynamically generated using JavaScript. The parallax effect adds depth to the experience, and all animations are optimized for performance."
+ }
+ ],
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
+ "usage": {
+ "input_tokens": 831,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0,
+ "output_tokens": 1633
+ }
+ }
readme.scroll
Changed around line 1
+ # cosmic.scroll.pub
+
+ Prompt: website
+ Agent: claude
+ Model: claude-3-5-sonnet-20241022
+
+ ## User prompt
+ build a website that has a landing page of a nebula with some animation
+
+ ## System prompt
+ You are an expert web developer. Create a website based on this request: "build a website that has a landing page of a nebula with some animation"
+
+ 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', () => {
+ createStars();
+ initializeParallax();
+ });
+
+ function createStars() {
+ const nebula = document.querySelector('.nebula-container');
+ for (let i = 0; i < 200; i++) {
+ const star = document.createElement('div');
+ star.className = 'star';
+ star.style.cssText = `
+ position: absolute;
+ width: ${Math.random() * 3}px;
+ height: ${Math.random() * 3}px;
+ background: white;
+ border-radius: 50%;
+ left: ${Math.random() * 100}%;
+ top: ${Math.random() * 100}%;
+ opacity: ${Math.random()};
+ animation: twinkle ${Math.random() * 4 + 2}s infinite;
+ `;
+ nebula.appendChild(star);
+ }
+ }
+
+ function initializeParallax() {
+ document.addEventListener('mousemove', (e) => {
+ const nebula = document.querySelector('.nebula');
+ const x = e.clientX / window.innerWidth;
+ const y = e.clientY / window.innerHeight;
+
+ nebula.style.transform = `translate(${x * 20}px, ${y * 20}px)`;
+ });
+ }
+
+ function toggleNebula() {
+ const nebula = document.querySelector('.nebula');
+ nebula.style.animation = 'none';
+ nebula.offsetHeight;
+ nebula.style.animation = 'nebula-animation 20s infinite';
+ }
style.css
Changed around line 1
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ :root {
+ --primary-color: #1a1a2e;
+ --accent-color: #e94560;
+ --text-color: #fff;
+ }
+
+ body {
+ font-family: 'Arial', sans-serif;
+ background: var(--primary-color);
+ color: var(--text-color);
+ overflow-x: hidden;
+ }
+
+ .hero {
+ height: 100vh;
+ position: relative;
+ overflow: hidden;
+ }
+
+ .nebula-container {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ }
+
+ .nebula {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ background:
+ radial-gradient(circle at center,
+ rgba(63, 94, 251, 0.2) 0%,
+ rgba(252, 70, 107, 0.2) 100%);
+ filter: blur(80px);
+ animation: nebula-animation 20s infinite;
+ }
+
+ .content {
+ position: relative;
+ z-index: 1;
+ text-align: center;
+ padding-top: 40vh;
+ }
+
+ h1 {
+ font-size: 4rem;
+ margin-bottom: 1rem;
+ text-shadow: 0 0 10px rgba(255,255,255,0.5);
+ }
+
+ p {
+ font-size: 1.5rem;
+ margin-bottom: 2rem;
+ }
+
+ .cta-button {
+ padding: 1rem 2rem;
+ font-size: 1.2rem;
+ background: transparent;
+ border: 2px solid var(--text-color);
+ color: var(--text-color);
+ cursor: pointer;
+ transition: all 0.3s ease;
+ border-radius: 30px;
+ }
+
+ .cta-button:hover {
+ background: var(--text-color);
+ color: var(--primary-color);
+ }
+
+ footer {
+ position: fixed;
+ bottom: 0;
+ width: 100%;
+ padding: 1rem;
+ text-align: center;
+ background: rgba(0,0,0,0.3);
+ backdrop-filter: blur(10px);
+ }
+
+ .footer-nav {
+ margin-bottom: 1rem;
+ }
+
+ .footer-nav a {
+ color: var(--text-color);
+ text-decoration: none;
+ margin: 0 1rem;
+ transition: color 0.3s ease;
+ }
+
+ .footer-nav a:hover {
+ color: var(--accent-color);
+ }
+
+ @keyframes nebula-animation {
+ 0% {
+ transform: scale(1);
+ background-position: 0% 0%;
+ }
+ 50% {
+ transform: scale(1.2);
+ background-position: 100% 100%;
+ }
+ 100% {
+ transform: scale(1);
+ background-position: 0% 0%;
+ }
+ }
+
+ @media (max-width: 768px) {
+ h1 {
+ font-size: 2.5rem;
+ }
+
+ p {
+ font-size: 1.2rem;
+ }
+
+ .cta-button {
+ padding: 0.8rem 1.6rem;
+ font-size: 1rem;
+ }
+ }