template
Explore creation
A slate-blue platform map that connects visitors, an edge layer, services and storage with readable labe…
A developer portfolio presented as a friendly terminal. Commands are a strict local allowlist; no code or system commands are evaluated.
<!-- Original layout, SVG/CSS artwork and JavaScript © 2026 XXC Templates. MIT License.
Illustrative sample content and data; no real accounts, purchases or bookings. -->
<main id="top">
<header class="terminal-nav">
<span>◉ ◉ ◉</span>
<p>sam@studio: ~/portfolio</p>
<b>LOCAL DEMO</b>
</header>
<section class="terminal-body">
<div class="terminal-heading">
<span>01 / HELLO, WORLD</span>
<h1>Building useful things.<br />Asking better questions.</h1>
</div>
<div id="history" role="log" aria-live="polite">
<p><b>visitor@studio ~ $</b> whoami</p>
<p>Sam / independent developer / tools, interfaces, creative code.</p>
<p class="terminal-hint">Available commands: help, about, projects, contact, clear</p>
</div>
<form id="command-form">
<label for="command"
><span aria-hidden="true">❯</span><span class="sr-only">Terminal command</span></label
><input
id="command"
autocomplete="off"
spellcheck="false"
placeholder="Type help and press Enter"
/><button id="change" type="button">Run help</button>
</form>
</section>
<div class="terminal-footer">
<span>NO TRACKERS. NO SHELL. JUST CURIOSITY.</span><span>UTF-8 / READY</span>
</div>
<output id="status" class="status" aria-live="polite"></output>
</main>
:root {
--bg: #081914;
--panel: #10271e;
--text: #d9ffe1;
--muted: #90b69e;
--line: #29543d;
--accent: #a2ed79;
}
/* Original XXC Templates Studio collection. MIT; sample data only. */
* {
box-sizing: border-box;
}
html {
color-scheme: dark;
}
body {
margin: 0;
background: var(--bg);
color: var(--text);
font:
14px/1.6 system-ui,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
sans-serif;
padding: clamp(18px, 4vw, 40px);
min-height: 100vh;
}
h1,
h2,
h3,
p {
margin: 0;
}
h1 {
font-size: clamp(27px, 4.8vw, 46px);
line-height: 1.07;
letter-spacing: -0.055em;
font-weight: 650;
}
h2 {
font-size: 22px;
letter-spacing: -0.025em;
line-height: 1.2;
}
h3 {
font-size: 15px;
}
p {
color: var(--muted);
}
button,
input,
select {
font: inherit;
}
button,
a,
input,
select,
summary {
touch-action: manipulation;
}
button {
cursor: pointer;
color: var(--text);
background: var(--panel);
border: 1px solid var(--line);
border-radius: 9px;
padding: 9px 14px;
font-size: 12px;
}
button:hover {
border-color: var(--accent);
}
button[aria-pressed="true"],
button.active {
background: var(--accent);
color: var(--bg);
border-color: var(--accent);
}
button:disabled {
opacity: 0.5;
cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
outline: 3px solid var(--accent);
outline-offset: 4px;
}
a {
color: inherit;
text-underline-offset: 4px;
}
input,
select {
min-width: 0;
max-width: 100%;
color: var(--text);
background: var(--bg);
border: 1px solid var(--line);
border-radius: 8px;
padding: 9px;
}
input[type="range"] {
accent-color: var(--accent);
padding: 0;
}
input[type="checkbox"] {
accent-color: var(--accent);
}
label {
display: flex;
gap: 8px;
align-items: center;
font-size: 12px;
color: var(--muted);
}
svg {
max-width: 100%;
display: block;
}
img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
main {
max-width: 1120px;
margin: auto;
min-width: 0;
}
.kicker {
text-transform: uppercase;
letter-spacing: 0.17em;
font:
10px/1.6 ui-monospace,
monospace;
color: var(--accent);
}
.intro {
display: flex;
justify-content: space-between;
gap: 20px;
align-items: center;
margin-bottom: 25px;
}
.intro h1 {
margin: 8px 0 10px;
}
.intro p {
max-width: 470px;
font-size: 13px;
}
.badge {
display: inline-flex;
border: 1px solid var(--line);
border-radius: 50px;
padding: 5px 10px;
font:
10px ui-monospace,
monospace;
color: var(--muted);
}
.panel {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 16px;
padding: 22px;
min-width: 0;
}
.toolbar {
display: flex;
gap: 9px;
flex-wrap: wrap;
align-items: center;
margin: 16px 0;
}
.primary {
background: var(--accent);
color: var(--bg);
border-color: var(--accent);
}
.grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 15px;
}
.muted {
color: var(--muted);
}
.metric {
font-size: 36px;
letter-spacing: -0.05em;
font-weight: 600;
}
.mono {
font-family: ui-monospace, monospace;
}
.rule {
border: 0;
border-top: 1px solid var(--line);
margin: 20px 0;
}
footer,
.footnote {
font-size: 10px;
color: var(--muted);
margin-top: 18px;
}
.status {
display: block;
min-height: 20px;
margin-top: 10px;
color: var(--accent);
font-size: 12px;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
}
[hidden] {
display: none !important;
}
.data-table {
margin-top: 16px;
font-size: 11px;
color: var(--muted);
}
.data-table summary {
cursor: pointer;
}
.table-scroll {
overflow: auto;
max-width: 100%;
}
table {
border-collapse: collapse;
width: 100%;
font-size: 11px;
}
th,
td {
text-align: left;
border-bottom: 1px solid var(--line);
padding: 9px;
white-space: nowrap;
}
caption {
text-align: left;
color: var(--muted);
padding: 8px 0;
}
.legend {
display: flex;
gap: 17px;
flex-wrap: wrap;
font-size: 11px;
color: var(--muted);
}
.legend i {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--c);
margin-right: 6px;
}
dialog {
max-width: calc(100vw - 36px);
width: 460px;
background: var(--panel);
color: var(--text);
border: 1px solid var(--line);
border-radius: 16px;
padding: 25px;
}
dialog::backdrop {
background: #000a;
}
dialog p {
margin: 12px 0;
}
.media-credit {
font-size: 9px;
margin-top: 16px;
color: var(--muted);
}
.stage {
position: relative;
min-height: 290px;
border-radius: 18px;
overflow: hidden;
border: 1px solid var(--line);
background: var(--panel);
}
@media (max-width: 520px) {
.intro {
align-items: flex-start;
flex-direction: column;
}
.grid {
grid-template-columns: 1fr;
}
.panel {
padding: 17px;
}
.toolbar label {
flex-wrap: wrap;
}
.stage {
min-height: 270px;
}
h1 {
font-size: 32px;
}
.intro p {
font-size: 12px;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*:before,
*:after {
animation: none !important;
transition: none !important;
scroll-behavior: auto !important;
}
}
html {
color-scheme: dark;
}
body {
padding: clamp(18px, 3.4vw, 34px);
}
.site-nav {
display: flex;
justify-content: space-between;
align-items: center;
gap: 15px;
border-bottom: 1px solid var(--line);
padding-bottom: 17px;
margin-bottom: 25px;
}
.wordmark {
font-size: 23px;
font-weight: 750;
text-decoration: none;
letter-spacing: -1.3px;
}
.site-nav > div {
display: flex;
gap: 18px;
align-items: center;
font-size: 10px;
}
.site-nav a {
text-decoration: none;
}
.site-nav a:hover {
text-decoration: underline;
}
.section-label {
font:
10px ui-monospace,
monospace;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--muted);
}
@media (max-width: 500px) {
.site-nav {
align-items: flex-start;
}
.site-nav > div {
gap: 10px;
flex-wrap: wrap;
justify-content: flex-end;
font-size: 10px;
}
}
.terminal-nav {
display: flex;
align-items: center;
gap: 20px;
border: 1px solid #356044;
padding: 12px 17px;
background: #13251b;
border-radius: 12px 12px 0 0;
font:
10px ui-monospace,
monospace;
}
.terminal-nav > span {
color: #7aa06d;
letter-spacing: 5px;
}
.terminal-nav p {
margin: auto;
}
.terminal-nav b {
font-size: 8px;
color: #8ea57c;
}
.terminal-body {
padding: 28px;
background: #0b1a10;
border: 1px solid #356044;
border-top: 0;
min-height: 340px;
font-family: ui-monospace, monospace;
}
.terminal-heading span {
font-size: 8px;
letter-spacing: 2px;
color: #8dba7e;
}
.terminal-heading h1 {
font:
clamp(23px, 4vw, 35px)/1.25 ui-monospace,
monospace;
letter-spacing: -1.7px;
margin: 20px 0 25px;
color: #d2eec2;
}
#history {
font-size: 11px;
max-height: 200px;
overflow: auto;
margin-bottom: 20px;
}
#history p {
margin: 6px 0;
color: #9fbc96;
}
#history b {
color: #c5eab3;
font-weight: 400;
}
.terminal-hint {
color: #6f9168 !important;
}
#command-form {
display: flex;
align-items: center;
gap: 10px;
}
#command-form input {
flex: 1;
background: transparent;
border: 0;
border-bottom: 1px solid #35503a;
border-radius: 0;
font:
12px ui-monospace,
monospace;
padding: 10px 0;
}
#command-form button {
font-size: 9px;
flex-shrink: 0;
}
.terminal-footer {
display: flex;
justify-content: space-between;
gap: 15px;
font:
8px ui-monospace,
monospace;
color: #7d9d71;
padding: 13px 2px;
}
@media (max-width: 520px) {
.terminal-body {
padding: 20px;
}
.terminal-nav {
gap: 8px;
}
.terminal-nav b {
display: none;
}
}
(() => {
"use strict";
const $ = (s) => document.querySelector(s),
$$ = (s) => [...document.querySelectorAll(s)],
status = (t) => {
const el = $("#status");
if (el) el.textContent = t;
},
clamp = (n, a, b) => Math.max(a, Math.min(b, n));
const reduced = matchMedia("(prefers-reduced-motion: reduce)").matches;
const ns = "http://www.w3.org/2000/svg";
function svg(tag, attrs = {}, text) {
const el = document.createElementNS(ns, tag);
for (const [k, v] of Object.entries(attrs)) el.setAttribute(k, String(v));
if (text !== undefined) el.textContent = text;
return el;
}
function table(headers, rows) {
const t = $("#data-table");
if (!t) return;
t.replaceChildren();
const caption = document.createElement("caption");
caption.textContent = "Illustrative sample data";
t.append(caption);
const head = t.createTHead().insertRow();
headers.forEach((v) => {
const th = document.createElement("th");
th.scope = "col";
th.textContent = v;
head.append(th);
});
const body = t.createTBody();
rows.forEach((row) => {
const r = body.insertRow();
row.forEach((v) => (r.insertCell().textContent = String(v)));
});
}
function selectButtons(selector, callback) {
$$(selector).forEach((b) =>
b.addEventListener("click", () => {
$$(selector).forEach((x) => x.setAttribute("aria-pressed", String(x === b)));
callback(b);
}),
);
}
const history = $("#history"),
commands = {
help: "Commands: about / projects / contact / clear. Everything runs locally.",
about: "I build small, useful tools with accessible interfaces and thoughtful details.",
projects:
"01 Atlas / data explorer · 02 Relay / workflow UI · 03 Field Notes / personal journal",
contact: "Fictional portfolio contact: hello@example.com",
};
function run(command) {
const c = command.trim().toLowerCase();
if (c === "clear") {
history.replaceChildren();
status("Terminal history cleared.");
return;
}
const prompt = document.createElement("p");
prompt.textContent = "visitor@studio ~ $ " + command;
const answer = document.createElement("p");
answer.textContent = Object.hasOwn(commands, c)
? commands[c]
: "Command not found. Type help for the available commands.";
history.append(prompt, answer);
while (history.children.length > 30) history.firstElementChild.remove();
history.scrollTop = history.scrollHeight;
status(
Object.hasOwn(commands, c)
? "Ran " + c + " locally."
: "Unknown command. No code was executed.",
);
}
$("#command").addEventListener("keydown", (e) => {
if (e.key === "Enter") {
e.preventDefault();
run($("#command").value);
$("#command").value = "";
}
});
$("#change").addEventListener("click", () => run("help"));
})();
A slate-blue platform map that connects visitors, an edge layer, services and storage with readable labe…
A warm paper diagram explaining sender, recipient and message relationships with key and envelope glyphs…
A pale violet delivery pipeline with branch and merge relationships, distinct gates and a selectable pro…