component
Explore creation
A personal journaling card with mood selection, a short editable reflection and a local session-only rea…
An editorial music-player concept with a generated waveform, seek control and simulated transport. No audio files or autoplay.
<!-- Original layout, SVG/CSS artwork and JavaScript © 2026 XXC Templates. MIT License.
Illustrative sample content and data; no real accounts, purchases or bookings. -->
<main>
<header class="intro">
<div>
<div class="kicker">AFTER HOURS / INTERFACE STUDY</div>
<h1>A quieter frequency.</h1>
<p>A visual player prototype. Transport is simulated; no audio is loaded.</p>
</div>
</header>
<section class="player panel">
<div class="album" role="img" aria-label="Original abstract moon and sunset album artwork">
<span>NO SIGNAL<br />AFTER HOURS / VOL. 01</span>
<div></div>
<b>03:24</b>
</div>
<div class="transport">
<span class="kicker">NOW IN YOUR ORBIT</span>
<h2>Somewhere<br />between things.</h2>
<p>NO SIGNAL / SAMPLE TRACK</p>
<svg id="wave" viewBox="0 0 300 50" aria-label="Decorative audio waveform" role="img"></svg
><label class="sr-only" for="seek">Playback position</label
><input id="seek" type="range" min="0" max="204" value="0" />
<div class="time"><output id="time">0:00</output><span>3:24</span></div>
<div class="toolbar">
<button id="change" class="primary" aria-pressed="false">▶ Play demo</button
><button id="restart">↺ Restart</button>
</div>
<span class="badge">SIMULATED TRANSPORT / NO AUDIO</span>
</div>
</section>
<output id="status" class="status" aria-live="polite"></output>
</main>
:root {
--bg: #f9eae3;
--panel: #fff8f0;
--text: #473a45;
--muted: #796777;
--line: #e3c8ce;
--accent: #9d526f;
}
/* 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: light;
}
.player {
display: grid;
grid-template-columns: 1fr 1.1fr;
gap: 30px;
padding: 25px;
}
.album {
aspect-ratio: 1;
background: #b27363;
position: relative;
overflow: hidden;
border-radius: 6px;
color: #ffecda;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 22px;
}
.album:before {
content: "";
width: 68%;
aspect-ratio: 1;
position: absolute;
border-radius: 50%;
background: #e9cbaa;
left: 16%;
top: 18%;
}
.album:after {
content: "";
position: absolute;
left: -10%;
right: -10%;
height: 50%;
bottom: -7%;
background: repeating-linear-gradient(0deg, #754d62 0 3px, #bc887777 3px 9px);
transform: rotate(-12deg);
}
.album span {
position: relative;
z-index: 1;
font:
9px/1.7 ui-monospace,
monospace;
letter-spacing: 2px;
}
.album b {
z-index: 1;
font:
41px Georgia,
serif;
}
.transport {
padding: 12px 0;
}
.transport h2 {
font:
30px/1.15 Georgia,
serif;
margin: 15px 0;
}
.transport p {
font:
8px ui-monospace,
monospace;
letter-spacing: 1px;
}
#wave {
margin: 23px 0 8px;
width: 100%;
height: 50px;
}
#seek {
width: 100%;
}
.time {
display: flex;
justify-content: space-between;
font:
9px ui-monospace,
monospace;
color: var(--muted);
}
.transport .badge {
font-size: 7px;
}
@media (max-width: 520px) {
.player {
grid-template-columns: 1fr;
}
.album {
max-width: 300px;
width: 100%;
margin: auto;
}
}
(() => {
"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);
}),
);
}
for (let i = 0; i < 60; i++) {
const h = 7 + Math.abs(Math.sin(i * 1.7) * Math.cos(i * 0.19)) * 36;
$("#wave").append(
svg("rect", {
x: i * 5,
y: 25 - h / 2,
width: 2.8,
height: h,
rx: 1.4,
fill: "var(--accent)",
opacity: 0.25 + i / 100,
}),
);
}
let playing = false,
timer;
function paint() {
const n = Number($("#seek").value);
$("#time").textContent = Math.floor(n / 60) + ":" + String(n % 60).padStart(2, "0");
}
function stop() {
playing = false;
clearInterval(timer);
$("#change").textContent = "▶ Play demo";
$("#change").setAttribute("aria-pressed", "false");
}
$("#change").addEventListener("click", () => {
if (playing) {
stop();
status("Demo playback paused.");
return;
}
if (Number($("#seek").value) === 204) $("#seek").value = 0;
playing = true;
$("#change").textContent = "Ⅱ Pause";
$("#change").setAttribute("aria-pressed", "true");
status("Visual playback started. This prototype has no audio.");
timer = setInterval(() => {
$("#seek").value = Number($("#seek").value) + 1;
paint();
if (Number($("#seek").value) >= 204) {
stop();
status("Demo track finished.");
}
}, 1000);
});
$("#seek").addEventListener("input", paint);
$("#restart").addEventListener("click", () => {
stop();
$("#seek").value = 0;
paint();
status("Demo track reset.");
});
})();
A personal journaling card with mood selection, a short editable reflection and a local session-only rea…
A cyberpunk event ticket with quantity calculation, tier selection and a clearly marked local reservatio…
An interactive cubic Bézier diagram with keyboard-friendly control sliders and copyable path coordinates.