Gratis
Demo
Glyphwell Demo
A demo block extracted from the Glyphwell template, available in Tailwind CSS.
0
8
A demo block extracted from the Glyphwell template, available in Tailwind CSS.
<!DOCTYPE html>
<html lang="en">
<head>
<script>
window.FontAwesomeConfig = { autoReplaceSvg: 'nest' };
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Glyphwell Demo | Tailwind CSS UI Block</title>
<meta name="description" content="A demo block extracted from the Glyphwell template, available in Tailwind CSS.">
<meta name="keywords" content="Glyphwell, Tailwind CSS template, HTML website template, SaaS template, developer tool landing page, API product website, web font service, live demo section, pricing calculator, minimal serif design">
<meta name="author" content="Let's templates">
<link rel="canonical" href="">
<meta property="og:type" content="product">
<meta property="og:site_name" content="Let's templates">
<meta property="og:locale" content="en_US">
<meta property="og:url" content="">
<meta property="og:title" content="Glyphwell | Tailwind CSS SaaS Template">
<meta property="og:description" content="A quiet Tailwind CSS SaaS template for developer tools and APIs, with drifting colour-split letters, a snippet you can copy, a live type specimen that writes its own embed code, a price slider and pages for features, pricing and contact.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Glyphwell template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Glyphwell | Tailwind CSS SaaS Template">
<meta name="twitter:description" content="A quiet Tailwind CSS SaaS template for developer tools and APIs, with drifting colour-split letters, a snippet you can copy, a live type specimen that writes its own embed code, a price slider and pages for features, pricing and contact.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Glyphwell template preview">
<script src="https://cdn.tailwindcss.com/3.4.17"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Instrument+Sans:wght@400..700&family=JetBrains+Mono:wght@300..800&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
ink: '#161616',
mist: '#767676',
rule: '#e4e4e4',
cyan: '#00c8ff',
magenta: '#ff2bd1',
lemon: '#ffe600'
},
fontFamily: {
serif: ['"EB Garamond"', 'serif'],
sans: ['"Instrument Sans"', 'sans-serif'],
mono: ['"JetBrains Mono"', 'monospace']
}
}
}
}
</script>
<style>
@view-transition { navigation: auto; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.caps { font-family: "Instrument Sans", sans-serif; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.under { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.under:hover { text-decoration-color: #ff2bd1; }
.fringe { text-shadow: -.045em 0 0 rgba(0, 200, 255, .85), .045em 0 0 rgba(255, 43, 209, .75); }
.ghost { position: absolute; font-family: "Instrument Sans", sans-serif; font-weight: 700; line-height: 1; color: transparent; text-shadow: -.14em .02em 0 rgba(0, 200, 255, .8), 0 0 0 rgba(255, 43, 209, .75), .14em -.02em 0 rgba(255, 230, 0, .9); filter: blur(var(--blur, 5px)); transform: skew(-32deg, -14deg) scaleY(.6); mix-blend-mode: multiply; user-select: none; pointer-events: none; animation: drift 9s ease-in-out infinite alternate; animation-delay: var(--delay, 0s); }
@keyframes drift { to { translate: 16px -12px; } }
.btn-ink { display: inline-flex; align-items: center; justify-content: space-between; gap: 2.5rem; min-width: 11rem; padding: 1rem 1.3rem; border-radius: 2px; background: #161616; color: #fff; transition: box-shadow .2s ease; }
.btn-ink:hover, .btn-ink:focus-visible { box-shadow: -5px 0 0 #00c8ff, 5px 0 0 #ff2bd1, 0 5px 0 #ffe600; }
.plain { border: 0; border-bottom: 1px solid #161616; border-radius: 0; background-color: transparent; padding: .7rem 0; outline: none; }
.plain:focus { box-shadow: 0 2px 0 #ff2bd1; }
input[type="range"] { accent-color: #161616; }
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--reveal-delay, 0ms); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ghost { animation: none; } html { scroll-behavior: auto; } }
</style>
</head>
<body class="bg-white font-serif text-lg text-ink antialiased">
<!-- block:start demo -->
<section id="specimen" class="px-6 py-20 md:px-14 md:py-28">
<div class="mx-auto max-w-[1500px]" data-specimen>
<div class="grid gap-8 lg:grid-cols-12">
<div class="lg:col-span-5">
<p class="caps text-mist">Try it</p>
<h2 class="mt-4 text-4xl leading-tight md:text-5xl">Type a headline and watch the file shrink.</h2>
</div>
<p class="self-end text-mist lg:col-span-4 lg:col-start-9">Write your own words, pick a family and a weight. The font we would send holds those letters and nothing else, and the snippet below is ready to paste.</p>
</div>
<div class="mt-12 grid gap-10 border-t border-ink pt-8 lg:grid-cols-12">
<div class="space-y-8 lg:col-span-3">
<label class="block">
<span class="caps text-mist">Your text</span>
<input type="text" data-specimen-text value="Quiet letters travel fast" maxlength="60" class="plain mt-1 w-full text-xl">
</label>
<fieldset>
<legend class="caps text-mist">Family</legend>
<div class="mt-3 flex flex-wrap gap-x-6 gap-y-2 text-xl">
<label class="cursor-pointer">
<input type="radio" name="family" value="EB Garamond" data-full="286" class="peer sr-only" checked>
<span class="font-serif border-b border-transparent pb-1 text-mist peer-checked:border-ink peer-checked:text-ink peer-focus-visible:border-magenta">Garamond</span>
</label>
<label class="cursor-pointer">
<input type="radio" name="family" value="Instrument Sans" data-full="214" class="peer sr-only" >
<span class="font-sans border-b border-transparent pb-1 text-mist peer-checked:border-ink peer-checked:text-ink peer-focus-visible:border-magenta">Instrument</span>
</label>
<label class="cursor-pointer">
<input type="radio" name="family" value="JetBrains Mono" data-full="342" class="peer sr-only" >
<span class="font-mono border-b border-transparent pb-1 text-mist peer-checked:border-ink peer-checked:text-ink peer-focus-visible:border-magenta">Mono</span>
</label>
</div>
</fieldset>
<label class="block">
<span class="caps flex justify-between text-mist"><span>Weight</span><output data-specimen-weight-label>500</output></span>
<input type="range" min="400" max="700" step="10" value="500" data-specimen-weight class="mt-3 w-full">
</label>
<label class="block">
<span class="caps flex justify-between text-mist"><span>Size</span><output data-specimen-size-label>96 px</output></span>
<input type="range" min="32" max="140" step="2" value="96" data-specimen-size class="mt-3 w-full">
</label>
</div>
<div class="min-w-0 lg:col-span-8 lg:col-start-5">
<p class="fringe flex min-h-[14rem] items-center overflow-hidden break-words leading-none md:min-h-[18rem]" data-specimen-output style="font-family: 'EB Garamond', serif; font-weight: 500; font-size: clamp(2rem, 9vw, 96px)">Quiet letters travel fast</p>
<dl class="mt-8 grid grid-cols-3 gap-6 border-t border-rule pt-6">
<div>
<dt class="caps text-mist">Letters sent</dt>
<dd class="mt-1 text-3xl md:text-4xl" data-specimen-glyphs>11</dd>
</div>
<div>
<dt class="caps text-mist">File size</dt>
<dd class="mt-1 text-3xl md:text-4xl"><span data-specimen-size-kb>6.8</span> kB</dd>
</div>
<div>
<dt class="caps text-mist">Smaller by</dt>
<dd class="mt-1 text-3xl md:text-4xl"><span data-specimen-saving>98</span>%</dd>
</div>
</dl>
<div class="mt-8 flex flex-wrap items-center gap-4 rounded-sm border border-rule px-4 py-3">
<code class="min-w-0 flex-1 overflow-x-auto whitespace-nowrap font-mono text-sm" data-specimen-code><link rel="stylesheet" href="https://cdn.glyphwell.example/css?family=EB+Garamond:wght@500&text=Qaefilrstuv"></code>
<button type="button" data-specimen-copy aria-pressed="false" class="caps under shrink-0">Copy</button>
</div>
</div>
</div>
</div>
</section>
<!-- block:end demo -->
<script type="application/json" data-price-data>
[
{ "views": "10,000", "amount": "$0", "plan": "Free", "note": "three families and one site" },
{ "views": "25,000", "amount": "$0", "plan": "Free", "note": "three families and one site" },
{ "views": "100,000", "amount": "$9", "plan": "Studio", "note": "every family in the library and unlimited sites" },
{ "views": "250,000", "amount": "$19", "plan": "Studio", "note": "every family in the library and unlimited sites" },
{ "views": "500,000", "amount": "$35", "plan": "Studio", "note": "every family in the library and unlimited sites" },
{ "views": "1,000,000", "amount": "$59", "plan": "Network", "note": "your own fonts, your own domain and a support line" },
{ "views": "5,000,000", "amount": "$149", "plan": "Network", "note": "your own fonts, your own domain and a support line" }
]
</script>
<script>
document.querySelectorAll("[data-menu-toggle]").forEach((button) => {
const menu = document.getElementById(button.getAttribute("aria-controls"));
if (!menu) return;
button.addEventListener("click", () => {
const open = button.getAttribute("aria-expanded") === "true";
button.setAttribute("aria-expanded", String(!open));
menu.classList.toggle("hidden", open);
});
});
(() => {
const items = document.querySelectorAll("[data-reveal]");
const skip = navigator.webdriver || !("IntersectionObserver" in window) || matchMedia("(prefers-reduced-motion: reduce)").matches;
if (!items.length || skip) return;
document.documentElement.classList.add("reveal-ready");
const observer = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (!entry.isIntersecting) return;
entry.target.classList.add("is-visible");
observer.unobserve(entry.target);
});
}, { rootMargin: "0px 0px -10% 0px" });
items.forEach((item) => observer.observe(item));
})();
const copyText = (button, text, label) => {
const target = label || button;
const original = target.textContent;
const done = () => {
target.textContent = "Copied";
button.setAttribute("aria-pressed", "true");
setTimeout(() => { target.textContent = original; button.setAttribute("aria-pressed", "false"); }, 1600);
};
if (navigator.clipboard) navigator.clipboard.writeText(text).then(done, done); else done();
};
document.querySelectorAll("[data-install-kind]").forEach((select) => {
const root = select.closest("section");
const code = root.querySelector("[data-install-code]");
const data = JSON.parse(root.querySelector("[data-install-data]").textContent);
select.addEventListener("change", () => { code.textContent = data.find((entry) => entry.kind === select.value).code; });
const button = root.querySelector("[data-install-copy]");
button?.addEventListener("click", () => copyText(button, code.textContent, button.querySelector("[data-install-label]")));
});
document.querySelectorAll("[data-specimen]").forEach((root) => {
const text = root.querySelector("[data-specimen-text]");
const weight = root.querySelector("[data-specimen-weight]");
const size = root.querySelector("[data-specimen-size]");
const output = root.querySelector("[data-specimen-output]");
const code = root.querySelector("[data-specimen-code]");
const update = () => {
const family = root.querySelector("[name=family]:checked");
const words = text.value.trim() || "Aa";
const glyphs = [...new Set(words.replace(/\s/g, ""))].sort();
const kb = 2.4 + glyphs.length * 0.4;
output.textContent = words;
output.style.fontFamily = `'${family.value}', serif`;
output.style.fontWeight = weight.value;
output.style.fontSize = `clamp(2rem, 9vw, ${size.value}px)`;
root.querySelector("[data-specimen-weight-label]").textContent = weight.value;
root.querySelector("[data-specimen-size-label]").textContent = `${size.value} px`;
root.querySelector("[data-specimen-glyphs]").textContent = glyphs.length;
root.querySelector("[data-specimen-size-kb]").textContent = kb.toFixed(1);
root.querySelector("[data-specimen-saving]").textContent = Math.round((1 - kb / Number(family.dataset.full)) * 100);
code.textContent = `<link rel="stylesheet" href="https://cdn.glyphwell.example/css?family=${family.value.replace(/ /g, "+")}:wght@${weight.value}&text=${encodeURIComponent(glyphs.join(""))}">`;
};
root.addEventListener("input", update);
const button = root.querySelector("[data-specimen-copy]");
button?.addEventListener("click", () => copyText(button, code.textContent));
update();
});
document.querySelectorAll("[data-price]").forEach((root) => {
const input = root.querySelector("[data-price-input]");
const data = JSON.parse(root.querySelector("[data-price-data]").textContent);
const update = () => {
const step = data[Number(input.value)];
root.querySelector("[data-price-views]").textContent = step.views;
root.querySelector("[data-price-amount]").textContent = step.amount;
root.querySelector("[data-price-plan]").textContent = step.plan;
root.querySelector("[data-price-note]").textContent = step.note;
};
input.addEventListener("input", update);
update();
});
</script>
<p class="lt-built-with" style="margin:0;padding:12px 16px;text-align:center;font:500 11px/1.4 system-ui,-apple-system,sans-serif;color:#9ca3af;">Built with <a href="https://letstemplates.com" style="color:#059669;text-decoration:none;">Let's templates</a></p>
</body>
</html>
SaaS
Desbloquea toda la biblioteca de plantillas y bloques premium. Se renueva automáticamente, cancela cuando quieras.
DaisyUI · HTML download
Si no empieza, haz clic aquí.
¿Te gustan nuestras plantillas gratis?
Una pequeña propina nos ayuda a seguir añadiendo nuevas cada semana.
Invítanos a un café