|
|
@@ -0,0 +1,259 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <title>Brainstorm Companion</title>
|
|
|
+ <style>
|
|
|
+ /*
|
|
|
+ * BRAINSTORM COMPANION FRAME TEMPLATE
|
|
|
+ *
|
|
|
+ * This template provides a consistent frame with:
|
|
|
+ * - OS-aware light/dark theming
|
|
|
+ * - Fixed header and feedback footer
|
|
|
+ * - Scrollable main content area
|
|
|
+ * - CSS helpers for common UI patterns
|
|
|
+ *
|
|
|
+ * CLAUDE: Replace the contents of #claude-content with your content.
|
|
|
+ * Keep the header, main wrapper, and feedback-footer intact.
|
|
|
+ */
|
|
|
+
|
|
|
+ * { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
+ html, body { height: 100%; overflow: hidden; }
|
|
|
+
|
|
|
+ /* ===== THEME VARIABLES ===== */
|
|
|
+ :root {
|
|
|
+ --bg-primary: #f5f5f7;
|
|
|
+ --bg-secondary: #ffffff;
|
|
|
+ --bg-tertiary: #e5e5e7;
|
|
|
+ --border: #d1d1d6;
|
|
|
+ --text-primary: #1d1d1f;
|
|
|
+ --text-secondary: #86868b;
|
|
|
+ --text-tertiary: #aeaeb2;
|
|
|
+ --accent: #0071e3;
|
|
|
+ --accent-hover: #0077ed;
|
|
|
+ --success: #34c759;
|
|
|
+ --warning: #ff9f0a;
|
|
|
+ --error: #ff3b30;
|
|
|
+ --selected-bg: #e8f4fd;
|
|
|
+ --selected-border: #0071e3;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (prefers-color-scheme: dark) {
|
|
|
+ :root {
|
|
|
+ --bg-primary: #1d1d1f;
|
|
|
+ --bg-secondary: #2d2d2f;
|
|
|
+ --bg-tertiary: #3d3d3f;
|
|
|
+ --border: #424245;
|
|
|
+ --text-primary: #f5f5f7;
|
|
|
+ --text-secondary: #86868b;
|
|
|
+ --text-tertiary: #636366;
|
|
|
+ --accent: #0a84ff;
|
|
|
+ --accent-hover: #409cff;
|
|
|
+ --selected-bg: rgba(10, 132, 255, 0.15);
|
|
|
+ --selected-border: #0a84ff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ body {
|
|
|
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
|
|
|
+ background: var(--bg-primary);
|
|
|
+ color: var(--text-primary);
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ line-height: 1.5;
|
|
|
+ }
|
|
|
+
|
|
|
+ /* ===== FRAME STRUCTURE ===== */
|
|
|
+ .header {
|
|
|
+ background: var(--bg-secondary);
|
|
|
+ padding: 0.5rem 1.5rem;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ border-bottom: 1px solid var(--border);
|
|
|
+ flex-shrink: 0;
|
|
|
+ }
|
|
|
+ .header h1 { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
|
|
|
+ .header .status { font-size: 0.7rem; color: var(--success); display: flex; align-items: center; gap: 0.4rem; }
|
|
|
+ .header .status::before { content: ''; width: 6px; height: 6px; background: var(--success); border-radius: 50%; }
|
|
|
+
|
|
|
+ .main { flex: 1; overflow-y: auto; }
|
|
|
+ #claude-content { padding: 2rem; min-height: 100%; }
|
|
|
+
|
|
|
+ .feedback-footer {
|
|
|
+ background: var(--bg-secondary);
|
|
|
+ border-top: 1px solid var(--border);
|
|
|
+ padding: 0.75rem 1.5rem;
|
|
|
+ flex-shrink: 0;
|
|
|
+ }
|
|
|
+ .feedback-footer label { display: block; font-size: 0.65rem; color: var(--text-secondary); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.05em; }
|
|
|
+ .feedback-row { display: flex; gap: 0.5rem; }
|
|
|
+ .feedback-footer textarea {
|
|
|
+ flex: 1;
|
|
|
+ background: var(--bg-primary);
|
|
|
+ border: 1px solid var(--border);
|
|
|
+ border-radius: 6px;
|
|
|
+ padding: 0.5rem 0.75rem;
|
|
|
+ color: var(--text-primary);
|
|
|
+ font-family: inherit;
|
|
|
+ font-size: 0.85rem;
|
|
|
+ resize: none;
|
|
|
+ height: 36px;
|
|
|
+ }
|
|
|
+ .feedback-footer textarea:focus { outline: none; border-color: var(--accent); }
|
|
|
+ .feedback-footer button {
|
|
|
+ background: var(--accent);
|
|
|
+ color: white;
|
|
|
+ border: none;
|
|
|
+ padding: 0 1rem;
|
|
|
+ border-radius: 6px;
|
|
|
+ font-size: 0.8rem;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ .feedback-footer button:hover { background: var(--accent-hover); }
|
|
|
+
|
|
|
+ /* ===== TYPOGRAPHY ===== */
|
|
|
+ h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
|
|
|
+ h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.25rem; }
|
|
|
+ .subtitle { color: var(--text-secondary); margin-bottom: 1.5rem; }
|
|
|
+ .section { margin-bottom: 2rem; }
|
|
|
+ .label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
|
|
|
+
|
|
|
+ /* ===== OPTIONS (for A/B/C choices) ===== */
|
|
|
+ .options { display: flex; flex-direction: column; gap: 0.75rem; }
|
|
|
+ .option {
|
|
|
+ background: var(--bg-secondary);
|
|
|
+ border: 2px solid var(--border);
|
|
|
+ border-radius: 12px;
|
|
|
+ padding: 1rem 1.25rem;
|
|
|
+ cursor: pointer;
|
|
|
+ transition: all 0.15s ease;
|
|
|
+ display: flex;
|
|
|
+ align-items: flex-start;
|
|
|
+ gap: 1rem;
|
|
|
+ }
|
|
|
+ .option:hover { border-color: var(--accent); }
|
|
|
+ .option.selected { background: var(--selected-bg); border-color: var(--selected-border); }
|
|
|
+ .option .letter {
|
|
|
+ background: var(--bg-tertiary);
|
|
|
+ color: var(--text-secondary);
|
|
|
+ width: 1.75rem; height: 1.75rem;
|
|
|
+ border-radius: 6px;
|
|
|
+ display: flex; align-items: center; justify-content: center;
|
|
|
+ font-weight: 600; font-size: 0.85rem; flex-shrink: 0;
|
|
|
+ }
|
|
|
+ .option.selected .letter { background: var(--accent); color: white; }
|
|
|
+ .option .content { flex: 1; }
|
|
|
+ .option .content h3 { font-size: 0.95rem; margin-bottom: 0.15rem; }
|
|
|
+ .option .content p { color: var(--text-secondary); font-size: 0.85rem; margin: 0; }
|
|
|
+
|
|
|
+ /* ===== CARDS (for showing designs/mockups) ===== */
|
|
|
+ .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
|
|
|
+ .card {
|
|
|
+ background: var(--bg-secondary);
|
|
|
+ border: 1px solid var(--border);
|
|
|
+ border-radius: 12px;
|
|
|
+ overflow: hidden;
|
|
|
+ cursor: pointer;
|
|
|
+ transition: all 0.15s ease;
|
|
|
+ }
|
|
|
+ .card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
|
|
|
+ .card.selected { border-color: var(--selected-border); border-width: 2px; }
|
|
|
+ .card-image { background: var(--bg-tertiary); aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; }
|
|
|
+ .card-body { padding: 1rem; }
|
|
|
+ .card-body h3 { margin-bottom: 0.25rem; }
|
|
|
+ .card-body p { color: var(--text-secondary); font-size: 0.85rem; }
|
|
|
+
|
|
|
+ /* ===== MOCKUP CONTAINER ===== */
|
|
|
+ .mockup {
|
|
|
+ background: var(--bg-secondary);
|
|
|
+ border: 1px solid var(--border);
|
|
|
+ border-radius: 12px;
|
|
|
+ overflow: hidden;
|
|
|
+ margin-bottom: 1.5rem;
|
|
|
+ }
|
|
|
+ .mockup-header {
|
|
|
+ background: var(--bg-tertiary);
|
|
|
+ padding: 0.5rem 1rem;
|
|
|
+ font-size: 0.75rem;
|
|
|
+ color: var(--text-secondary);
|
|
|
+ border-bottom: 1px solid var(--border);
|
|
|
+ }
|
|
|
+ .mockup-body { padding: 1.5rem; }
|
|
|
+
|
|
|
+ /* ===== SPLIT VIEW (side-by-side comparison) ===== */
|
|
|
+ .split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
|
|
|
+ @media (max-width: 700px) { .split { grid-template-columns: 1fr; } }
|
|
|
+
|
|
|
+ /* ===== PROS/CONS ===== */
|
|
|
+ .pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
|
|
|
+ .pros, .cons { background: var(--bg-secondary); border-radius: 8px; padding: 1rem; }
|
|
|
+ .pros h4 { color: var(--success); font-size: 0.85rem; margin-bottom: 0.5rem; }
|
|
|
+ .cons h4 { color: var(--error); font-size: 0.85rem; margin-bottom: 0.5rem; }
|
|
|
+ .pros ul, .cons ul { margin-left: 1.25rem; font-size: 0.85rem; color: var(--text-secondary); }
|
|
|
+ .pros li, .cons li { margin-bottom: 0.25rem; }
|
|
|
+
|
|
|
+ /* ===== PLACEHOLDER (for mockup areas) ===== */
|
|
|
+ .placeholder {
|
|
|
+ background: var(--bg-tertiary);
|
|
|
+ border: 2px dashed var(--border);
|
|
|
+ border-radius: 8px;
|
|
|
+ padding: 2rem;
|
|
|
+ text-align: center;
|
|
|
+ color: var(--text-tertiary);
|
|
|
+ }
|
|
|
+
|
|
|
+ /* ===== INLINE MOCKUP ELEMENTS ===== */
|
|
|
+ .mock-nav { background: var(--accent); color: white; padding: 0.75rem 1rem; display: flex; gap: 1.5rem; font-size: 0.9rem; }
|
|
|
+ .mock-sidebar { background: var(--bg-tertiary); padding: 1rem; min-width: 180px; }
|
|
|
+ .mock-content { padding: 1.5rem; flex: 1; }
|
|
|
+ .mock-button { background: var(--accent); color: white; border: none; padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.85rem; }
|
|
|
+ .mock-input { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem; width: 100%; }
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+ <div class="header">
|
|
|
+ <h1>Brainstorm Companion</h1>
|
|
|
+ <div class="status">Connected</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="main">
|
|
|
+ <div id="claude-content">
|
|
|
+ <!-- CLAUDE: Replace this content -->
|
|
|
+ <h2>Visual Brainstorming</h2>
|
|
|
+ <p class="subtitle">Claude will show mockups and options here.</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="feedback-footer">
|
|
|
+ <label>Feedback for Claude</label>
|
|
|
+ <div class="feedback-row">
|
|
|
+ <textarea id="feedback" placeholder="Add notes (optional)..." onkeydown="if(event.key==='Enter'&&!event.shiftKey){event.preventDefault();send()}"></textarea>
|
|
|
+ <button onclick="send()">Send</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <script>
|
|
|
+ let selectedChoice = null;
|
|
|
+
|
|
|
+ function toggleSelect(el) {
|
|
|
+ const container = el.closest('.options') || el.closest('.cards');
|
|
|
+ if (container) {
|
|
|
+ container.querySelectorAll('.option, .card').forEach(o => o.classList.remove('selected'));
|
|
|
+ }
|
|
|
+ el.classList.add('selected');
|
|
|
+ selectedChoice = el.dataset.choice;
|
|
|
+ }
|
|
|
+
|
|
|
+ function send() {
|
|
|
+ const feedbackEl = document.getElementById('feedback');
|
|
|
+ const feedback = feedbackEl.value.trim();
|
|
|
+ const payload = {};
|
|
|
+ if (selectedChoice) payload.choice = selectedChoice;
|
|
|
+ if (feedback) payload.feedback = feedback;
|
|
|
+ if (Object.keys(payload).length === 0) return;
|
|
|
+ brainstorm.sendToClaude(payload);
|
|
|
+ feedbackEl.value = '';
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+</body>
|
|
|
+</html>
|