scaffold: 12 Hobbies Studio site + OpenScribe project page
Initial static site (no framework, no build) for the 12 Hobbies Studio maker studio, featuring OpenScribe as the flagship project. What changed: - index.html: studio home - hero, featured OpenScribe block with sync diagram, projects grid, about. British spelling, dark warm theme. - projects/openscribe.html: OpenScribe product page. Leads with the "bring your own AI" differentiator, an interactive provider picker, the feature set, a four-step build guide, and licensing. - assets/styles.css: all styling (palette, cards, featured layout, picker, code blocks). - assets/app.js: dependency-free provider picker that swaps a sample server .env snippet across Ollama / OpenAI / Anthropic / Groq / LM Studio - on message with OpenScribe's any-AI design. - README, LICENSE (MIT for site code), .gitignore. Why: - The user asked to develop a site on 12 Hobbies Studio; this is the first cut, showcasing OpenScribe and the connect-to-any-AI capability. Branding uses sensible defaults and is trivially editable (noted in README). Notes: - Pure static files; deploy to any static host or Forgejo Pages. Validated: app.js passes node --check; HTML section tags balanced. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
commit
e1bf5a2d7a
7 changed files with 497 additions and 0 deletions
86
assets/app.js
Normal file
86
assets/app.js
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
// Interactive AI-provider picker for the OpenScribe page. Swaps a sample server .env
|
||||
// snippet as you choose a provider - the whole point of OpenScribe: bring your own AI.
|
||||
(function () {
|
||||
var PROVIDERS = {
|
||||
ollama: {
|
||||
label: "Ollama (local)",
|
||||
lines: [
|
||||
["c", "# Fully local and self-hosted - no cloud, no key"],
|
||||
["k", "OPENSCRIBE_LLM_PROVIDER", "ollama"],
|
||||
["k", "OPENSCRIBE_OLLAMA_URL", "http://localhost:11434"],
|
||||
["k", "OPENSCRIBE_OLLAMA_MODEL", "llama3.1"],
|
||||
],
|
||||
},
|
||||
openai: {
|
||||
label: "OpenAI",
|
||||
lines: [
|
||||
["c", "# Any OpenAI-compatible endpoint works the same way"],
|
||||
["k", "OPENSCRIBE_LLM_PROVIDER", "openai_compatible"],
|
||||
["k", "OPENSCRIBE_LLM_BASE_URL", "https://api.openai.com/v1"],
|
||||
["k", "OPENSCRIBE_LLM_API_KEY", "sk-..."],
|
||||
["k", "OPENSCRIBE_LLM_MODEL", "gpt-4o-mini"],
|
||||
],
|
||||
},
|
||||
anthropic: {
|
||||
label: "Anthropic (Claude)",
|
||||
lines: [
|
||||
["c", "# Commercial Claude via the official Anthropic API"],
|
||||
["k", "OPENSCRIBE_LLM_PROVIDER", "anthropic"],
|
||||
["k", "OPENSCRIBE_LLM_API_KEY", "sk-ant-..."],
|
||||
["k", "OPENSCRIBE_LLM_MODEL", "claude-opus-4-8"],
|
||||
],
|
||||
},
|
||||
groq: {
|
||||
label: "Groq",
|
||||
lines: [
|
||||
["c", "# Fast + cheap, OpenAI-compatible"],
|
||||
["k", "OPENSCRIBE_LLM_PROVIDER", "openai_compatible"],
|
||||
["k", "OPENSCRIBE_LLM_BASE_URL", "https://api.groq.com/openai/v1"],
|
||||
["k", "OPENSCRIBE_LLM_API_KEY", "gsk_..."],
|
||||
["k", "OPENSCRIBE_LLM_MODEL", "llama-3.3-70b-versatile"],
|
||||
],
|
||||
},
|
||||
lmstudio: {
|
||||
label: "LM Studio (local)",
|
||||
lines: [
|
||||
["c", "# A local model server on your LAN, OpenAI-compatible"],
|
||||
["k", "OPENSCRIBE_LLM_PROVIDER", "openai_compatible"],
|
||||
["k", "OPENSCRIBE_LLM_BASE_URL", "http://localhost:1234/v1"],
|
||||
["k", "OPENSCRIBE_LLM_MODEL", "local-model"],
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
function esc(s) { return s.replace(/&/g, "&").replace(/</g, "<"); }
|
||||
|
||||
function render(key) {
|
||||
var p = PROVIDERS[key];
|
||||
var html = p.lines.map(function (l) {
|
||||
if (l[0] === "c") return '<span class="c">' + esc(l[1]) + "</span>";
|
||||
return '<span class="k">' + esc(l[1]) + "</span>=" + esc(l[2]);
|
||||
}).join("\n");
|
||||
document.getElementById("env-out").innerHTML = html;
|
||||
}
|
||||
|
||||
function init() {
|
||||
var picker = document.getElementById("provider-picker");
|
||||
if (!picker) return;
|
||||
Object.keys(PROVIDERS).forEach(function (key, i) {
|
||||
var b = document.createElement("button");
|
||||
b.type = "button";
|
||||
b.textContent = PROVIDERS[key].label;
|
||||
b.setAttribute("aria-pressed", i === 0 ? "true" : "false");
|
||||
b.addEventListener("click", function () {
|
||||
picker.querySelectorAll("button").forEach(function (x) { x.setAttribute("aria-pressed", "false"); });
|
||||
b.setAttribute("aria-pressed", "true");
|
||||
render(key);
|
||||
});
|
||||
picker.appendChild(b);
|
||||
});
|
||||
render(Object.keys(PROVIDERS)[0]);
|
||||
}
|
||||
|
||||
if (document.readyState !== "loading") init();
|
||||
else document.addEventListener("DOMContentLoaded", init);
|
||||
})();
|
||||
128
assets/styles.css
Normal file
128
assets/styles.css
Normal file
|
|
@ -0,0 +1,128 @@
|
|||
/* SPDX-License-Identifier: MIT
|
||||
12 Hobbies Studio - site styles. No framework, no build step. */
|
||||
|
||||
:root {
|
||||
--ink: #10131a;
|
||||
--ink-2: #171b24;
|
||||
--panel: #1e2330;
|
||||
--line: #2c3444;
|
||||
--text: #e7ecf3;
|
||||
--muted: #9aa6b8;
|
||||
--accent: #f0a35e; /* warm amber */
|
||||
--accent-2: #6ec7c0; /* teal */
|
||||
--radius: 14px;
|
||||
--wrap: 1080px;
|
||||
--sans: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||||
--mono: ui-monospace, "SF Mono", "Cascadia Code", "Fira Code", Consolas, monospace;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
html { scroll-behavior: smooth; }
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: var(--sans);
|
||||
color: var(--text);
|
||||
background:
|
||||
radial-gradient(1200px 600px at 80% -10%, rgba(240,163,94,0.10), transparent 60%),
|
||||
radial-gradient(1000px 500px at -10% 10%, rgba(110,199,192,0.08), transparent 55%),
|
||||
var(--ink);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
a { color: var(--accent); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
|
||||
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
|
||||
|
||||
/* Header */
|
||||
.site-header {
|
||||
position: sticky; top: 0; z-index: 10;
|
||||
backdrop-filter: blur(8px);
|
||||
background: rgba(16,19,26,0.72);
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
|
||||
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2px; color: var(--text); }
|
||||
.brand .mark {
|
||||
display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
|
||||
background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0c0e13; font-weight: 800;
|
||||
}
|
||||
.nav a { color: var(--muted); margin-left: 22px; font-weight: 500; }
|
||||
.nav a:hover { color: var(--text); text-decoration: none; }
|
||||
|
||||
/* Hero */
|
||||
.hero { padding: 84px 0 40px; }
|
||||
.eyebrow { color: var(--accent-2); font-family: var(--mono); font-size: 0.82rem; letter-spacing: 2px; text-transform: uppercase; }
|
||||
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; margin: 12px 0 14px; }
|
||||
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 640px; }
|
||||
.hero .accent { color: var(--accent); }
|
||||
|
||||
/* Buttons */
|
||||
.btn {
|
||||
display: inline-block; padding: 11px 18px; border-radius: 10px; font-weight: 600;
|
||||
border: 1px solid var(--line); color: var(--text); background: var(--panel);
|
||||
}
|
||||
.btn:hover { text-decoration: none; border-color: var(--accent); }
|
||||
.btn.primary { background: linear-gradient(135deg, var(--accent), #e8925a); color: #14100a; border: none; }
|
||||
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
|
||||
|
||||
/* Sections */
|
||||
section { padding: 46px 0; }
|
||||
h2 { font-size: 1.7rem; margin: 0 0 6px; }
|
||||
.section-sub { color: var(--muted); margin: 0 0 26px; }
|
||||
|
||||
/* Cards / grid */
|
||||
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
|
||||
.card {
|
||||
background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
|
||||
padding: 20px; transition: border-color .15s, transform .15s;
|
||||
}
|
||||
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
|
||||
.card h3 { margin: 0 0 6px; font-size: 1.12rem; }
|
||||
.card p { color: var(--muted); margin: 0; }
|
||||
.card .tag { display: inline-block; font-family: var(--mono); font-size: 0.72rem; color: var(--accent-2);
|
||||
border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
|
||||
.card.soon { opacity: 0.72; }
|
||||
|
||||
/* Featured */
|
||||
.featured {
|
||||
display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: center;
|
||||
background: linear-gradient(180deg, var(--ink-2), var(--panel));
|
||||
border: 1px solid var(--line); border-radius: 18px; padding: 28px;
|
||||
}
|
||||
.featured h2 { font-size: 1.9rem; }
|
||||
.featured .kicker { color: var(--accent); font-family: var(--mono); font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; }
|
||||
.featured ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); }
|
||||
.diagram {
|
||||
font-family: var(--mono); font-size: 0.8rem; color: var(--muted);
|
||||
background: #0c0f16; border: 1px solid var(--line); border-radius: 12px; padding: 16px; white-space: pre; overflow-x: auto;
|
||||
}
|
||||
@media (max-width: 780px) { .featured { grid-template-columns: 1fr; } }
|
||||
|
||||
/* Provider picker (openscribe page) */
|
||||
.picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
|
||||
.picker button {
|
||||
font-family: var(--sans); font-size: .92rem; cursor: pointer;
|
||||
background: var(--panel); color: var(--text); border: 1px solid var(--line);
|
||||
border-radius: 999px; padding: 8px 15px;
|
||||
}
|
||||
.picker button[aria-pressed="true"] { border-color: var(--accent); background: rgba(240,163,94,0.14); color: var(--text); }
|
||||
pre.code {
|
||||
font-family: var(--mono); font-size: 0.86rem; color: #d7e2f0;
|
||||
background: #0c0f16; border: 1px solid var(--line); border-radius: 12px; padding: 16px; overflow-x: auto;
|
||||
}
|
||||
pre.code .c { color: var(--muted); }
|
||||
pre.code .k { color: var(--accent-2); }
|
||||
|
||||
/* Feature list */
|
||||
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
|
||||
.feature { border-left: 2px solid var(--accent); padding-left: 14px; }
|
||||
.feature h4 { margin: 0 0 3px; }
|
||||
.feature p { margin: 0; color: var(--muted); font-size: 0.96rem; }
|
||||
|
||||
/* Footer */
|
||||
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); }
|
||||
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
|
||||
.pill { font-family: var(--mono); font-size: .75rem; color: var(--accent-2); }
|
||||
Loading…
Add table
Add a link
Reference in a new issue