Changes to flight.scroll.pub

root
root
12 days ago
Initial commit
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://flight.scroll.pub
+ metaTags
+ editButton /edit.html
+ title The Science of Flying - Aerodynamics & Aviation
+ style.css
+ header
+ class hero
+ nav
+ div Flight Science
+ class logo
+ div
+ class nav-links
+ a Principles
+ href #principles
+ a Forces
+ href #forces
+ a Aircraft
+ href #aircraft
+ a Learn More
+ class cta-button
+ href #learn-more
+ div
+ class hero-content
+ h1 The Science of Flying
+ p Discover the fascinating physics and engineering that keeps aircraft in the sky
+ div
+ class hero-buttons
+ a Explore Now
+ class primary-button
+ href #principles
+ a Watch Demo
+ class secondary-button
+ href #demo
+ main
+ section
+ id principles
+ class principles
+ h2 Core Principles of Flight
+ div
+ class principle-grid
+ div
+ class principle-card
+ div 🌬️
+ class principle-icon
+ h3 Bernoulli's Principle
+ p The relationship between pressure and fluid velocity in aerodynamics
+ div
+ class principle-card
+ div ⬆️
+ class principle-icon
+ h3 Lift Generation
+ p How wing design creates the upward force needed for flight
+ div
+ class principle-card
+ div ➡️
+ class principle-icon
+ h3 Thrust & Drag
+ p The opposing forces that determine aircraft speed
+ div
+ class principle-card
+ div 🎮
+ class principle-icon
+ h3 Control Surfaces
+ p How pilots maneuver aircraft through the sky
+ section
+ id forces
+ class forces-section
+ h2 Four Forces of Flight
+ div
+ class forces-diagram
+ div
+ class force lift
+ span Lift
+ div
+ class force weight
+ span Weight
+ div
+ class force thrust
+ span Thrust
+ div
+ class force drag
+ span Drag
+ section
+ id aircraft
+ class aircraft-types
+ h2 Types of Aircraft
+ div
+ class aircraft-grid
+ div
+ class aircraft-card
+ h3 Fixed Wing
+ p Traditional airplanes using static wings for lift
+ div
+ class aircraft-card
+ h3 Rotary Wing
+ p Helicopters and other rotating wing aircraft
+ div
+ class aircraft-card
+ h3 Gliders
+ p Engineless aircraft using natural lift
+ div
+ class aircraft-card
+ h3 Modern UAVs
+ p Drones and autonomous flying vehicles
+ footer
+ div
+ class footer-content
+ div
+ class footer-links
+ a Learn More
+ href #learn-more
+ a Resources
+ href #resources
+ a Contact
+ href #contact
+ p Made with passion for aviation and aerodynamics
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "msg_015Ti2DkAdhk7wyg1eR1scpq",
+ "type": "message",
+ "role": "assistant",
+ "model": "claude-3-5-sonnet-20241022",
+ "content": [
+ {
+ "type": "text",
+ "text": "I'll create a website about the science of flying with the domain \"flight.scroll.pub\". The website will explore aerodynamics, physics of flight, and aviation principles.\n\n---domain---\nflight.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://flight.scroll.pub\nmetaTags\neditButton /edit.html\ntitle The Science of Flying - Aerodynamics & Aviation\nstyle.css\nheader\n class hero\n nav\n div Flight Science\n class logo\n div\n class nav-links\n a Principles\n href #principles\n a Forces\n href #forces\n a Aircraft\n href #aircraft\n a Learn More\n class cta-button\n href #learn-more\n div\n class hero-content\n h1 The Science of Flying\n p Discover the fascinating physics and engineering that keeps aircraft in the sky\n div\n class hero-buttons\n a Explore Now\n class primary-button\n href #principles\n a Watch Demo\n class secondary-button\n href #demo\nmain\n section\n id principles\n class principles\n h2 Core Principles of Flight\n div\n class principle-grid\n div\n class principle-card\n div 🌬️\n class principle-icon\n h3 Bernoulli's Principle\n p The relationship between pressure and fluid velocity in aerodynamics\n div\n class principle-card\n div ⬆️\n class principle-icon\n h3 Lift Generation\n p How wing design creates the upward force needed for flight\n div\n class principle-card\n div ➡️\n class principle-icon\n h3 Thrust & Drag\n p The opposing forces that determine aircraft speed\n div\n class principle-card\n div 🎮\n class principle-icon\n h3 Control Surfaces\n p How pilots maneuver aircraft through the sky\n section\n id forces\n class forces-section\n h2 Four Forces of Flight\n div\n class forces-diagram\n div\n class force lift\n span Lift\n div\n class force weight\n span Weight\n div\n class force thrust\n span Thrust\n div\n class force drag\n span Drag\n section\n id aircraft\n class aircraft-types\n h2 Types of Aircraft\n div\n class aircraft-grid\n div\n class aircraft-card\n h3 Fixed Wing\n p Traditional airplanes using static wings for lift\n div\n class aircraft-card\n h3 Rotary Wing\n p Helicopters and other rotating wing aircraft\n div\n class aircraft-card\n h3 Gliders\n p Engineless aircraft using natural lift\n div\n class aircraft-card\n h3 Modern UAVs\n p Drones and autonomous flying vehicles\nfooter\n div\n class footer-content\n div\n class footer-links\n a Learn More\n href #learn-more\n a Resources\n href #resources\n a Contact\n href #contact\n p Made with passion for aviation and aerodynamics\nscript.js\n---style.css---\n:root {\n --primary-color: #0066cc;\n --secondary-color: #004d99;\n --accent-color: #ff9900;\n --background-color: #f5f8ff;\n --text-color: #333;\n --spacing-unit: 1rem;\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(--text-color);\n background-color: var(--background-color);\n}\n\n.hero {\n background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));\n color: white;\n padding: 2rem var(--spacing-unit);\n min-height: 80vh;\n display: flex;\n flex-direction: column;\n}\n\nnav {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 1rem 0;\n}\n\n.logo {\n font-size: 1.5rem;\n font-weight: bold;\n text-transform: uppercase;\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 transition: color 0.3s ease;\n}\n\n.cta-button {\n background: var(--accent-color);\n padding: 0.5rem 1rem;\n border-radius: 25px;\n}\n\n.hero-content {\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n max-width: 800px;\n margin: 0 auto;\n}\n\n.hero-content h1 {\n font-size: 3.5rem;\n margin-bottom: 1rem;\n animation: fadeInUp 1s ease;\n}\n\n.hero-buttons {\n display: flex;\n gap: 1rem;\n margin-top: 2rem;\n}\n\n.primary-button, .secondary-button {\n padding: 1rem 2rem;\n border-radius: 25px;\n text-decoration: none;\n font-weight: bold;\n transition: transform 0.3s ease;\n}\n\n.primary-button {\n background: var(--accent-color);\n color: white;\n}\n\n.secondary-button {\n background: transparent;\n color: white;\n border: 2px solid white;\n}\n\n.principle-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n padding: 2rem;\n}\n\n.principle-card {\n background: white;\n padding: 2rem;\n border-radius: 10px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n transition: transform 0.3s ease;\n}\n\n.principle-card:hover {\n transform: translateY(-5px);\n}\n\n.forces-diagram {\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-template-rows: 1fr 1fr;\n gap: 2rem;\n padding: 4rem;\n max-width: 600px;\n margin: 0 auto;\n}\n\n.force {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 2rem;\n background: white;\n border-radius: 10px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n font-weight: bold;\n}\n\n@media (max-width: 768px) {\n .nav-links {\n display: none;\n }\n \n .hero-content h1 {\n font-size: 2.5rem;\n }\n \n .principle-grid {\n grid-template-columns: 1fr;\n }\n \n .forces-diagram {\n grid-template-columns: 1fr;\n padding: 2rem;\n }\n}\n\n@keyframes fadeInUp {\n from {\n opacity: 0;\n transform: translateY(20px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\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 // Intersection Observer for fade-in animations\n const observer = new IntersectionObserver((entries) => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n entry.target.classList.add('visible');\n }\n });\n }, {\n threshold: 0.1\n });\n\n document.querySelectorAll('.principle-card, .force, .aircraft-card').forEach((el) => {\n observer.observe(el);\n });\n\n // Interactive forces diagram\n document.querySelectorAll('.force').forEach(force => {\n force.addEventListener('mouseover', () => {\n force.style.transform = 'scale(1.1)';\n });\n force.addEventListener('mouseout', () => {\n force.style.transform = 'scale(1)';\n });\n });\n});\n---end---"
+ }
+ ],
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
+ "usage": {
+ "input_tokens": 820,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0,
+ "output_tokens": 2239
+ }
+ }
readme.scroll
Changed around line 1
+ # flight.scroll.pub
+
+ Prompt: website
+ Agent: claude
+ Model: claude-3-5-sonnet-20241022
+
+ ## User prompt
+ The science of flying
+
+ ## System prompt
+ You are an expert web developer. Create a website based on this request: "The science of flying "
+
+ 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', () => {
+ // 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'
+ });
+ });
+ });
+
+ // Intersection Observer for fade-in animations
+ const observer = new IntersectionObserver((entries) => {
+ entries.forEach(entry => {
+ if (entry.isIntersecting) {
+ entry.target.classList.add('visible');
+ }
+ });
+ }, {
+ threshold: 0.1
+ });
+
+ document.querySelectorAll('.principle-card, .force, .aircraft-card').forEach((el) => {
+ observer.observe(el);
+ });
+
+ // Interactive forces diagram
+ document.querySelectorAll('.force').forEach(force => {
+ force.addEventListener('mouseover', () => {
+ force.style.transform = 'scale(1.1)';
+ });
+ force.addEventListener('mouseout', () => {
+ force.style.transform = 'scale(1)';
+ });
+ });
+ });
style.css
Changed around line 1
+ :root {
+ --primary-color: #0066cc;
+ --secondary-color: #004d99;
+ --accent-color: #ff9900;
+ --background-color: #f5f8ff;
+ --text-color: #333;
+ --spacing-unit: 1rem;
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: 'Segoe UI', system-ui, sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+ background-color: var(--background-color);
+ }
+
+ .hero {
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
+ color: white;
+ padding: 2rem var(--spacing-unit);
+ min-height: 80vh;
+ display: flex;
+ flex-direction: column;
+ }
+
+ nav {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 1rem 0;
+ }
+
+ .logo {
+ font-size: 1.5rem;
+ font-weight: bold;
+ text-transform: uppercase;
+ }
+
+ .nav-links {
+ display: flex;
+ gap: 2rem;
+ }
+
+ .nav-links a {
+ color: white;
+ text-decoration: none;
+ transition: color 0.3s ease;
+ }
+
+ .cta-button {
+ background: var(--accent-color);
+ padding: 0.5rem 1rem;
+ border-radius: 25px;
+ }
+
+ .hero-content {
+ flex-grow: 1;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ max-width: 800px;
+ margin: 0 auto;
+ }
+
+ .hero-content h1 {
+ font-size: 3.5rem;
+ margin-bottom: 1rem;
+ animation: fadeInUp 1s ease;
+ }
+
+ .hero-buttons {
+ display: flex;
+ gap: 1rem;
+ margin-top: 2rem;
+ }
+
+ .primary-button, .secondary-button {
+ padding: 1rem 2rem;
+ border-radius: 25px;
+ text-decoration: none;
+ font-weight: bold;
+ transition: transform 0.3s ease;
+ }
+
+ .primary-button {
+ background: var(--accent-color);
+ color: white;
+ }
+
+ .secondary-button {
+ background: transparent;
+ color: white;
+ border: 2px solid white;
+ }
+
+ .principle-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 2rem;
+ padding: 2rem;
+ }
+
+ .principle-card {
+ background: white;
+ padding: 2rem;
+ border-radius: 10px;
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+ transition: transform 0.3s ease;
+ }
+
+ .principle-card:hover {
+ transform: translateY(-5px);
+ }
+
+ .forces-diagram {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ grid-template-rows: 1fr 1fr;
+ gap: 2rem;
+ padding: 4rem;
+ max-width: 600px;
+ margin: 0 auto;
+ }
+
+ .force {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: 2rem;
+ background: white;
+ border-radius: 10px;
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+ font-weight: bold;
+ }
+
+ @media (max-width: 768px) {
+ .nav-links {
+ display: none;
+ }
+
+ .hero-content h1 {
+ font-size: 2.5rem;
+ }
+
+ .principle-grid {
+ grid-template-columns: 1fr;
+ }
+
+ .forces-diagram {
+ grid-template-columns: 1fr;
+ padding: 2rem;
+ }
+ }
+
+ @keyframes fadeInUp {
+ from {
+ opacity: 0;
+ transform: translateY(20px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+ }