template
Explore creation
A slate-blue platform map that connects visitors, an edge layer, services and storage with readable labe…
An inviting public-library catalogue with CSS book covers, reading-room typography and fiction/nonfiction filters.
<!-- Original layout, SVG/CSS artwork and JavaScript © 2026 XXC Templates. MIT License.
Visual pattern references (original code, names and content; no affiliation):
Wikipedia: https://www.wikipedia.org/
A knowledge index centered on search, languages and structured text.
HTML5 UP Editorial: https://html5up.net/uploads/demos/editorial/
A publication masthead, sidebar index and split article introduction.
Illustrative sample content and data; no real accounts, payments, reservations or messages. -->
<main>
<header>
<b>shelfmark<span>PUBLIC LIBRARY</span></b>
<nav><a href="#catalog">Explore the shelves</a><a href="#visit">Plan a visit</a></nav>
</header>
<section class="library-title">
<h1>Your next chapter<br /><i>is waiting here.</i></h1>
<p>Borrow a book. Find a quiet corner.<br />Stay a little longer than you planned.</p>
</section>
<section id="catalog">
<div class="catalog-head">
<h2>On our shelves</h2>
<div>
<button data-kind="all" aria-pressed="true">All books</button
><button id="change" data-kind="fiction">Fiction</button
><button data-kind="nonfiction">Nonfiction</button>
</div>
</div>
<div class="books">
<article data-kind="fiction">
<div style="background: #8b6f80">
<small>SHELFMARK EDITIONS</small>
<h3>The Other Side of Tuesday</h3>
<i>◐</i><b>E. ROWAN</b>
</div>
<p>fiction / Fictional sample</p>
</article>
<article data-kind="nonfiction">
<div style="background: #7b9175">
<small>SHELFMARK EDITIONS</small>
<h3>A Field Guide to Ordinary Things</h3>
<i>✳</i><b>M. ASH</b>
</div>
<p>nonfiction / Fictional sample</p>
</article>
<article data-kind="fiction">
<div style="background: #708997">
<small>SHELFMARK EDITIONS</small>
<h3>Letters from a Small Island</h3>
<i>≈</i><b>J. WREN</b>
</div>
<p>fiction / Fictional sample</p>
</article>
<article data-kind="nonfiction">
<div style="background: #b29768">
<small>SHELFMARK EDITIONS</small>
<h3>How to Notice a Tree</h3>
<i>↟</i><b>A. REED</b>
</div>
<p>nonfiction / Fictional sample</p>
</article>
</div>
</section>
<aside id="visit">
<strong>A place to begin.</strong
><span>Sample opening hours / Monday–Saturday, 09:00–18:00</span>
</aside>
<output data-status aria-live="polite"></output>
<footer class="demo-note">Fictional brand · local interface demo · no information is sent</footer>
</main>
* {
box-sizing: border-box;
}
html {
scrollbar-gutter: stable;
}
body {
margin: 0;
font:
14px/1.5 Arial,
Helvetica,
sans-serif;
background: #fff;
color: #202622;
}
h1,
h2,
h3,
p,
figure {
margin: 0;
}
main,
section,
article,
aside,
header,
nav {
min-width: 0;
}
button,
input,
select,
textarea {
font: inherit;
max-width: 100%;
min-width: 0;
}
button,
a,
input,
select,
summary {
touch-action: manipulation;
}
button {
cursor: pointer;
}
a {
color: inherit;
}
img {
display: block;
max-width: 100%;
object-fit: cover;
}
svg {
display: block;
max-width: 100%;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
outline: 3px solid #2781da;
outline-offset: 3px;
}
[hidden] {
display: none !important;
}
[data-status] {
display: block;
min-height: 24px;
font-size: 12px;
margin-top: 14px;
}
.demo-note {
font:
9px/1.6 ui-monospace,
monospace;
padding: 16px 0;
opacity: 0.75;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
}
dialog {
max-width: calc(100vw - 32px);
width: 480px;
border: 1px solid #666;
padding: 25px;
background: #fff;
color: #202622;
}
dialog::backdrop {
background: #0008;
}
dialog h2 {
margin-bottom: 15px;
}
dialog p {
margin: 12px 0;
}
dialog button {
margin-top: 16px;
}
@media (prefers-reduced-motion: reduce) {
*,
*:before,
*:after {
animation: none !important;
transition: none !important;
scroll-behavior: auto !important;
}
}
body {
background: #f5efe2;
color: #5d5543;
}
main {
max-width: 1100px;
margin: auto;
padding: 25px 35px;
}
header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 25px;
border-bottom: 1px solid #c9b895;
padding-bottom: 20px;
}
header > b {
font:
31px Georgia,
serif;
letter-spacing: -1px;
}
header b span {
display: block;
font: 6px monospace;
letter-spacing: 3px;
margin-top: 8px;
color: #aa9977;
}
nav {
display: flex;
gap: 25px;
font-size: 10px;
}
nav a {
text-decoration: none;
}
.library-title {
display: flex;
justify-content: space-between;
align-items: end;
gap: 25px;
margin: 30px 0;
}
h1 {
font:
39px/1.06 Georgia,
serif;
letter-spacing: -1px;
}
h1 i {
color: #9a865f;
}
.library-title p {
font:
11px/1.8 Georgia,
serif;
color: #a8946e;
}
.catalog-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
border-block: 1px solid #c9b895;
padding: 13px 0;
}
h2 {
font:
22px Georgia,
serif;
}
button {
border: 0;
border-bottom: 1px solid transparent;
background: none;
color: #ad9b76;
padding: 6px 8px;
font:
10px Georgia,
serif;
}
button[aria-pressed="true"] {
color: #6e7850;
border-color: #a3ae82;
}
.books {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 23px;
margin: 23px 0;
}
article > div {
height: 220px;
padding: 18px;
color: #f6edda;
border-left: 6px solid #0002;
box-shadow: 5px 5px 0 #d8cbae;
position: relative;
}
article small {
font: 5px monospace;
letter-spacing: 1px;
}
h3 {
font:
24px/1.04 Georgia,
serif;
margin-top: 20px;
}
article i {
font:
40px Georgia,
serif;
opacity: 0.5;
position: absolute;
bottom: 38px;
}
article b {
position: absolute;
bottom: 16px;
font: 6px monospace;
letter-spacing: 1px;
}
article > p {
font: 7px monospace;
color: #b6a27b;
margin-top: 15px;
}
aside {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
border-top: 1px solid #c9b895;
padding-top: 20px;
}
aside strong {
font:
22px Georgia,
serif;
}
aside span {
font-size: 9px;
color: #aa9873;
}
@media (max-width: 540px) {
main {
padding: 20px;
}
header {
gap: 20px;
}
nav {
font-size: 8px;
gap: 14px;
}
.library-title {
align-items: start;
flex-direction: column;
gap: 15px;
}
h1 {
font-size: 35px;
}
.catalog-head {
align-items: start;
flex-direction: column;
gap: 10px;
}
.books {
grid-template-columns: repeat(2, 1fr);
gap: 23px 17px;
}
article > div {
height: 215px;
padding: 15px;
}
h3 {
font-size: 22px;
}
aside {
align-items: start;
flex-direction: column;
gap: 10px;
}
}
(() => {
"use strict";
const $ = (s) => document.querySelector(s),
$$ = (s) => [...document.querySelectorAll(s)];
const status = (text) => {
const el = $("[data-status]");
if (el) el.textContent = text;
};
const escapeText = (s) =>
String(s).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
function choose(selector, fn) {
$$(selector).forEach((b) =>
b.addEventListener("click", () => {
$$(selector).forEach((x) => x.setAttribute("aria-pressed", String(x === b)));
fn(b);
}),
);
}
function filter(selector, items, key) {
choose(selector, (b) => {
$$(items).forEach(
(el) => (el.hidden = b.dataset[key] !== "all" && el.dataset.kind !== b.dataset[key]),
);
status($$(items).filter((el) => !el.hidden).length + " results shown.");
});
}
function textList(target, values) {
$(target).replaceChildren(
...values.map((text) => {
const p = document.createElement("p");
p.textContent = text;
return p;
}),
);
}
choose("[data-kind]", (b) => {
$$(".books article").forEach(
(el) => (el.hidden = b.dataset.kind !== "all" && el.dataset.kind !== b.dataset.kind),
);
status($$(".books article").filter((el) => !el.hidden).length + " fictional books shown.");
});
})();
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…