A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.
JavaScript claude-code-pluginclaude-code-skillscode-appsgithub-copilot-pluginpower-appspower-pagespower-platform
[Pages] Add live scaffold status and HTML plan to create-site (#118)
Priyanshu Agrawald0e883720b94
diff --git a/plugins/power-pages/scripts/launch-playwright-mcp.js b/plugins/power-pages/scripts/launch-playwright-mcp.jsindex 403e626ce..dd46c29c6 100644--- a/plugins/power-pages/scripts/launch-playwright-mcp.js+++ b/plugins/power-pages/scripts/launch-playwright-mcp.js@@ -6,12 +6,31 @@// Self-contained — no external dependencies required.const { spawn } = require('child_process');+const path = require('path');const { detectBrowser } = require('./lib/detect-browser');-const browser = detectBrowser();-const child = spawn('npx', ['@playwright/mcp@latest', '--browser', browser, '--viewport-size', '1024,768'], {- stdio: 'inherit',- shell: true,-});+function buildMcpArgs(browser) {+ return [+ '@playwright/mcp@latest',+ '--browser',+ browser,+ '--config',+ path.join(__dirname, 'playwright-mcp-fullscreen.config.json'),+ ];+}-child.on('exit', (code) => process.exit(code || 0));+function launch({ browser = detectBrowser(), spawnFn = spawn, onExit = (code) => process.exit(code || 0) } = {}) {+ const child = spawnFn('npx', buildMcpArgs(browser), {+ stdio: 'inherit',+ shell: true,+ });++ child.on('exit', onExit);+ return child;+}++if (require.main === module) {+ launch();+}++module.exports = { buildMcpArgs, launch };diff --git a/plugins/power-pages/scripts/lib/render-template.js b/plugins/power-pages/scripts/lib/render-template.jsindex 520d908e6..05d393d85 100644--- a/plugins/power-pages/scripts/lib/render-template.js+++ b/plugins/power-pages/scripts/lib/render-template.js@@ -17,8 +17,9 @@ const path = require('path');* @param {string} [options.dataPath] - Absolute path to a JSON data file. Ignored if dataObject is provided.* @param {Object} [options.dataObject] - Data object passed directly. If provided, takes precedence over dataPath.* @param {string[]} options.requiredKeys - Keys that must be present in the data+ * @param {boolean} [options.escapeStringValues=false] - Escape string values for HTML text contexts*/-function renderTemplate({ templatePath, outputPath, dataPath, dataObject, requiredKeys }) {+function renderTemplate({ templatePath, outputPath, dataPath, dataObject, requiredKeys, escapeStringValues = false }) {// Validate inputs existif (!fs.existsSync(templatePath)) {console.error(`Template not found: ${templatePath}`);@@ -44,11 +45,17 @@ function renderTemplate({ templatePath, outputPath, dataPath, dataObject, requirprocess.exit(1);}- // Replace all __KEY__ placeholders with corresponding values from the data object+ // Replace all __KEY__ placeholders with corresponding values from the data object.+ // For non-string values (arrays/objects serialized to JSON), escape `<` as `\u003c`+ // so a literal `</script>` inside string data cannot close a containing <script> tag.+ // Templates that place string placeholders in HTML text contexts can opt in to+ // string escaping with escapeStringValues.let result = template;for (const [key, value] of Object.entries(data)) {const placeholder = `__${key}__`;- const replacement = typeof value === 'string' ? value : JSON.stringify(value);+ const replacement = typeof value === 'string'+ ? (escapeStringValues ? escapeHtml(value) : value)+ : JSON.stringify(value).replace(/</g, '\\u003c');result = result.split(placeholder).join(replacement);}@@ -93,6 +100,13 @@ function renderTemplate({ templatePath, outputPath, dataPath, dataObject, requirconsole.log(JSON.stringify({ status: 'ok', output: outputPath }));}+function escapeHtml(value) {+ return value+ .replace(/&/g, '&')+ .replace(/</g, '<')+ .replace(/>/g, '>');+}+function parseArgs(argv) {const args = {};for (let i = 2; i < argv.length; i++) {diff --git a/plugins/power-pages/scripts/playwright-mcp-fullscreen.config.json b/plugins/power-pages/scripts/playwright-mcp-fullscreen.config.jsonnew file mode 100644index 000000000..ae024b309--- /dev/null+++ b/plugins/power-pages/scripts/playwright-mcp-fullscreen.config.json@@ -0,0 +1,13 @@+{+ "browser": {+ "launchOptions": {+ "args": [+ "--start-maximized",+ "--start-fullscreen"+ ]+ },+ "contextOptions": {+ "viewport": null+ }+ }+}diff --git a/plugins/power-pages/scripts/render-createsite-plan.js b/plugins/power-pages/scripts/render-createsite-plan.jsnew file mode 100644index 000000000..e74ed283c--- /dev/null+++ b/plugins/power-pages/scripts/render-createsite-plan.js@@ -0,0 +1,102 @@+#!/usr/bin/env node+/**+ * render-createsite-plan.js — Renders the create-site implementation plan HTML.+ *+ * Usage (inline JSON):+ * node render-createsite-plan.js --output <path> --data-inline '<json>'+ *+ * Usage (file-based):+ * node render-createsite-plan.js --output <path> --data <json-file>+ *+ * Required keys in the data:+ * SITE_NAME, PLAN_TITLE, FRAMEWORK, AESTHETIC, MOOD, SUMMARY,+ * TYPOGRAPHY_DATA, PALETTE_DATA, MOTION_DATA, BACKGROUNDS_DATA,+ * PAGES_DATA, COMPONENTS_DATA, ROUTES_DATA, REVIEW_DATA, DEPLOYMENT_DATA+ */++const path = require('path');+const fs = require('fs');+const { renderTemplate, parseArgs } = require('./lib/render-template');++const args = parseArgs(process.argv);++if (!args.output || (!args['data-inline'] && !args.data)) {+ console.error(+ 'Usage: node render-createsite-plan.js --output <path> --data-inline \'<json>\'\n' ++ ' node render-createsite-plan.js --output <path> --data <json-file>'+ );+ process.exit(1);+}++const templatePath = path.join(+ __dirname,+ '..',+ 'skills',+ 'create-site',+ 'assets',+ 'create-site-plan.html'+);++const requiredKeys = [+ 'SITE_NAME',+ 'PLAN_TITLE',+ 'FRAMEWORK',+ 'AESTHETIC',+ 'MOOD',+ 'SUMMARY',+ 'TYPOGRAPHY_DATA',+ 'PALETTE_DATA',+ 'MOTION_DATA',+ 'BACKGROUNDS_DATA',+ 'PAGES_DATA',+ 'COMPONENTS_DATA',+ 'ROUTES_DATA',+ 'REVIEW_DATA',+ 'DEPLOYMENT_DATA',+];++function withDerivedTemplateData(dataObject) {+ return {+ ...dataObject,+ SUMMARY_DATA: { text: String(dataObject.SUMMARY ?? '') },+ };+}++if (args['data-inline']) {+ let dataObject;+ try {+ dataObject = JSON.parse(args['data-inline']);+ } catch {+ console.error('Error: --data-inline value is not valid JSON');+ process.exit(1);+ }+ renderTemplate({+ templatePath,+ outputPath: path.resolve(args.output),+ dataObject: withDerivedTemplateData(dataObject),+ requiredKeys,+ escapeStringValues: true,+ });+} else {+ const dataPath = path.resolve(args.data);+ if (!fs.existsSync(dataPath)) {+ console.error(`Data file not found: ${dataPath}`);+ process.exit(1);+ }++ let dataObject;+ try {+ dataObject = JSON.parse(fs.readFileSync(dataPath, 'utf8'));+ } catch {+ console.error('Error: --data file is not valid JSON');+ process.exit(1);+ }++ renderTemplate({+ templatePath,+ outputPath: path.resolve(args.output),+ dataObject: withDerivedTemplateData(dataObject),+ requiredKeys,+ escapeStringValues: true,+ });+}diff --git a/plugins/power-pages/scripts/tests/create-site-scaffold-loader.test.js b/plugins/power-pages/scripts/tests/create-site-scaffold-loader.test.jsnew file mode 100644index 000000000..ffd5c05d6--- /dev/null+++ b/plugins/power-pages/scripts/tests/create-site-scaffold-loader.test.js@@ -0,0 +1,27 @@+const assert = require('node:assert/strict');+const fs = require('node:fs');+const path = require('node:path');+const test = require('node:test');++const createSiteRoot = path.join(__dirname, '..', '..', 'skills', 'create-site', 'assets');+const loaderTemplates = [+ 'react/src/pages/Home.tsx',+ 'vue/src/pages/Home.vue',+ 'angular/src/app/pages/home.component.ts',+ 'astro/src/pages/index.astro',+];++test('create-site loader keeps awaiting-input banner persistent and dismissible across templates', () => {+ for (const template of loaderTemplates) {+ const content = fs.readFileSync(path.join(createSiteRoot, template), 'utf8');++ assert.match(content, /id="inputBannerClose"/, template);+ assert.match(content, /input-banner-close/, template);+ assert.match(content, /aria-label="Dismiss notification"/, template);+ assert.match(content, /dismissedPrompt/, template);+ assert.match(content, /addEventListener\('click', dismissInputBanner\)/, template);+ assert.match(content, /if \(banner\) banner\.hidden = !awaiting \|\| dismissedPrompt === prompt/, template);+ assert.match(content, /if \(!awaiting\) dismissedPrompt = null/, template);+ assert.match(content, /if \(!lastAwaiting\)/, template);+ }+});diff --git a/plugins/power-pages/scripts/tests/launch-playwright-mcp.test.js b/plugins/power-pages/scripts/tests/launch-playwright-mcp.test.jsnew file mode 100644index 000000000..c67b15ddb--- /dev/null+++ b/plugins/power-pages/scripts/tests/launch-playwright-mcp.test.js@@ -0,0 +1,51 @@+const assert = require('node:assert/strict');+const fs = require('node:fs');+const path = require('node:path');+const test = require('node:test');+const { EventEmitter } = require('node:events');++const {+ buildMcpArgs,+ launch,+} = require('../launch-playwright-mcp');++test('buildMcpArgs launches Playwright MCP with fullscreen config', () => {+ const args = buildMcpArgs('chrome');+ const configIndex = args.indexOf('--config');++ assert.deepEqual(args.slice(0, 3), ['@playwright/mcp@latest', '--browser', 'chrome']);+ assert.equal(args.includes('--viewport-size'), false);+ assert.notEqual(configIndex, -1);+ assert.equal(path.basename(args[configIndex + 1]), 'playwright-mcp-fullscreen.config.json');+});++test('fullscreen config maximizes the browser and uses the real viewport size', () => {+ const configPath = path.join(__dirname, '..', 'playwright-mcp-fullscreen.config.json');+ const config = JSON.parse(fs.readFileSync(configPath, 'utf8'));++ assert.deepEqual(config.browser.launchOptions.args, ['--start-maximized', '--start-fullscreen']);+ assert.equal(config.browser.contextOptions.viewport, null);+});++test('launch wires spawn and process exit handling', () => {+ let spawnCall;+ const child = new EventEmitter();++ launch({+ browser: 'msedge',+ spawnFn(command, args, options) {+ spawnCall = { command, args, options };+ return child;+ },+ onExit(code) {+ spawnCall.exitCode = code;+ },+ });++ assert.equal(spawnCall.command, 'npx');+ assert.deepEqual(spawnCall.args.slice(0, 3), ['@playwright/mcp@latest', '--browser', 'msedge']);+ assert.deepEqual(spawnCall.options, { stdio: 'inherit', shell: true });++ child.emit('exit', 7);+ assert.equal(spawnCall.exitCode, 7);+});diff --git a/plugins/power-pages/scripts/tests/render-createsite-plan.test.js b/plugins/power-pages/scripts/tests/render-createsite-plan.test.jsnew file mode 100644index 000000000..856f206d5--- /dev/null+++ b/plugins/power-pages/scripts/tests/render-createsite-plan.test.js@@ -0,0 +1,263 @@+const test = require('node:test');+const assert = require('node:assert/strict');+const fs = require('node:fs');+const os = require('node:os');+const path = require('node:path');+const { spawnSync } = require('node:child_process');++const scriptPath = path.join(__dirname, '..', 'render-createsite-plan.js');++const SAMPLE_DATA = {+ SITE_NAME: 'Contoso Portal',+ PLAN_TITLE: 'Implementation Plan',+ FRAMEWORK: 'React',+ AESTHETIC: 'Minimal & Clean',+ MOOD: 'Professional & Trustworthy',+ SUMMARY: 'An internal portal for Contoso consultants with directory, announcements, and docs.',+ TYPOGRAPHY_DATA: {+ primary: { name: 'DM Sans', sample: 'Aa Bb Cc', reason: 'Neutral sans for body and UI' },+ secondary: { name: 'Space Grotesk', sample: 'Headings', reason: 'Geometric display for headings' },+ },+ PALETTE_DATA: [+ { var: '--color-primary', hex: '#1E3A5F', description: 'Primary brand' },+ { var: '--color-secondary', hex: '#4A90A4', description: 'Accent' },+ { var: '--color-bg', hex: '#F7F8FA', description: 'Background' },+ ],+ MOTION_DATA: [+ { label: 'Page transitions', description: 'Fade-in 300ms on route change' },+ ],+ BACKGROUNDS_DATA: [+ { label: 'Hero section', description: 'Gradient overlay on Unsplash photo' },+ ],+ PAGES_DATA: [+ {+ name: 'Home',+ route: '/',+ description: 'Landing page for the portal',+ content: ['Hero section', 'Quick links', 'Recent announcements'],+ components: ['Navbar', 'Hero', 'QuickLinks'],+ },+ {+ name: 'Directory',+ route: '/directory',+ description: 'Searchable consultant directory',+ content: ['Search bar', 'Consultant cards'],+ components: ['Navbar', 'ConsultantCard'],+ },+ ],+ COMPONENTS_DATA: [+ { name: 'Navbar', purpose: 'Top navigation', usedBy: ['Home', 'Directory'] },+ { name: 'Hero', purpose: 'Landing hero section', usedBy: ['Home'] },+ ],+ ROUTES_DATA: [+ { path: '/', page: 'Home' },+ { path: '/directory', page: 'Directory' },+ ],+ REVIEW_DATA: [+ 'All pages load without console errors',+ 'Navigation links work and highlight the active page',+ ],+ DEPLOYMENT_DATA: [+ { title: 'Deploy now to Power Pages', description: 'Runs /deploy-site to publish.', recommended: true },+ { title: 'Skip for now', description: 'Continue locally, deploy later.' },+ ],+};++test('render-createsite-plan renders HTML from --data file', () => {+ const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'createsite-plan-'));+ const dataPath = path.join(tempDir, 'data.json');+ const outputPath = path.join(tempDir, 'plan.html');++ fs.writeFileSync(dataPath, JSON.stringify(SAMPLE_DATA, null, 2), 'utf8');++ const result = spawnSync(process.execPath, [scriptPath, '--output', outputPath, '--data', dataPath], {+ encoding: 'utf8',+ });++ assert.equal(result.status, 0, result.stderr || result.stdout);+ assert.ok(fs.existsSync(outputPath));++ const html = fs.readFileSync(outputPath, 'utf8');+ assert.match(html, /Contoso Portal/);+ assert.match(html, /Implementation Plan/);+ assert.match(html, /React/);+ assert.match(html, /Minimal & Clean|Minimal & Clean/);+ assert.match(html, /DM Sans/);+ assert.match(html, /#1E3A5F/);+ assert.match(html, /Directory/);+ assert.match(html, /Navbar/);+ assert.match(html, /Deploy now to Power Pages/);+ assert.match(html, /<img class="logo" src="\.\/power-pages-icon\.png" alt="Power Pages" \/>/);++ const iconPath = path.join(tempDir, 'power-pages-icon.png');+ const sourceIcon = path.join(+ __dirname, '..', '..', 'skills', 'create-site', 'assets', 'shared', 'power-pages-icon.png'+ );+ assert.deepEqual(fs.readFileSync(iconPath), fs.readFileSync(sourceIcon), 'icon bytes should match shared asset');+});++test('render-createsite-plan renders HTML from --data-inline JSON', () => {+ const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'createsite-plan-'));+ const outputPath = path.join(tempDir, 'plan-inline.html');++ const result = spawnSync(+ process.execPath,+ [scriptPath, '--output', outputPath, '--data-inline', JSON.stringify(SAMPLE_DATA)],+ { encoding: 'utf8' }+ );++ assert.equal(result.status, 0, result.stderr || result.stdout);+ assert.ok(fs.existsSync(outputPath));++ const html = fs.readFileSync(outputPath, 'utf8');+ assert.match(html, /Contoso Portal/);+ assert.match(html, /Space Grotesk/);+});++test('render-createsite-plan escapes string placeholders used in HTML text contexts', () => {+ const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'createsite-plan-'));+ const outputPath = path.join(tempDir, 'plan-strings.html');+ const unsafe = {+ ...SAMPLE_DATA,+ SITE_NAME: 'Contoso </title><script>window.__titlePwned=1</script>',+ PLAN_TITLE: 'Plan <b>bold</b>',+ FRAMEWORK: 'React <script>window.__frameworkPwned=1</script>',+ AESTHETIC: 'Minimal & Clean <img src=x>',+ MOOD: 'Professional > Casual',+ };++ const result = spawnSync(+ process.execPath,+ [scriptPath, '--output', outputPath, '--data-inline', JSON.stringify(unsafe)],+ { encoding: 'utf8' }+ );++ assert.equal(result.status, 0, result.stderr || result.stdout);+ const html = fs.readFileSync(outputPath, 'utf8');+ assert.doesNotMatch(html, /<script>window\.__titlePwned=1<\/script>/);+ assert.doesNotMatch(html, /<script>window\.__frameworkPwned=1<\/script>/);+ assert.match(html, /Contoso <\/title><script>window\.__titlePwned=1<\/script>/);+ assert.match(html, /Plan <b>bold<\/b>/);+ assert.match(html, /Minimal & Clean <img src=x>/);+ assert.match(html, /Professional > Casual/);+});++test('render-createsite-plan fails with no arguments', () => {+ const result = spawnSync(process.execPath, [scriptPath], { encoding: 'utf8' });+ assert.notEqual(result.status, 0);+ assert.match(result.stderr, /Usage:/);+});++test('render-createsite-plan fails with invalid --data-inline JSON', () => {+ const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'createsite-plan-'));+ const outputPath = path.join(tempDir, 'plan.html');++ const result = spawnSync(+ process.execPath,+ [scriptPath, '--output', outputPath, '--data-inline', '{bad json}'],+ { encoding: 'utf8' }+ );++ assert.equal(result.status, 1);+ assert.match(result.stderr, /not valid JSON/);+});++test('render-createsite-plan fails with invalid --data file JSON', () => {+ const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'createsite-plan-'));+ const dataPath = path.join(tempDir, 'bad-data.json');+ const outputPath = path.join(tempDir, 'plan.html');++ fs.writeFileSync(dataPath, '{bad json}', 'utf8');++ const result = spawnSync(+ process.execPath,+ [scriptPath, '--output', outputPath, '--data', dataPath],+ { encoding: 'utf8' }+ );++ assert.equal(result.status, 1);+ assert.match(result.stderr, /--data file is not valid JSON/);+ assert.equal(fs.existsSync(outputPath), false);+});++test('render-createsite-plan fails when required keys are missing', () => {+ const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'createsite-plan-'));+ const outputPath = path.join(tempDir, 'plan.html');++ const incomplete = { ...SAMPLE_DATA };+ delete incomplete.PAGES_DATA;+ delete incomplete.ROUTES_DATA;++ const result = spawnSync(+ process.execPath,+ [scriptPath, '--output', outputPath, '--data-inline', JSON.stringify(incomplete)],+ { encoding: 'utf8' }+ );++ assert.equal(result.status, 1);+ assert.match(result.stderr, /Missing required keys/);+ assert.match(result.stderr, /PAGES_DATA/);+ assert.match(result.stderr, /ROUTES_DATA/);+});++test('render-createsite-plan escapes </script> and < inside JSON data to prevent HTML injection', () => {+ const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'createsite-plan-'));+ const outputPath = path.join(tempDir, 'plan-xss.html');++ const malicious = {+ ...SAMPLE_DATA,+ SUMMARY: 'Summary with </script><script>window.__summaryPwned=1;</script> and <strong>markup</strong>.',+ PAGES_DATA: [+ {+ name: '</script><script>window.__pwned=1;</script>',+ route: '/evil',+ description: '<img src=x onerror=alert(1)>',+ content: ['line with </script> closing tag'],+ components: ['OK'],+ },+ ],+ };++ const result = spawnSync(+ process.execPath,+ [scriptPath, '--output', outputPath, '--data-inline', JSON.stringify(malicious)],+ { encoding: 'utf8' }+ );+ assert.equal(result.status, 0, result.stderr || result.stdout);++ const html = fs.readFileSync(outputPath, 'utf8');+ // Raw </script> must NOT appear inside any JSON data blob — it would close the script tag.+ // The escaped form </script> is safe: JSON.parse decodes it back to the original string at runtime.+ assert.ok(+ !/<\/script>[^<]*window\.__pwned/i.test(html),+ 'rendered HTML leaks a literal </script> inside injected data'+ );+ assert.ok(+ !html.includes('</script><script>window.__summaryPwned=1;</script>'),+ 'rendered HTML leaks a literal </script> from SUMMARY'+ );+ assert.match(html, /"text":"Summary with \\u003c\/script>\\u003cscript>window\.__summaryPwned=1;\\u003c\/script>/);+ assert.match(html, /\\u003c\/script>/);+});++test('render-createsite-plan refuses to overwrite existing file', () => {+ const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'createsite-plan-'));+ const dataPath = path.join(tempDir, 'data.json');+ const outputPath = path.join(tempDir, 'plan.html');++ fs.writeFileSync(dataPath, JSON.stringify(SAMPLE_DATA, null, 2), 'utf8');++ const result1 = spawnSync(process.execPath, [scriptPath, '--output', outputPath, '--data', dataPath], {+ encoding: 'utf8',+ });+ assert.equal(result1.status, 0, result1.stderr || result1.stdout);++ const original = fs.readFileSync(outputPath, 'utf8');++ const result2 = spawnSync(process.execPath, [scriptPath, '--output', outputPath, '--data', dataPath], {+ encoding: 'utf8',+ });+ assert.equal(result2.status, 1);+ assert.match(result2.stderr, /Output file already exists/);+ assert.equal(fs.readFileSync(outputPath, 'utf8'), original);+});diff --git a/plugins/power-pages/skills/create-site/SKILL.md b/plugins/power-pages/skills/create-site/SKILL.mdindex ee50f95c6..fe88aa8f3 100644--- a/plugins/power-pages/skills/create-site/SKILL.md+++ b/plugins/power-pages/skills/create-site/SKILL.md@@ -23,6 +23,7 @@ Guide the user through creating a complete, production-quality Power Pages code- **Use TaskCreate/TaskUpdate**: Track all progress throughout all phases — create the todo list upfront with all phases before starting any work.- **Scaffold early, design with intention**: Get the dev server running immediately after discovery so the user has something to look at. Then plan the design and features while the scaffold is live — apply the chosen aesthetic during implementation.- **Live preview feedback loop**: The dev server MUST be running before any customization begins. Browse the site via Playwright (`browser_navigate` + `browser_snapshot`) to verify every significant change. Do NOT take screenshots — only use accessibility snapshots to check page structure and content.+- **Keep the scaffold loader in sync with reality**: The scaffold loader polls `public/scaffold-status.json`. Update this file before every `AskUserQuestion` (to raise the "waiting for your input" banner so the user doesn't miss a terminal prompt) and before each implementation step in Phase 5 (so the progress-bar label matches what you're actually doing while the decorative spinner continues its default cycle). See [Live Preview Status Protocol](#live-preview-status-protocol).- **Use real images**: Source high-quality photos from Unsplash wherever pages need visual content — hero sections, feature cards, about pages, backgrounds, etc. Use `https://images.unsplash.com/photo-{id}?w={width}&h={height}&fit=crop` URLs with specific photo IDs found via `WebSearch`. Never leave image placeholders or broken `<img>` tags pointing to nonexistent files.- **Git checkpoints**: Commit after every individual page and component — each gets its own commit so breaking changes can be reverted.@@ -32,6 +33,37 @@ Guide the user through creating a complete, production-quality Power Pages code---+## Live Preview Status Protocol++While the scaffold loading screen is visible (from Phase 2.6 until the Home page itself is replaced in Phase 5), the loader polls `GET /scaffold-status.json` every 1.5 seconds. The `message` you write into `<PROJECT_ROOT>/public/scaffold-status.json` appears as the label under the progress bar, and `awaitingInput` controls the "waiting for your input" banner. The decorative spinner above the progress bar continues its built-in phrase cycle; keep the progress-bar label current so the loader still reflects what is actually happening.++**Why this matters**: When the browser with the loader takes over the user's screen, a prompt in the terminal can sit unanswered for a long time because the user doesn't realize anything is waiting. The banner makes it obvious.++**File shape** (all fields optional — omit any field you don't want to change):++```json+{+ "message": "Creating Contact page",+ "awaitingInput": false,+ "inputPrompt": "Please check your terminal to respond."+}+```++- `message` — one short present-participle phrase shown as the status line under the progress bar in the loader (replacing the default "Getting started…" / "Setting up infrastructure…" cycle). Include the grouping context inline when it helps (e.g., `"Creating Footer component (shared components)"`).+- `awaitingInput` — when `true`, a prominent pulsing banner appears at the top of the loader and stays visible until this field is cleared. Set this **before** every `AskUserQuestion` call and clear it (`false`) **immediately after** the user answers.+- `inputPrompt` — short context for the banner (e.g., `"Choose a framework"`). Optional.++**When to update the file**:++1. **After scaffold launches (end of Phase 2)**: write an initial status like `{ "message": "Planning your site", "awaitingInput": false }`.+2. **Before any `AskUserQuestion` that runs while the scaffold is visible** (Phases 3, 4, and any in-scaffold prompt in Phase 5): set `awaitingInput: true` with a short `inputPrompt`. After the user answers, write again with `awaitingInput: false`.+3. **Before each implementation step in Phase 5** — applying design tokens, creating each shared component, creating each page, updating the router, updating navigation — update `message` to the specific action. Examples: `"Applying design tokens"`, `"Creating Navbar component"`, `"Creating Contact page"`.+4. **At the end of Phase 5, after the Home page has been replaced**: delete `public/scaffold-status.json` so it isn't deployed with the site.++Write the file with the `Write` tool (atomic overwrite). You do not need to read it first.++---+## Phase 1: Discovery**Goal**: Understand what site needs to be built and what problem it solves@@ -105,6 +137,14 @@ Use `Glob` to discover all files in the asset directory, `Read` each file, then`Read` the binary file `${CLAUDE_PLUGIN_ROOT}/skills/create-site/assets/shared/power-pages-icon.png` and `Write` it to `<PROJECT_ROOT>/public/power-pages-icon.png`. (All four supported frameworks serve `public/` at the web root, so the same `/power-pages-icon.png` URL works for every framework.)+**Seed the live status file** so the loader shows a real message the moment it mounts. `Write` `<PROJECT_ROOT>/public/scaffold-status.json`:++```json+{ "message": "Planning your site", "awaitingInput": false }+```++See [Live Preview Status Protocol](#live-preview-status-protocol) for the full contract — from here on, update this file before every `AskUserQuestion` and before each Phase 5 implementation step.+### 2.2 Replace PlaceholdersAfter copying, replace all `__PLACEHOLDER__` tokens in every file. Use `Edit` with `replace_all: true` on each file.@@ -179,7 +219,15 @@ Immediately after the dev server starts, verify the scaffold is working:**Actions**:-1. Use `AskUserQuestion` to collect feature and design requirements:+1. **Raise the "awaiting input" banner** so the user notices the terminal prompt even while the browser loader is full-screen. `Write` `<PROJECT_ROOT>/public/scaffold-status.json`:++ ```json+ { "message": "Planning your site", "awaitingInput": true, "inputPrompt": "Features, aesthetic, and mood — please answer in the terminal." }+ ```++ Immediately after the user answers, `Write` the same file again with `"awaitingInput": false` so the banner disappears.++2. Use `AskUserQuestion` to collect feature and design requirements:| Question | Header | Options ||----------|--------|---------|@@ -194,9 +242,9 @@ Immediately after the dev server starts, verify the scaffold is working:>> Always generate options that make sense for the specific site — never reuse a fixed list.-2. Read the design aesthetics reference: `${CLAUDE_PLUGIN_ROOT}/skills/create-site/references/design-aesthetics.md`-3. **Map aesthetic + mood to design choices** using the Aesthetic x Mood Mapping table from the design reference. Record the chosen font direction, color direction, and motion direction.-4. Analyze requirements and determine needed components. Present component plan to user as a table:+3. Read the design aesthetics reference: `${CLAUDE_PLUGIN_ROOT}/skills/create-site/references/design-aesthetics.md`+4. **Map aesthetic + mood to design choices** using the Aesthetic x Mood Mapping table from the design reference. Record the chosen font direction, color direction, and motion direction.+5. Analyze requirements and determine needed components. Present component plan to user as a table:```| Component Type | Count | Details |@@ -207,7 +255,7 @@ Immediately after the dev server starts, verify the scaffold is working:| Routes | 4 | /, /about, /services, /contact |```-5. Use best judgement to determine the final color palette based on the chosen aesthetic + mood. These will be written fresh into a new `theme.css` during Implementation (Phase 5) when the scaffold loading screen is completely replaced:+6. Use best judgement to determine the final color palette based on the chosen aesthetic + mood. These will be written fresh into a new `theme.css` during Implementation (Phase 5) when the scaffold loading screen is completely replaced:| CSS Variable | Description | Value ||-------------|-------------|-------|@@ -224,39 +272,86 @@ Immediately after the dev server starts, verify the scaffold is working:## Phase 4: Plan Approval-**Goal**: Get user approval on the implementation plan+**Goal**: Render the implementation plan as an HTML document, open it in the user's default browser, and get approval before starting implementation.-**Actions**:+> **Why HTML instead of a chat message**: A structured HTML plan (like the ones produced by `/integrate-backend`, `/add-server-logic`, and `/add-cloud-flow`) lets the user skim sections, compare swatches, and preview typography — all impossible in a terminal. The scaffold loader in their browser may also be full-screen, so surfacing the plan in a new tab puts it where they can actually read it.-1. Read the design aesthetics reference: `${CLAUDE_PLUGIN_ROOT}/skills/create-site/references/design-aesthetics.md`-2. Present the implementation plan directly to the user as a formatted message. **The plan MUST have ALL of the following sections:**+### 4.1 Read the Design Reference- **Section A — Design & Pages**- - Pages to create (with content outline for each)- - Components needed for each page- - Routing and navigation structure- - Design decisions (from the chosen design direction):- - Typography: specific Google Fonts chosen- - Color palette: full CSS variable set with hex values (replacing the scaffold defaults)- - Motion/animation plan: page load, hover states, transitions- - Background treatment: gradients, patterns, effects+Read the design aesthetics reference: `${CLAUDE_PLUGIN_ROOT}/skills/create-site/references/design-aesthetics.md`. Every field you populate below should be justified by the chosen aesthetic + mood from Phase 3.- **Section B — Review & Deployment**- - What to verify before handoff- - Deployment options+### 4.2 Build the Plan Data- > **CRITICAL:** The plan is written for the user — do NOT reference internal phase numbers, tool names, or implementation details. Describe what will be built and what it will look like. The scaffold is already running — this plan covers what will be built on top of it.+Assemble a single JSON object with the following keys. The plan template rejects any data that's missing a required key, so include all of them.-3. Use `AskUserQuestion` to get approval:+| Key | Type | Content |+|-----|------|---------|+| `SITE_NAME` | string | Title-case site name from Phase 1 |+| `PLAN_TITLE` | string | Always `"Implementation Plan"` |+| `FRAMEWORK` | string | `React` / `Vue` / `Angular` / `Astro` |+| `AESTHETIC` | string | Chosen aesthetic (e.g., `Minimal & Clean`) |+| `MOOD` | string | Chosen mood (e.g., `Professional & Trustworthy`) |+| `SUMMARY` | string | One paragraph describing what the site is and who it serves |+| `TYPOGRAPHY_DATA` | object | `{ primary: { name, sample, reason }, secondary: { name, sample, reason } }` — `name` must be a real Google Font family |+| `PALETTE_DATA` | array | `[{ var, hex, description }]` — one entry per CSS variable (primary, secondary, bg, surface, text, text-muted) |+| `MOTION_DATA` | array | `[{ label, description }]` — page transitions, hover states, etc. |+| `BACKGROUNDS_DATA` | array | `[{ label, description }]` — hero backgrounds, section treatments, patterns |+| `PAGES_DATA` | array | `[{ name, route, description, content: [...], components: [...] }]` — `content` is an outline of what's on the page, `components` is shared component names used |+| `COMPONENTS_DATA` | array | `[{ name, purpose, usedBy: [...] }]` — shared components with the page names that consume them |+| `ROUTES_DATA` | array | `[{ path, page }]` — every route the router will register |+| `REVIEW_DATA` | array of strings | Verification checklist items (e.g., "All pages load without console errors") |+| `DEPLOYMENT_DATA` | array | `[{ title, description, recommended?: boolean }]` — mark exactly one as `recommended: true` |- | Question | Header | Options |- |----------|--------|---------|- | Does this plan look good? | Plan | Approve and start building (Recommended), I'd like to make changes |+**Write the data for the user**, not for internal tooling — phrase `description` and `reason` fields in plain language.- - **If "Approve"**: Proceed to Phase 5.- - **If "I'd like to make changes"**: Ask what they want changed, update the plan, and re-present for approval.+### 4.3 Render the HTML Plan-**Output**: Approved implementation plan+Pick an output path under `<PROJECT_ROOT>/docs/`. Default is `create-site-plan.html`; if that file already exists, pick a descriptive variant like `create-site-plan-v2.html` (the render script refuses to overwrite existing files).++```bash+node "${CLAUDE_PLUGIN_ROOT}/scripts/render-createsite-plan.js" --output "<PROJECT_ROOT>/docs/create-site-plan.html" --data-inline '<json-string>'+```++Use `--data-inline` so no temp JSON file is written. If the JSON is too large for a single shell argument, write it to a temp file and use `--data <path>` instead, then delete the temp file after the render succeeds.++The script prints `{"status":"ok","output":"<path>"}` on success. Capture and use that actual output path for the next step.++### 4.4 Open the Plan in the Default Browser++Open `<OUTPUT_PATH>` in the default browser using the platform-appropriate file opener for the current environment. For example, use `open` on macOS, `xdg-open` on Linux, or the equivalent default-browser opener available on Windows.++### 4.5 Present a Brief Summary in the Terminal++Keep the terminal message short — **the full plan lives in the HTML file now**. Include:++- One sentence confirming the plan was rendered and where (the output path).+- A 3-5 line bullet summary: framework, page count, component count, palette primary + mood.+- A pointer: "See the open browser tab for pages, color swatches, typography samples, and deployment options."++Do NOT dump the full plan contents into the terminal — that defeats the purpose of the HTML view.++### 4.6 Raise the "Awaiting Input" Banner++The user may still be looking at the full-screen scaffold loader when you ask for approval. `Write` `<PROJECT_ROOT>/public/scaffold-status.json`:++```json+{ "message": "Ready to build", "awaitingInput": true, "inputPrompt": "Plan approval needed — review the plan in your browser and answer in the terminal." }+```++Immediately after the user answers, `Write` the same file again with `"awaitingInput": false`.++### 4.7 Ask for Approval++Use `AskUserQuestion`:++| Question | Header | Options |+|----------|--------|---------|+| Does this plan look good? | Plan | Approve and start building (Recommended), I'd like to make changes |++- **If "Approve"**: Proceed to Phase 5.+- **If "I'd like to make changes"**: Ask what they want changed, update the JSON, and re-render to a new filename (the render script won't overwrite). Re-open that new file in the browser and repeat 4.5–4.7.++**Output**: Approved implementation plan, with an HTML copy committed alongside the project for the user to reference during and after implementation.---@@ -286,10 +381,12 @@ Each todo should have a clear `subject`, `activeForm`, and `description` that inThe scaffold is a temporary loading screen — it must be **completely replaced** during this phase. Do NOT build on top of it or try to modify the loading animation into a real page. Start fresh with the user's chosen design.-1. **Design foundations** — **Completely rewrite** `theme.css` (or `styles.css` for Angular) from scratch with the chosen color palette as CSS custom properties, Google Fonts, motion/animation utilities, and background treatments. The scaffold's loading screen CSS is discarded entirely. Commit after this step.-2. **Layout** — **Rewrite** the Layout component (and Header/Footer for Astro) with proper navigation, header, and footer that reflect the chosen design. The scaffold's passthrough Layout is replaced with a real layout structure.-3. **Shared components** — Build reusable components (Navbar, Footer, ContactForm, etc.) that pages will use-4. **Pages** — Create route components for each requested page, **replacing** the scaffold Home page and About placeholder entirely. Each page component must update `document.title` on mount to reflect the current page (e.g., `"Contact — Contoso Portal"`). Use the framework's idiomatic lifecycle hook: `useEffect` (React), `onMounted` (Vue), `ngOnInit` (Angular), or a `<title>` tag in the frontmatter (Astro). Format: `"<Page Name> — <Site Name>"`, with the home page using just `"<Site Name>"`.+> **Narrate progress in the loader**: Before each of the steps below, update `<PROJECT_ROOT>/public/scaffold-status.json` so the user — who may still be watching the Home page loader — sees what's actually happening instead of the hardcoded placeholder cycle. Use a short present-participle `message` (e.g., `"Creating Navbar component"`, `"Creating Contact page"`). Include any useful grouping context inline in the message itself. The loader picks up changes within ~1.5 seconds. Updates become no-ops once step 4 replaces the Home page.++1. **Design foundations** — **Completely rewrite** `theme.css` (or `styles.css` for Angular) from scratch with the chosen color palette as CSS custom properties, Google Fonts, motion/animation utilities, and background treatments. The scaffold's loading screen CSS is discarded entirely. Commit after this step. *Before starting, set the loader status to `{ "message": "Applying design tokens" }`.*+2. **Layout** — **Rewrite** the Layout component (and Header/Footer for Astro) with proper navigation, header, and footer that reflect the chosen design. The scaffold's passthrough Layout is replaced with a real layout structure. *Set status to `{ "message": "Rewriting Layout" }`.*+3. **Shared components** — Build reusable components (Navbar, Footer, ContactForm, etc.) that pages will use. *For each component, set status to `{ "message": "Creating <Component> component" }`.*+4. **Pages** — Create route components for each requested page, **replacing** the scaffold Home page and About placeholder entirely. Each page component must update `document.title` on mount to reflect the current page (e.g., `"Contact — Contoso Portal"`). Use the framework's idiomatic lifecycle hook: `useEffect` (React), `onMounted` (Vue), `ngOnInit` (Angular), or a `<title>` tag in the frontmatter (Astro). Format: `"<Page Name> — <Site Name>"`, with the home page using just `"<Site Name>"`. *For each page, set status to `{ "message": "Creating <Page> page" }` before writing the file. The loader disappears when the Home page itself is replaced — no further status updates are needed after that.*5. **Router** — Register all new routes (the scaffold only has `/` and `/about` — add all requested routes)6. **Navigation** — Add links to the new Layout/Header component7. **Entry HTML** — Update `index.html` (or `Layout.astro` for Astro) to load the chosen Google Fonts instead of the scaffold's DM Sans + Outfit@@ -354,6 +451,10 @@ After each significant change (new page or component), browse the site via PlaywThe user is previewing in their own browser via the dev server URL shared in Phase 2.7.+### 5.6 Clean Up the Live Status File++Once the scaffold loader is gone, `public/scaffold-status.json` is just dead weight that would ship with the deployed site. Delete the file from `<PROJECT_ROOT>/public/` and commit the removal alongside the final implementation.+> **GATE: Do NOT proceed to Phase 6 until ALL customization is complete with design applied.** The site must have distinctive typography (Google Fonts — no generic Inter/Roboto/Arial), a cohesive color palette (CSS variables), motion/animations, and all requested pages/features before moving to accessibility verification.**Output**: All pages, components, and design elements implemented and verified@@ -579,7 +680,10 @@ Every site must meet these standards before completion:### Phase 4: Plan Approval-- Plan presented inline with design & pages + review & deployment sections+- Plan data assembled as a single JSON object+- Rendered to `docs/create-site-plan.html` via `render-createsite-plan.js`+- Opened in the user's default browser+- Brief summary shown in terminal with a pointer to the browser tab- User approved via AskUserQuestion### Phase 5: Implementationdiff --git a/plugins/power-pages/skills/create-site/assets/angular/src/app/pages/home.component.ts b/plugins/power-pages/skills/create-site/assets/angular/src/app/pages/home.component.tsindex 7b8d52c2c..f041cc2af 100644--- a/plugins/power-pages/skills/create-site/assets/angular/src/app/pages/home.component.ts+++ b/plugins/power-pages/skills/create-site/assets/angular/src/app/pages/home.component.ts@@ -110,7 +110,17 @@ html, body { overflow: hidden; background: var(--pp-bg); color: var(--pp-text);@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }.center-stage.complete .main-heading { animation: completePulse 2s ease-in-out infinite alternate; }@keyframes completePulse { 0% { filter: brightness(1); } 100% { filter: brightness(1.15); } }-@media (max-width: 600px) { .main-heading { font-size: 24px; } .progress-container { width: 260px; } .feature-cards { flex-direction: column; align-items: center; } .orbit-system { width: 180px; height: 180px; } }+.input-banner { position: fixed; top: 24px; right: 24px; z-index: 100; display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #FFF4D6 0%, #FFE9B3 100%); border: 1px solid #F5B800; color: #5C3D00; padding: 12px 14px 12px 22px; border-radius: 999px; font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 500; box-shadow: 0 4px 16px rgba(245, 184, 0, 0.25); max-width: min(360px, calc(100vw - 48px)); animation: bannerEnter 0.4s cubic-bezier(0.22, 1, 0.36, 1); }+.input-banner[hidden] { display: none; }+.input-banner-icon { font-size: 18px; animation: bannerPulse 1.5s ease-in-out infinite; flex-shrink: 0; }+.input-banner-text { line-height: 1.4; flex: 1; min-width: 0; }+.input-banner-text b { font-weight: 600; display: block; letter-spacing: 0.3px; }+.input-banner-text small { display: block; font-size: 12px; font-weight: 400; opacity: 0.8; margin-top: 2px; }+.input-banner-close { width: 24px; height: 24px; border: none; border-radius: 50%; background: rgba(92, 61, 0, 0.12); color: #5C3D00; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; flex-shrink: 0; transition: background 0.2s ease, transform 0.2s ease; }+.input-banner-close:hover { background: rgba(92, 61, 0, 0.2); transform: scale(1.05); }+@keyframes bannerPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }+@keyframes bannerEnter { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }+@media (max-width: 600px) { .main-heading { font-size: 24px; } .progress-container { width: 260px; } .feature-cards { flex-direction: column; align-items: center; } .orbit-system { width: 180px; height: 180px; } .input-banner { top: 12px; right: 12px; padding: 10px 12px 10px 16px; font-size: 13px; max-width: calc(100vw - 24px); } }`],template: `<div class="loading-wrapper">@@ -120,6 +130,15 @@ html, body { overflow: hidden; background: var(--pp-bg); color: var(--pp-text);<div class="particles" id="particles"></div><div class="connector-lines" id="connectors"></div>+ <div class="input-banner" id="inputBanner" hidden>+ <span class="input-banner-icon">⚠️</span>+ <div class="input-banner-text">+ <b>Waiting for your input</b>+ <small id="inputBannerPrompt">Please check your terminal to respond.</small>+ </div>+ <button type="button" class="input-banner-close" id="inputBannerClose" aria-label="Dismiss notification">×</button>+ </div>+<div class="center-stage" id="centerStage"><div class="orbit-system"><div class="core-glow"></div>@@ -173,6 +192,7 @@ html, body { overflow: hidden; background: var(--pp-bg); color: var(--pp-text);export class HomeComponent implements AfterViewInit, OnDestroy {private intervals: number[] = []private timeouts: number[] = []+ private inputBannerCloseCleanup: (() => void) | null = nullngAfterViewInit() {const particlesEl = document.getElementById('particles')@@ -180,6 +200,7 @@ export class HomeComponent implements AfterViewInit, OnDestroy {const statusArea = document.getElementById('statusArea')const progressLabel = document.getElementById('progressLabel')const tipTextEl = document.getElementById('tipText')+ const inputBannerClose = document.getElementById('inputBannerClose')// Particlesconst createParticle = () => {@@ -230,8 +251,21 @@ export class HomeComponent implements AfterViewInit, OnDestroy {]let currentStatusIndex = 0+ let liveOverride = false+ let lastLiveMessage: string | null = null+ let lastAwaiting = false+ let lastPrompt: string | null = null+ let dismissedPrompt: string | null = null- const showStatus = (index: number) => {+ const dismissInputBanner = () => {+ const banner = document.getElementById('inputBanner')+ dismissedPrompt = lastPrompt || 'Please check your terminal to respond.'+ if (banner) banner.hidden = true+ }+ inputBannerClose?.addEventListener('click', dismissInputBanner)+ this.inputBannerCloseCleanup = () => inputBannerClose?.removeEventListener('click', dismissInputBanner)++ const renderStatusMessage = (text: string) => {if (!statusArea) returnconst existing = statusArea.querySelector('.status-message')if (existing) {@@ -244,15 +278,22 @@ export class HomeComponent implements AfterViewInit, OnDestroy {const icon = document.createElement('div')icon.classList.add('status-icon', 'working')msg.appendChild(icon)- const text = document.createElement('span')- text.textContent = statuses[index % statuses.length].text- msg.appendChild(text)+ const textEl = document.createElement('span')+ textEl.textContent = text+ msg.appendChild(textEl)statusArea.appendChild(msg)requestAnimationFrame(() => requestAnimationFrame(() => msg.classList.add('active')))- if (progressLabel) {- const phaseIndex = Math.min(Math.floor((index / statuses.length) * phaseLabels.length), phaseLabels.length - 1)- progressLabel.textContent = phaseLabels[phaseIndex]- }+ }++ const updatePhaseLabel = (text: string) => {+ if (progressLabel) progressLabel.textContent = text+ }++ const showStatus = (index: number) => {+ renderStatusMessage(statuses[index % statuses.length].text)+ if (liveOverride) return+ const phaseIndex = Math.min(Math.floor((index / statuses.length) * phaseLabels.length), phaseLabels.length - 1)+ updatePhaseLabel(phaseLabels[phaseIndex])}const advanceStatus = () => {@@ -266,6 +307,54 @@ export class HomeComponent implements AfterViewInit, OnDestroy {this.timeouts.push(window.setTimeout(() => advanceStatus(), 2000))+ const pollStatus = async () => {+ const banner = document.getElementById('inputBanner') as HTMLElement | null+ const promptEl = document.getElementById('inputBannerPrompt')+ try {+ const res = await fetch('/scaffold-status.json?t=' + Date.now(), { cache: 'no-store' })+ if (!res.ok) throw new Error('no status')+ const data = await res.json() as { message?: string; awaitingInput?: boolean; inputPrompt?: string }+ if (data.message) {+ liveOverride = true+ if (data.message !== lastLiveMessage) {+ lastLiveMessage = data.message+ updatePhaseLabel(data.message)+ }+ } else {+ if (liveOverride) {+ const phaseIndex = Math.min(Math.floor((currentStatusIndex / statuses.length) * phaseLabels.length), phaseLabels.length - 1)+ updatePhaseLabel(phaseLabels[phaseIndex])+ }+ liveOverride = false+ lastLiveMessage = null+ }+ const awaiting = !!data.awaitingInput+ const prompt = data.inputPrompt || 'Please check your terminal to respond.'+ const awaitingChanged = awaiting !== lastAwaiting+ const promptChanged = prompt !== lastPrompt+ if (!awaiting) dismissedPrompt = null+ if (awaitingChanged || promptChanged) {+ lastAwaiting = awaiting+ lastPrompt = prompt+ if (promptEl) promptEl.textContent = prompt+ }+ if (banner) banner.hidden = !awaiting || dismissedPrompt === prompt+ } catch {+ if (liveOverride) {+ const phaseIndex = Math.min(Math.floor((currentStatusIndex / statuses.length) * phaseLabels.length), phaseLabels.length - 1)+ updatePhaseLabel(phaseLabels[phaseIndex])+ }+ liveOverride = false+ lastLiveMessage = null+ if (!lastAwaiting) {+ lastPrompt = null+ if (banner) banner.hidden = true+ }+ }+ }+ pollStatus()+ this.intervals.push(window.setInterval(pollStatus, 1500))+// Feature cardsthis.timeouts.push(window.setTimeout(() => {document.querySelectorAll('.feature-card').forEach(card => {@@ -302,6 +391,7 @@ export class HomeComponent implements AfterViewInit, OnDestroy {}ngOnDestroy() {+ this.inputBannerCloseCleanup?.()this.intervals.forEach(id => clearInterval(id))this.timeouts.forEach(id => clearTimeout(id))}diff --git a/plugins/power-pages/skills/create-site/assets/astro/src/pages/index.astro b/plugins/power-pages/skills/create-site/assets/astro/src/pages/index.astroindex 2c7f65a63..6b1d65695 100644--- a/plugins/power-pages/skills/create-site/assets/astro/src/pages/index.astro+++ b/plugins/power-pages/skills/create-site/assets/astro/src/pages/index.astro@@ -10,6 +10,15 @@ import Layout from '../layouts/Layout.astro'<div class="particles" id="particles"></div><div class="connector-lines" id="connectors"></div>+ <div class="input-banner" id="inputBanner" hidden>+ <span class="input-banner-icon">⚠️</span>+ <div class="input-banner-text">+ <b>Waiting for your input</b>+ <small id="inputBannerPrompt">Please check your terminal to respond.</small>+ </div>+ <button type="button" class="input-banner-close" id="inputBannerClose" aria-label="Dismiss notification">×</button>+ </div>+<div class="center-stage" id="centerStage"><div class="orbit-system"><div class="core-glow"></div>@@ -166,7 +175,17 @@ html, body { overflow: hidden; background: var(--pp-bg); color: var(--pp-text);@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }.center-stage.complete .main-heading { animation: completePulse 2s ease-in-out infinite alternate; }@keyframes completePulse { 0% { filter: brightness(1); } 100% { filter: brightness(1.15); } }-@media (max-width: 600px) { .main-heading { font-size: 24px; } .progress-container { width: 260px; } .feature-cards { flex-direction: column; align-items: center; } .orbit-system { width: 180px; height: 180px; } }+.input-banner { position: fixed; top: 24px; right: 24px; z-index: 100; display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #FFF4D6 0%, #FFE9B3 100%); border: 1px solid #F5B800; color: #5C3D00; padding: 12px 14px 12px 22px; border-radius: 999px; font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 500; box-shadow: 0 4px 16px rgba(245, 184, 0, 0.25); max-width: min(360px, calc(100vw - 48px)); animation: bannerEnter 0.4s cubic-bezier(0.22, 1, 0.36, 1); }+.input-banner[hidden] { display: none; }+.input-banner-icon { font-size: 18px; animation: bannerPulse 1.5s ease-in-out infinite; flex-shrink: 0; }+.input-banner-text { line-height: 1.4; flex: 1; min-width: 0; }+.input-banner-text b { font-weight: 600; display: block; letter-spacing: 0.3px; }+.input-banner-text small { display: block; font-size: 12px; font-weight: 400; opacity: 0.8; margin-top: 2px; }+.input-banner-close { width: 24px; height: 24px; border: none; border-radius: 50%; background: rgba(92, 61, 0, 0.12); color: #5C3D00; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; flex-shrink: 0; transition: background 0.2s ease, transform 0.2s ease; }+.input-banner-close:hover { background: rgba(92, 61, 0, 0.2); transform: scale(1.05); }+@keyframes bannerPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }+@keyframes bannerEnter { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }+@media (max-width: 600px) { .main-heading { font-size: 24px; } .progress-container { width: 260px; } .feature-cards { flex-direction: column; align-items: center; } .orbit-system { width: 180px; height: 180px; } .input-banner { top: 12px; right: 12px; padding: 10px 12px 10px 16px; font-size: 13px; max-width: calc(100vw - 24px); } }</style><script>@@ -175,6 +194,7 @@ html, body { overflow: hidden; background: var(--pp-bg); color: var(--pp-text);const statusArea = document.getElementById('statusArea')const progressLabel = document.getElementById('progressLabel')const tipTextEl = document.getElementById('tipText')+ const inputBannerClose = document.getElementById('inputBannerClose')// Particlesfunction createParticle() {@@ -225,8 +245,20 @@ html, body { overflow: hidden; background: var(--pp-bg); color: var(--pp-text);]let currentStatusIndex = 0+ let liveOverride = false+ let lastLiveMessage: string | null = null+ let lastAwaiting = false+ let lastPrompt: string | null = null+ let dismissedPrompt: string | null = null- function showStatus(index: number) {+ const dismissInputBanner = () => {+ const banner = document.getElementById('inputBanner')+ dismissedPrompt = lastPrompt || 'Please check your terminal to respond.'+ if (banner) banner.hidden = true+ }+ inputBannerClose?.addEventListener('click', dismissInputBanner)++ function renderStatusMessage(text: string) {if (!statusArea) returnconst existing = statusArea.querySelector('.status-message')if (existing) {@@ -239,15 +271,22 @@ html, body { overflow: hidden; background: var(--pp-bg); color: var(--pp-text);const icon = document.createElement('div')icon.classList.add('status-icon', 'working')msg.appendChild(icon)- const text = document.createElement('span')- text.textContent = statuses[index].text- msg.appendChild(text)+ const textEl = document.createElement('span')+ textEl.textContent = text+ msg.appendChild(textEl)statusArea.appendChild(msg)requestAnimationFrame(() => requestAnimationFrame(() => msg.classList.add('active')))- if (progressLabel) {- const phaseIndex = Math.min(Math.floor((index / statuses.length) * phaseLabels.length), phaseLabels.length - 1)- progressLabel.textContent = phaseLabels[phaseIndex]- }+ }++ function updatePhaseLabel(text: string) {+ if (progressLabel) progressLabel.textContent = text+ }++ function showStatus(index: number) {+ renderStatusMessage(statuses[index].text)+ if (liveOverride) return+ const phaseIndex = Math.min(Math.floor((index / statuses.length) * phaseLabels.length), phaseLabels.length - 1)+ updatePhaseLabel(phaseLabels[phaseIndex])}function advanceStatus() {@@ -261,6 +300,54 @@ html, body { overflow: hidden; background: var(--pp-bg); color: var(--pp-text);setTimeout(() => advanceStatus(), 2000)+ async function pollStatus() {+ const banner = document.getElementById('inputBanner') as HTMLElement | null+ const promptEl = document.getElementById('inputBannerPrompt')+ try {+ const res = await fetch('/scaffold-status.json?t=' + Date.now(), { cache: 'no-store' })+ if (!res.ok) throw new Error('no status')+ const data = await res.json() as { message?: string; awaitingInput?: boolean; inputPrompt?: string }+ if (data.message) {+ liveOverride = true+ if (data.message !== lastLiveMessage) {+ lastLiveMessage = data.message+ updatePhaseLabel(data.message)+ }+ } else {+ if (liveOverride) {+ const phaseIndex = Math.min(Math.floor((currentStatusIndex / statuses.length) * phaseLabels.length), phaseLabels.length - 1)+ updatePhaseLabel(phaseLabels[phaseIndex])+ }+ liveOverride = false+ lastLiveMessage = null+ }+ const awaiting = !!data.awaitingInput+ const prompt = data.inputPrompt || 'Please check your terminal to respond.'+ const awaitingChanged = awaiting !== lastAwaiting+ const promptChanged = prompt !== lastPrompt+ if (!awaiting) dismissedPrompt = null+ if (awaitingChanged || promptChanged) {+ lastAwaiting = awaiting+ lastPrompt = prompt+ if (promptEl) promptEl.textContent = prompt+ }+ if (banner) banner.hidden = !awaiting || dismissedPrompt === prompt+ } catch {+ if (liveOverride) {+ const phaseIndex = Math.min(Math.floor((currentStatusIndex / statuses.length) * phaseLabels.length), phaseLabels.length - 1)+ updatePhaseLabel(phaseLabels[phaseIndex])+ }+ liveOverride = false+ lastLiveMessage = null+ if (!lastAwaiting) {+ lastPrompt = null+ if (banner) banner.hidden = true+ }+ }+ }+ pollStatus()+ setInterval(pollStatus, 1500)+// Feature cardssetTimeout(() => {document.querySelectorAll('.feature-card').forEach(card => {diff --git a/plugins/power-pages/skills/create-site/assets/create-site-plan.html b/plugins/power-pages/skills/create-site/assets/create-site-plan.htmlnew file mode 100644index 000000000..8438af01a--- /dev/null+++ b/plugins/power-pages/skills/create-site/assets/create-site-plan.html@@ -0,0 +1,391 @@+<!DOCTYPE html>+<html lang="en">+<head>+<meta charset="UTF-8"/>+<meta name="viewport" content="width=device-width,initial-scale=1.0"/>+<title>__PLAN_TITLE__ - __SITE_NAME__</title>+<style>+:root{+ --bg:#faf9f8; --surface:#ffffff; --surface2:#f3f2f1; --border:#e1dfdd; --border-light:#c8c6c4;+ --text:#323130; --text-dim:#605e5c; --text-bright:#201f1e; --accent:#0078d4; --accent-bg:#0078d40a; --accent-border:#0078d425;+ --pass:#107c10; --pass-bg:#107c100a; --pass-border:#107c1020;+ --purple:#8764b8; --purple-bg:#8764b80a; --purple-border:#8764b820;+ --warn:#ca5010; --warn-bg:#ca50100a; --warn-border:#ca501020;+ --mono:'Cascadia Code','Consolas',monospace; --sans:'Segoe UI','Segoe UI Web (West European)',-apple-system,system-ui,sans-serif;+ --radius:8px; --radius-sm:4px; --shadow-4:0 1.6px 3.6px 0 rgba(0,0,0,0.132),0 0.3px 0.9px 0 rgba(0,0,0,0.108);+}+*{margin:0;padding:0;box-sizing:border-box;}+html{scroll-behavior:smooth;}+body{font-family:var(--sans);background:var(--bg);color:var(--text);font-size:14px;line-height:1.6;}+.topbar{z-index:100;background:var(--surface);box-shadow:var(--shadow-4);padding:14px 28px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;position:sticky;top:0;}+.topbar-left{display:flex;align-items:center;gap:14px;}+.logo{width:36px;height:36px;object-fit:contain;display:block;flex-shrink:0;}+.topbar-title{font-size:16px;font-weight:700;color:var(--text-bright);}+.topbar-sub{font-size:11px;color:var(--text-dim);margin-top:1px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;}+.topbar-sep{opacity:0.5;}+.topbar-right{display:flex;gap:6px;flex-wrap:wrap;}+.pill{font-size:11px;padding:4px 10px;border-radius:999px;font-weight:600;letter-spacing:0.2px;border:1px solid transparent;}+.pill-aesthetic{background:var(--accent-bg);color:var(--accent);border-color:var(--accent-border);}+.pill-mood{background:var(--purple-bg);color:var(--purple);border-color:var(--purple-border);}+.pill-framework{background:var(--pass-bg);color:var(--pass);border-color:var(--pass-border);}+.layout{display:flex;min-height:calc(100vh - 65px);}+.sidebar{width:240px;background:var(--surface);border-right:1px solid var(--border);padding:20px 0;flex-shrink:0;}+.nav-group-label{font-size:10px;font-weight:700;color:var(--text-dim);text-transform:uppercase;letter-spacing:1.2px;padding:16px 22px 6px;}+.nav-btn{display:flex;align-items:center;gap:10px;width:100%;padding:11px 22px;background:none;border:none;border-left:2px solid transparent;color:var(--text-dim);font-size:13px;font-weight:500;cursor:pointer;font-family:var(--sans);text-align:left;transition:all 0.15s;}+.nav-btn:hover{color:var(--text);background:var(--surface2);}+.nav-btn.active{color:var(--accent);font-weight:600;border-left-color:var(--accent);background:var(--accent-bg);}+.nav-btn .nav-icon{font-size:15px;opacity:0.5;width:18px;text-align:center;}+.nav-btn.active .nav-icon{opacity:0.9;}+.content{flex:1;padding:32px 40px 72px;max-width:1060px;}+.section{display:none;}+.section.active{display:block;animation:fadeIn 0.3s ease;}+@keyframes fadeIn{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:translateY(0);}}+h2{font-size:21px;font-weight:800;color:var(--text-bright);letter-spacing:-0.3px;margin-bottom:5px;}+.section-desc{font-size:13px;color:var(--text-dim);margin-bottom:20px;}+.section-desc code{color:var(--accent);background:var(--accent-bg);padding:1px 6px;border-radius:3px;font-family:var(--mono);font-size:12px;}+h3{font-size:15px;font-weight:700;color:var(--text-bright);margin-top:24px;margin-bottom:12px;}+.summary-box{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:22px;margin-bottom:22px;font-size:14px;color:var(--text);line-height:1.75;}+.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:24px;}+.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px 16px;text-align:center;position:relative;overflow:hidden;box-shadow:var(--shadow-4);}+.stat-card::after{content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);width:40px;height:2px;border-radius:0 0 2px 2px;background:var(--accent);}+.stat-card:nth-child(2)::after{background:var(--purple);}+.stat-card:nth-child(3)::after{background:var(--warn);}+.stat-num{font-size:30px;font-weight:800;font-family:var(--mono);line-height:1;color:var(--text-bright);}+.stat-label{font-size:10px;color:var(--text-dim);text-transform:uppercase;letter-spacing:1px;margin-top:6px;}+.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px 20px;margin-bottom:10px;transition:box-shadow 0.2s,border-color 0.2s;}+.card:hover{box-shadow:var(--shadow-4);}+.field-label{font-size:11px;font-weight:600;color:var(--text-dim);text-transform:uppercase;letter-spacing:0.5px;margin-bottom:4px;}+.chip{display:inline-flex;align-items:center;gap:5px;font-size:11px;padding:3px 10px;border-radius:4px;font-weight:600;background:var(--surface2);border:1px solid var(--border);color:var(--text);margin:0 4px 4px 0;}+.chip-accent{background:var(--accent-bg);border-color:var(--accent-border);color:var(--accent);}++/* Design tab */+.type-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}+.type-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px 22px;box-shadow:var(--shadow-4);}+.type-role{font-size:10px;color:var(--text-dim);text-transform:uppercase;letter-spacing:1px;margin-bottom:8px;}+.type-sample{font-size:32px;font-weight:700;color:var(--text-bright);line-height:1.1;margin-bottom:6px;}+.type-name{font-size:13px;color:var(--text);font-family:var(--mono);margin-bottom:10px;}+.type-reason{font-size:12px;color:var(--text-dim);line-height:1.55;}+.palette-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;}+.swatch-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-4);}+.swatch{height:80px;width:100%;display:block;}+.swatch-body{padding:10px 14px 14px;}+.swatch-var{font-size:11px;font-family:var(--mono);color:var(--text);}+.swatch-hex{font-size:13px;font-weight:700;color:var(--text-bright);font-family:var(--mono);margin-top:2px;}+.swatch-desc{font-size:11px;color:var(--text-dim);margin-top:4px;}+.list-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:4px 4px;}+.list-item{display:flex;gap:14px;padding:14px 18px;border-bottom:1px solid var(--border);}+.list-item:last-child{border-bottom:none;}+.list-item-icon{flex-shrink:0;width:28px;height:28px;border-radius:50%;background:var(--accent-bg);color:var(--accent);display:flex;align-items:center;justify-content:center;font-size:14px;}+.list-item-label{font-size:13px;font-weight:700;color:var(--text-bright);margin-bottom:2px;}+.list-item-desc{font-size:12px;color:var(--text-dim);line-height:1.55;}++/* Pages tab */+.page-card{background:var(--surface);border:1px solid var(--border);border-left:3px solid var(--accent);border-radius:var(--radius);padding:18px 22px;margin-bottom:10px;box-shadow:var(--shadow-4);}+.page-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:8px;}+.page-name{font-size:15px;font-weight:700;color:var(--text-bright);}+.page-route{font-size:12px;font-family:var(--mono);color:var(--accent);background:var(--accent-bg);padding:2px 8px;border-radius:4px;}+.page-desc{font-size:13px;color:var(--text-dim);margin-bottom:12px;}+.page-subsection{margin-top:10px;}+.bullet-list{list-style:none;padding:0;margin:6px 0 0;}+.bullet-list li{position:relative;padding-left:16px;font-size:12px;color:var(--text);margin-bottom:4px;}+.bullet-list li::before{content:'';position:absolute;left:4px;top:8px;width:5px;height:5px;border-radius:50%;background:var(--accent);}+.component-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px 20px;margin-bottom:8px;}+.component-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:6px;flex-wrap:wrap;}+.component-name{font-size:14px;font-weight:700;color:var(--text-bright);}+.component-purpose{font-size:12px;color:var(--text-dim);margin-bottom:8px;}+.routes-table{width:100%;border-collapse:separate;border-spacing:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;}+.routes-table th{text-align:left;font-size:11px;font-weight:700;color:var(--text-dim);text-transform:uppercase;letter-spacing:0.5px;padding:10px 16px;background:var(--surface2);border-bottom:1px solid var(--border);}+.routes-table td{font-size:13px;padding:10px 16px;border-bottom:1px solid var(--border);}+.routes-table tr:last-child td{border-bottom:none;}+.routes-table td.path{font-family:var(--mono);color:var(--accent);}++/* Deployment tab */+.checklist{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:4px 4px;}+.checklist-item{display:flex;align-items:flex-start;gap:12px;padding:12px 18px;border-bottom:1px solid var(--border);font-size:13px;color:var(--text);}+.checklist-item:last-child{border-bottom:none;}+.checklist-check{flex-shrink:0;width:18px;height:18px;border:1.5px solid var(--border-light);border-radius:4px;margin-top:1px;}+.deploy-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;}+.deploy-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px 20px;box-shadow:var(--shadow-4);position:relative;}+.deploy-card.recommended{border-color:var(--accent-border);background:linear-gradient(135deg,var(--accent-bg),transparent);}+.deploy-card.recommended::before{content:'Recommended';position:absolute;top:-9px;right:14px;font-size:10px;font-weight:700;color:#fff;background:var(--accent);padding:3px 10px;border-radius:999px;letter-spacing:0.5px;text-transform:uppercase;}+.deploy-title{font-size:14px;font-weight:700;color:var(--text-bright);margin-bottom:4px;}+.deploy-desc{font-size:12px;color:var(--text-dim);line-height:1.55;}++.empty-note{font-size:12px;color:var(--text-dim);font-style:italic;padding:12px 0;}++@media (max-width:900px){+ .layout{flex-direction:column;}+ .sidebar{width:100%;border-right:none;border-bottom:1px solid var(--border);display:flex;flex-wrap:wrap;padding:8px;}+ .nav-group-label{width:100%;}+ .nav-btn{width:auto;border-left:none;border-bottom:2px solid transparent;padding:10px 14px;}+ .nav-btn.active{border-left:none;border-bottom-color:var(--accent);}+ .content{padding:20px;}+ .type-grid{grid-template-columns:1fr;}+ .stats-grid{grid-template-columns:repeat(3,1fr);}+}+</style>+</head>+<body>+<div class="topbar">+ <div class="topbar-left">+ <img class="logo" src="./power-pages-icon.png" alt="Power Pages" />+ <div>+ <div class="topbar-title">__PLAN_TITLE__</div>+ <div class="topbar-sub">+ <span>__SITE_NAME__</span>+ <span class="topbar-sep">·</span>+ <span class="pill pill-framework">__FRAMEWORK__</span>+ </div>+ </div>+ </div>+ <div class="topbar-right">+ <span class="pill pill-aesthetic">__AESTHETIC__</span>+ <span class="pill pill-mood">__MOOD__</span>+ </div>+</div>++<div class="layout">+ <div class="sidebar">+ <div class="nav-group-label">Plan</div>+ <button class="nav-btn active" data-tab="overview"><span class="nav-icon">◉</span> Overview</button>+ <button class="nav-btn" data-tab="design"><span class="nav-icon">☀</span> Design</button>+ <button class="nav-btn" data-tab="pages"><span class="nav-icon">▦</span> Pages & Components</button>+ <button class="nav-btn" data-tab="deploy"><span class="nav-icon">✓</span> Deployment & Review</button>+ </div>++ <div class="content">+ <!-- Overview Tab -->+ <div class="section active" id="tab-overview">+ <h2>Overview</h2>+ <p class="section-desc">Implementation plan for <code>__SITE_NAME__</code></p>++ <div class="summary-box" id="summaryBox"></div>+ <script id="summaryData" type="application/json">__SUMMARY_DATA__</script>++ <div class="stats-grid">+ <div class="stat-card"><div class="stat-num" id="statPages">0</div><div class="stat-label">Pages</div></div>+ <div class="stat-card"><div class="stat-num" id="statComponents">0</div><div class="stat-label">Shared Components</div></div>+ <div class="stat-card"><div class="stat-num" id="statRoutes">0</div><div class="stat-label">Routes</div></div>+ </div>++ <h3>What happens next</h3>+ <div class="list-card" id="nextStepsList"></div>+ </div>++ <!-- Design Tab -->+ <div class="section" id="tab-design">+ <h2>Design</h2>+ <p class="section-desc">Typography, palette, motion, and background treatments</p>++ <h3>Typography</h3>+ <div class="type-grid" id="typographyContainer"></div>++ <h3>Color palette</h3>+ <div class="palette-grid" id="paletteContainer"></div>++ <h3>Motion & animation</h3>+ <div class="list-card" id="motionContainer"></div>++ <h3>Background treatment</h3>+ <div class="list-card" id="backgroundsContainer"></div>+ </div>++ <!-- Pages & Components Tab -->+ <div class="section" id="tab-pages">+ <h2>Pages & Components</h2>+ <p class="section-desc">Pages to build, their content outline, and the shared components they rely on</p>++ <h3>Pages</h3>+ <div id="pagesContainer"></div>++ <h3>Shared components</h3>+ <div id="componentsContainer"></div>++ <h3>Routing</h3>+ <table class="routes-table" id="routesTable">+ <thead><tr><th>Path</th><th>Page</th></tr></thead>+ <tbody id="routesBody"></tbody>+ </table>+ </div>++ <!-- Deployment & Review Tab -->+ <div class="section" id="tab-deploy">+ <h2>Deployment & Review</h2>+ <p class="section-desc">Verification checklist and deployment options</p>++ <h3>Before handoff — verify</h3>+ <div class="checklist" id="reviewContainer"></div>++ <h3>Deployment options</h3>+ <div class="deploy-grid" id="deploymentContainer"></div>+ </div>+ </div>+</div>++<script id="typographyData" type="application/json">__TYPOGRAPHY_DATA__</script>+<script id="paletteData" type="application/json">__PALETTE_DATA__</script>+<script id="motionData" type="application/json">__MOTION_DATA__</script>+<script id="backgroundsData" type="application/json">__BACKGROUNDS_DATA__</script>+<script id="pagesData" type="application/json">__PAGES_DATA__</script>+<script id="componentsData" type="application/json">__COMPONENTS_DATA__</script>+<script id="routesData" type="application/json">__ROUTES_DATA__</script>+<script id="reviewData" type="application/json">__REVIEW_DATA__</script>+<script id="deploymentData" type="application/json">__DEPLOYMENT_DATA__</script>++<script>+function readJsonData(id){+ const node = document.getElementById(id);+ return node ? JSON.parse(node.textContent) : null;+}++const TYPOGRAPHY = readJsonData('typographyData');+const PALETTE = readJsonData('paletteData');+const MOTION = readJsonData('motionData');+const BACKGROUNDS = readJsonData('backgroundsData');+const PAGES = readJsonData('pagesData');+const COMPONENTS = readJsonData('componentsData');+const ROUTES = readJsonData('routesData');+const REVIEW = readJsonData('reviewData');+const DEPLOYMENT = readJsonData('deploymentData');++function esc(s){const d=document.createElement('div');d.textContent=s==null?'':String(s);return d.innerHTML;}++// --- Load chosen Google Fonts for the typography preview ---+(function loadFonts(){+ const names=[TYPOGRAPHY && TYPOGRAPHY.primary && TYPOGRAPHY.primary.name, TYPOGRAPHY && TYPOGRAPHY.secondary && TYPOGRAPHY.secondary.name].filter(Boolean);+ if(!names.length)return;+ const families=names.map(n=>'family='+encodeURIComponent(n).replace(/%20/g,'+')+':wght@400;600;700').join('&');+ const link=document.createElement('link');+ link.rel='stylesheet';+ link.href='https://fonts.googleapis.com/css2?'+families+'&display=swap';+ document.head.appendChild(link);+})();++// --- Tab navigation ---+document.querySelectorAll('.nav-btn').forEach(btn => {+ btn.addEventListener('click', () => {+ document.querySelectorAll('.nav-btn').forEach(b => b.classList.remove('active'));+ btn.classList.add('active');+ document.querySelectorAll('.section').forEach(s => s.classList.remove('active'));+ document.getElementById('tab-' + btn.dataset.tab).classList.add('active');+ });+});++// --- Summary ---+document.getElementById('summaryBox').textContent = JSON.parse(document.getElementById('summaryData').textContent).text || '';++// --- Overview stats ---+document.getElementById('statPages').textContent = PAGES.length;+document.getElementById('statComponents').textContent = COMPONENTS.length;+document.getElementById('statRoutes').textContent = ROUTES.length;++const nextSteps = [+ { icon:'✎', label:'Apply design tokens', desc:'Fonts, palette, motion, and backgrounds written into your theme' },+ { icon:'▦', label:'Build shared components', desc:COMPONENTS.length+' reusable component'+(COMPONENTS.length===1?'':'s')+' used across pages' },+ { icon:'📄', label:'Create pages', desc:PAGES.length+' page'+(PAGES.length===1?'':'s')+' with routing and navigation' },+ { icon:'✓', label:'Verify & accessibility', desc:'axe-core audit, Playwright checks, and user review' },+];+document.getElementById('nextStepsList').innerHTML = nextSteps.map(s =>+ '<div class="list-item"><div class="list-item-icon">'+s.icon+'</div><div><div class="list-item-label">'+s.label+'</div><div class="list-item-desc">'+s.desc+'</div></div></div>'+).join('');++// --- Design: typography ---+const typeContainer = document.getElementById('typographyContainer');+const typeSlots = [+ { slot:'primary', role:'Primary — body & UI' },+ { slot:'secondary', role:'Secondary — headings' },+];+typeContainer.innerHTML = typeSlots.map(s => {+ const t = TYPOGRAPHY && TYPOGRAPHY[s.slot];+ if(!t) return '';+ const fam = t.name ? "'"+t.name.replace(/'/g, "\\'")+"', var(--sans)" : 'var(--sans)';+ return '<div class="type-card">'+ + '<div class="type-role">'+s.role+'</div>'+ + '<div class="type-sample" style="font-family:'+fam+';">'+esc(t.sample || 'Aa Bb Cc')+'</div>'+ + '<div class="type-name">'+esc(t.name || '')+'</div>'+ + '<div class="type-reason">'+esc(t.reason || '')+'</div>'+ + '</div>';+}).join('');++// --- Design: palette ---+document.getElementById('paletteContainer').innerHTML = PALETTE.map(c =>+ '<div class="swatch-card">'+ + '<div class="swatch" style="background:'+esc(c.hex)+';"></div>'+ + '<div class="swatch-body">'+ + '<div class="swatch-var">'+esc(c.var || '')+'</div>'+ + '<div class="swatch-hex">'+esc(c.hex)+'</div>'+ + (c.description ? '<div class="swatch-desc">'+esc(c.description)+'</div>' : '')+ + '</div></div>'+).join('');++// --- Design: motion & backgrounds ---+function renderList(arr) {+ if(!arr || !arr.length) return '<div class="empty-note" style="padding:12px 18px;">None specified.</div>';+ return arr.map(item =>+ '<div class="list-item"><div class="list-item-icon">◈</div>'+ + '<div><div class="list-item-label">'+esc(item.label || '')+'</div>'+ + '<div class="list-item-desc">'+esc(item.description || '')+'</div></div></div>'+ ).join('');+}+document.getElementById('motionContainer').innerHTML = renderList(MOTION);+document.getElementById('backgroundsContainer').innerHTML = renderList(BACKGROUNDS);++// --- Pages ---+document.getElementById('pagesContainer').innerHTML = PAGES.map(p => {+ const content = (p.content && p.content.length)+ ? '<div class="page-subsection"><div class="field-label">Content</div><ul class="bullet-list">'+ + p.content.map(c => '<li>'+esc(c)+'</li>').join('')+ + '</ul></div>'+ : '';+ const comps = (p.components && p.components.length)+ ? '<div class="page-subsection"><div class="field-label">Components used</div>'+ + p.components.map(c => '<span class="chip">'+esc(c)+'</span>').join('')+ + '</div>'+ : '';+ return '<div class="page-card">'+ + '<div class="page-head">'+ + '<div class="page-name">'+esc(p.name)+'</div>'+ + '<div class="page-route">'+esc(p.route || '')+'</div>'+ + '</div>'+ + (p.description ? '<div class="page-desc">'+esc(p.description)+'</div>' : '')+ + content + comps+ + '</div>';+}).join('');++// --- Components ---+const compsContainer = document.getElementById('componentsContainer');+if (!COMPONENTS.length) {+ compsContainer.innerHTML = '<div class="empty-note">No shared components planned yet.</div>';+} else {+ compsContainer.innerHTML = COMPONENTS.map(c =>+ '<div class="component-card">'+ + '<div class="component-head"><div class="component-name">'+esc(c.name)+'</div></div>'+ + (c.purpose ? '<div class="component-purpose">'+esc(c.purpose)+'</div>' : '')+ + (c.usedBy && c.usedBy.length+ ? '<div><div class="field-label">Used by</div>'+c.usedBy.map(u => '<span class="chip chip-accent">'+esc(u)+'</span>').join('')+'</div>'+ : '')+ + '</div>'+ ).join('');+}++// --- Routes ---+document.getElementById('routesBody').innerHTML = ROUTES.map(r =>+ '<tr><td class="path">'+esc(r.path)+'</td><td>'+esc(r.page)+'</td></tr>'+).join('');++// --- Review checklist ---+document.getElementById('reviewContainer').innerHTML = REVIEW.map(item =>+ '<div class="checklist-item"><div class="checklist-check"></div><div>'+esc(item)+'</div></div>'+).join('');++// --- Deployment options ---+document.getElementById('deploymentContainer').innerHTML = DEPLOYMENT.map(d =>+ '<div class="deploy-card'+(d.recommended ? ' recommended' : '')+'">'+ + '<div class="deploy-title">'+esc(d.title)+'</div>'+ + '<div class="deploy-desc">'+esc(d.description || '')+'</div>'+ + '</div>'+).join('');+</script>+<footer style="position:fixed;bottom:0;left:0;right:0;text-align:center;padding:10px;font-size:12px;color:#605e5c;border-top:1px solid #c8c6c4;background:#ffffff;z-index:100;">AI-generated content may be incorrect</footer>+</body>+</html>diff --git a/plugins/power-pages/skills/create-site/assets/react/src/pages/Home.tsx b/plugins/power-pages/skills/create-site/assets/react/src/pages/Home.tsxindex 38e48cfa8..8962e8458 100644--- a/plugins/power-pages/skills/create-site/assets/react/src/pages/Home.tsx+++ b/plugins/power-pages/skills/create-site/assets/react/src/pages/Home.tsx@@ -106,7 +106,17 @@ html, body { overflow: hidden; background: var(--pp-bg); color: var(--pp-text);@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }.center-stage.complete .main-heading { animation: completePulse 2s ease-in-out infinite alternate; }@keyframes completePulse { 0% { filter: brightness(1); } 100% { filter: brightness(1.15); } }-@media (max-width: 600px) { .main-heading { font-size: 24px; } .progress-container { width: 260px; } .feature-cards { flex-direction: column; align-items: center; } .orbit-system { width: 180px; height: 180px; } }+.input-banner { position: fixed; top: 24px; right: 24px; z-index: 100; display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #FFF4D6 0%, #FFE9B3 100%); border: 1px solid #F5B800; color: #5C3D00; padding: 12px 14px 12px 22px; border-radius: 999px; font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 500; box-shadow: 0 4px 16px rgba(245, 184, 0, 0.25); max-width: min(360px, calc(100vw - 48px)); animation: bannerEnter 0.4s cubic-bezier(0.22, 1, 0.36, 1); }+.input-banner[hidden] { display: none; }+.input-banner-icon { font-size: 18px; animation: bannerPulse 1.5s ease-in-out infinite; flex-shrink: 0; }+.input-banner-text { line-height: 1.4; flex: 1; min-width: 0; }+.input-banner-text b { font-weight: 600; display: block; letter-spacing: 0.3px; }+.input-banner-text small { display: block; font-size: 12px; font-weight: 400; opacity: 0.8; margin-top: 2px; }+.input-banner-close { width: 24px; height: 24px; border: none; border-radius: 50%; background: rgba(92, 61, 0, 0.12); color: #5C3D00; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; flex-shrink: 0; transition: background 0.2s ease, transform 0.2s ease; }+.input-banner-close:hover { background: rgba(92, 61, 0, 0.2); transform: scale(1.05); }+@keyframes bannerPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }+@keyframes bannerEnter { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }+@media (max-width: 600px) { .main-heading { font-size: 24px; } .progress-container { width: 260px; } .feature-cards { flex-direction: column; align-items: center; } .orbit-system { width: 180px; height: 180px; } .input-banner { top: 12px; right: 12px; padding: 10px 12px 10px 16px; font-size: 13px; max-width: calc(100vw - 24px); } }`export default function Home() {@@ -119,6 +129,7 @@ export default function Home() {const statusArea = document.getElementById('statusArea')const progressLabel = document.getElementById('progressLabel')const tipTextEl = document.getElementById('tipText')+ const inputBannerClose = document.getElementById('inputBannerClose')// Particlesfunction createParticle() {@@ -169,8 +180,20 @@ export default function Home() {]let currentStatusIndex = 0+ let liveOverride = false+ let lastLiveMessage: string | null = null+ let lastAwaiting = false+ let lastPrompt: string | null = null+ let dismissedPrompt: string | null = null- function showStatus(index: number) {+ const dismissInputBanner = () => {+ const banner = document.getElementById('inputBanner')+ dismissedPrompt = lastPrompt || 'Please check your terminal to respond.'+ if (banner) banner.hidden = true+ }+ inputBannerClose?.addEventListener('click', dismissInputBanner)++ function renderStatusMessage(text: string) {if (!statusArea) returnconst existing = statusArea.querySelector('.status-message')if (existing) {@@ -183,15 +206,22 @@ export default function Home() {const icon = document.createElement('div')icon.classList.add('status-icon', 'working')msg.appendChild(icon)- const text = document.createElement('span')- text.textContent = statuses[index].text- msg.appendChild(text)+ const textEl = document.createElement('span')+ textEl.textContent = text+ msg.appendChild(textEl)statusArea.appendChild(msg)requestAnimationFrame(() => requestAnimationFrame(() => msg.classList.add('active')))- if (progressLabel) {- const phaseIndex = Math.min(Math.floor((index / statuses.length) * phaseLabels.length), phaseLabels.length - 1)- progressLabel.textContent = phaseLabels[phaseIndex]- }+ }++ function updatePhaseLabel(text: string) {+ if (progressLabel) progressLabel.textContent = text+ }++ function showStatus(index: number) {+ renderStatusMessage(statuses[index].text)+ if (liveOverride) return+ const phaseIndex = Math.min(Math.floor((index / statuses.length) * phaseLabels.length), phaseLabels.length - 1)+ updatePhaseLabel(phaseLabels[phaseIndex])}function advanceStatus() {@@ -205,6 +235,54 @@ export default function Home() {timeouts.push(window.setTimeout(() => advanceStatus(), 2000))+ async function pollStatus() {+ const banner = document.getElementById('inputBanner')+ const promptEl = document.getElementById('inputBannerPrompt')+ try {+ const res = await fetch('/scaffold-status.json?t=' + Date.now(), { cache: 'no-store' })+ if (!res.ok) throw new Error('no status')+ const data = await res.json() as { message?: string; awaitingInput?: boolean; inputPrompt?: string }+ if (data.message) {+ liveOverride = true+ if (data.message !== lastLiveMessage) {+ lastLiveMessage = data.message+ updatePhaseLabel(data.message)+ }+ } else {+ if (liveOverride) {+ const phaseIndex = Math.min(Math.floor((currentStatusIndex / statuses.length) * phaseLabels.length), phaseLabels.length - 1)+ updatePhaseLabel(phaseLabels[phaseIndex])+ }+ liveOverride = false+ lastLiveMessage = null+ }+ const awaiting = !!data.awaitingInput+ const prompt = data.inputPrompt || 'Please check your terminal to respond.'+ const awaitingChanged = awaiting !== lastAwaiting+ const promptChanged = prompt !== lastPrompt+ if (!awaiting) dismissedPrompt = null+ if (awaitingChanged || promptChanged) {+ lastAwaiting = awaiting+ lastPrompt = prompt+ if (promptEl) promptEl.textContent = prompt+ }+ if (banner) banner.hidden = !awaiting || dismissedPrompt === prompt+ } catch {+ if (liveOverride) {+ const phaseIndex = Math.min(Math.floor((currentStatusIndex / statuses.length) * phaseLabels.length), phaseLabels.length - 1)+ updatePhaseLabel(phaseLabels[phaseIndex])+ }+ liveOverride = false+ lastLiveMessage = null+ if (!lastAwaiting) {+ lastPrompt = null+ if (banner) banner.hidden = true+ }+ }+ }+ pollStatus()+ intervals.push(window.setInterval(pollStatus, 1500))+// Feature cardstimeouts.push(window.setTimeout(() => {document.querySelectorAll('.feature-card').forEach(card => {@@ -240,6 +318,7 @@ export default function Home() {intervals.push(window.setInterval(showTip, 12000))return () => {+ inputBannerClose?.removeEventListener('click', dismissInputBanner)intervals.forEach(id => clearInterval(id))timeouts.forEach(id => clearTimeout(id))}@@ -255,6 +334,15 @@ export default function Home() {<div className="particles" id="particles" /><div className="connector-lines" id="connectors" />+ <div className="input-banner" id="inputBanner" hidden>+ <span className="input-banner-icon">{ '⚠️' }</span>+ <div className="input-banner-text">+ <b>Waiting for your input</b>+ <small id="inputBannerPrompt">Please check your terminal to respond.</small>+ </div>+ <button type="button" className="input-banner-close" id="inputBannerClose" aria-label="Dismiss notification">{'\u00d7'}</button>+ </div>+<div className="center-stage" id="centerStage"><div className="orbit-system"><div className="core-glow" />diff --git a/plugins/power-pages/skills/create-site/assets/vue/src/pages/Home.vue b/plugins/power-pages/skills/create-site/assets/vue/src/pages/Home.vueindex 3e3b5f110..3a8b12587 100644--- a/plugins/power-pages/skills/create-site/assets/vue/src/pages/Home.vue+++ b/plugins/power-pages/skills/create-site/assets/vue/src/pages/Home.vue@@ -6,6 +6,15 @@<div class="particles" id="particles" /><div class="connector-lines" id="connectors" />+ <div class="input-banner" id="inputBanner" hidden>+ <span class="input-banner-icon">⚠️</span>+ <div class="input-banner-text">+ <b>Waiting for your input</b>+ <small id="inputBannerPrompt">Please check your terminal to respond.</small>+ </div>+ <button type="button" class="input-banner-close" id="inputBannerClose" aria-label="Dismiss notification">×</button>+ </div>+<div class="center-stage" id="centerStage"><div class="orbit-system"><div class="core-glow" />@@ -70,6 +79,7 @@ onMounted(() => {const statusArea = document.getElementById('statusArea')const progressLabel = document.getElementById('progressLabel')const tipTextEl = document.getElementById('tipText')+ const inputBannerClose = document.getElementById('inputBannerClose')// Particlesfunction createParticle() {@@ -120,8 +130,20 @@ onMounted(() => {]let currentStatusIndex = 0+ let liveOverride = false+ let lastLiveMessage: string | null = null+ let lastAwaiting = false+ let lastPrompt: string | null = null+ let dismissedPrompt: string | null = null- function showStatus(index: number) {+ const dismissInputBanner = () => {+ const banner = document.getElementById('inputBanner')+ dismissedPrompt = lastPrompt || 'Please check your terminal to respond.'+ if (banner) banner.hidden = true+ }+ inputBannerClose?.addEventListener('click', dismissInputBanner)++ function renderStatusMessage(text: string) {if (!statusArea) returnconst existing = statusArea.querySelector('.status-message')if (existing) {@@ -134,15 +156,22 @@ onMounted(() => {const icon = document.createElement('div')icon.classList.add('status-icon', 'working')msg.appendChild(icon)- const text = document.createElement('span')- text.textContent = statuses[index].text- msg.appendChild(text)+ const textEl = document.createElement('span')+ textEl.textContent = text+ msg.appendChild(textEl)statusArea.appendChild(msg)requestAnimationFrame(() => requestAnimationFrame(() => msg.classList.add('active')))- if (progressLabel) {- const phaseIndex = Math.min(Math.floor((index / statuses.length) * phaseLabels.length), phaseLabels.length - 1)- progressLabel.textContent = phaseLabels[phaseIndex]- }+ }++ function updatePhaseLabel(text: string) {+ if (progressLabel) progressLabel.textContent = text+ }++ function showStatus(index: number) {+ renderStatusMessage(statuses[index].text)+ if (liveOverride) return+ const phaseIndex = Math.min(Math.floor((index / statuses.length) * phaseLabels.length), phaseLabels.length - 1)+ updatePhaseLabel(phaseLabels[phaseIndex])}function advanceStatus() {@@ -156,6 +185,54 @@ onMounted(() => {timeouts.push(window.setTimeout(() => advanceStatus(), 2000))+ async function pollStatus() {+ const banner = document.getElementById('inputBanner') as HTMLElement | null+ const promptEl = document.getElementById('inputBannerPrompt')+ try {+ const res = await fetch('/scaffold-status.json?t=' + Date.now(), { cache: 'no-store' })+ if (!res.ok) throw new Error('no status')+ const data = await res.json() as { message?: string; awaitingInput?: boolean; inputPrompt?: string }+ if (data.message) {+ liveOverride = true+ if (data.message !== lastLiveMessage) {+ lastLiveMessage = data.message+ updatePhaseLabel(data.message)+ }+ } else {+ if (liveOverride) {+ const phaseIndex = Math.min(Math.floor((currentStatusIndex / statuses.length) * phaseLabels.length), phaseLabels.length - 1)+ updatePhaseLabel(phaseLabels[phaseIndex])+ }+ liveOverride = false+ lastLiveMessage = null+ }+ const awaiting = !!data.awaitingInput+ const prompt = data.inputPrompt || 'Please check your terminal to respond.'+ const awaitingChanged = awaiting !== lastAwaiting+ const promptChanged = prompt !== lastPrompt+ if (!awaiting) dismissedPrompt = null+ if (awaitingChanged || promptChanged) {+ lastAwaiting = awaiting+ lastPrompt = prompt+ if (promptEl) promptEl.textContent = prompt+ }+ if (banner) banner.hidden = !awaiting || dismissedPrompt === prompt+ } catch {+ if (liveOverride) {+ const phaseIndex = Math.min(Math.floor((currentStatusIndex / statuses.length) * phaseLabels.length), phaseLabels.length - 1)+ updatePhaseLabel(phaseLabels[phaseIndex])+ }+ liveOverride = false+ lastLiveMessage = null+ if (!lastAwaiting) {+ lastPrompt = null+ if (banner) banner.hidden = true+ }+ }+ }+ pollStatus()+ intervals.push(window.setInterval(pollStatus, 1500))+// Feature cardstimeouts.push(window.setTimeout(() => {document.querySelectorAll('.feature-card').forEach(card => {@@ -191,6 +268,7 @@ onMounted(() => {intervals.push(window.setInterval(showTip, 12000))cleanupFn = () => {+ inputBannerClose?.removeEventListener('click', dismissInputBanner)intervals.forEach(id => clearInterval(id))timeouts.forEach(id => clearTimeout(id))}@@ -307,5 +385,15 @@ html, body { overflow: hidden; background: var(--pp-bg); color: var(--pp-text);@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }.center-stage.complete .main-heading { animation: completePulse 2s ease-in-out infinite alternate; }@keyframes completePulse { 0% { filter: brightness(1); } 100% { filter: brightness(1.15); } }-@media (max-width: 600px) { .main-heading { font-size: 24px; } .progress-container { width: 260px; } .feature-cards { flex-direction: column; align-items: center; } .orbit-system { width: 180px; height: 180px; } }+.input-banner { position: fixed; top: 24px; right: 24px; z-index: 100; display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #FFF4D6 0%, #FFE9B3 100%); border: 1px solid #F5B800; color: #5C3D00; padding: 12px 14px 12px 22px; border-radius: 999px; font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 500; box-shadow: 0 4px 16px rgba(245, 184, 0, 0.25); max-width: min(360px, calc(100vw - 48px)); animation: bannerEnter 0.4s cubic-bezier(0.22, 1, 0.36, 1); }+.input-banner[hidden] { display: none; }+.input-banner-icon { font-size: 18px; animation: bannerPulse 1.5s ease-in-out infinite; flex-shrink: 0; }+.input-banner-text { line-height: 1.4; flex: 1; min-width: 0; }+.input-banner-text b { font-weight: 600; display: block; letter-spacing: 0.3px; }+.input-banner-text small { display: block; font-size: 12px; font-weight: 400; opacity: 0.8; margin-top: 2px; }+.input-banner-close { width: 24px; height: 24px; border: none; border-radius: 50%; background: rgba(92, 61, 0, 0.12); color: #5C3D00; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; flex-shrink: 0; transition: background 0.2s ease, transform 0.2s ease; }+.input-banner-close:hover { background: rgba(92, 61, 0, 0.2); transform: scale(1.05); }+@keyframes bannerPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }+@keyframes bannerEnter { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }+@media (max-width: 600px) { .main-heading { font-size: 24px; } .progress-container { width: 260px; } .feature-cards { flex-direction: column; align-items: center; } .orbit-system { width: 180px; height: 180px; } .input-banner { top: 12px; right: 12px; padding: 10px 12px 10px 16px; font-size: 13px; max-width: calc(100vw - 24px); } }</style>