From 782d9f5f31ea52d226cb135666dc0860127429ca Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 14 Feb 2026 04:39:24 +0000 Subject: [PATCH] Add Daily and Weekly meta prompts to landing page with copy functionality Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- build.mjs | 10 ++- landing/index.html | 154 +++++++++++++++++++++++++++++++++++++++++++++ server.log | 3 - 3 files changed, 163 insertions(+), 4 deletions(-) delete mode 100644 server.log diff --git a/build.mjs b/build.mjs index 3f0e84a..17e1dad 100644 --- a/build.mjs +++ b/build.mjs @@ -9,6 +9,7 @@ const DIST_DIR = path.join(__dirname, 'dist'); const LANDING_SRC = path.join(__dirname, 'landing'); const DASHBOARD_SRC = path.join(__dirname, 'dashboard'); const DOCS_SRC = path.join(__dirname, 'src', 'docs'); +const PROMPTS_SRC = path.join(__dirname, 'src', 'prompts', 'META_PROMPTS.md'); const CONFIG_SRC = path.join(__dirname, 'torch-config.json'); // Ensure clean slate @@ -39,7 +40,14 @@ const distDocs = path.join(DIST_DIR, 'src', 'docs'); fs.mkdirSync(distDocs, { recursive: true }); fs.cpSync(DOCS_SRC, distDocs, { recursive: true }); -// 4. Copy torch-config.json -> dist/torch-config.json (optional config) +// 4. Copy src/prompts/META_PROMPTS.md -> dist/src/prompts/META_PROMPTS.md +const distPromptsDir = path.join(DIST_DIR, 'src', 'prompts'); +fs.mkdirSync(distPromptsDir, { recursive: true }); +if (fs.existsSync(PROMPTS_SRC)) { + fs.copyFileSync(PROMPTS_SRC, path.join(distPromptsDir, 'META_PROMPTS.md')); +} + +// 5. Copy torch-config.json -> dist/torch-config.json (optional config) if (fs.existsSync(CONFIG_SRC)) { fs.copyFileSync(CONFIG_SRC, path.join(DIST_DIR, 'torch-config.json')); } diff --git a/landing/index.html b/landing/index.html index 0fa9f63..e063fb9 100644 --- a/landing/index.html +++ b/landing/index.html @@ -250,6 +250,89 @@ text-decoration: underline; } + /* Meta Prompts Section */ + .meta-prompts { + max-width: 1200px; + margin: 4rem auto; + padding: 0 2rem; + width: 100%; + } + + .meta-prompts h2 { + text-align: center; + font-size: 2rem; + margin-bottom: 2rem; + color: var(--text-strong); + } + + .prompts-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); + gap: 2rem; + } + + .prompt-card { + background: var(--surface-alt); + border: 1px solid var(--border); + border-radius: 1rem; + overflow: hidden; + display: flex; + flex-direction: column; + } + + .prompt-header { + padding: 1rem 1.5rem; + border-bottom: 1px solid var(--border); + display: flex; + justify-content: space-between; + align-items: center; + background: rgba(0,0,0,0.2); + } + + .prompt-title { + font-weight: 600; + color: var(--text-strong); + } + + .copy-btn { + background: transparent; + border: 1px solid var(--border); + color: var(--muted); + padding: 0.25rem 0.75rem; + border-radius: 0.5rem; + font-size: 0.8rem; + cursor: pointer; + transition: all 0.2s; + } + + .copy-btn:hover { + border-color: var(--accent); + color: var(--accent); + } + + .prompt-content { + padding: 0; + margin: 0; + background: #0d1117; + overflow: auto; + max-height: 400px; + flex: 1; + } + + .prompt-content pre { + margin: 0; + padding: 1.5rem; + } + + .prompt-content code { + font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: 0.85rem; + color: #e6edf3; + line-height: 1.5; + white-space: pre-wrap; + word-break: break-all; + } + footer { margin-top: auto; padding: 2rem; @@ -307,6 +390,30 @@