Gratis
Demo
Sabela Rooke Demo
A demo block extracted from the Sabela Rooke template, available in Tailwind CSS.
0
1
A demo block extracted from the Sabela Rooke 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>Sabela Rooke Demo | Tailwind CSS UI Block</title>
<meta name="description" content="A demo block extracted from the Sabela Rooke template, available in Tailwind CSS.">
<meta name="keywords" content="Sabela Rooke, Tailwind CSS template, HTML website template, writer website template, author blog template, personal blog, essay blog, newsletter signup, book page, blog template">
<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="Sabela Rooke | Tailwind CSS Blog Template">
<meta property="og:description" content="A quiet Tailwind CSS template for writers and personal blogs: each entry has its own pastel page, a stacked date, a huge black title and one red serif word, with an archive, articles, an about page and a monthly letter.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Sabela Rooke template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Sabela Rooke | Tailwind CSS Blog Template">
<meta name="twitter:description" content="A quiet Tailwind CSS template for writers and personal blogs: each entry has its own pastel page, a stacked date, a huge black title and one red serif word, with an archive, articles, an about page and a monthly letter.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Sabela Rooke 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=Bricolage+Grotesque:opsz,wght@12..96,800&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
ink: { DEFAULT: '#1b2220', soft: '#414a47' },
paper: '#f6f1e7',
rose: '#d83a56',
sage: '#b9cbb7',
salmon: '#f5b39c',
butter: '#f0dca2',
lilac: '#cec5de'
},
fontFamily: {
heavy: ['"Bricolage Grotesque"', 'sans-serif'],
display: ['"Playfair Display"', 'serif'],
serif: ['Newsreader', 'serif']
}
}
}
}
</script>
<style>
@view-transition { navigation: auto; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.heavy { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; letter-spacing: -.045em; line-height: .86; }
.red-word { font-family: "Playfair Display", serif; font-weight: 500; color: #d83a56; line-height: 1; letter-spacing: -.01em; }
.small-caps { font-family: "Playfair Display", serif; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
/* The cover takes the colour of the entry it shows. */
.cover { background: var(--ground, #b9cbb7); transition: background-color .7s ease; }
.slides { display: grid; }
.slides > * { grid-area: 1 / 1; transition: opacity .6s ease, visibility .6s; }
.slides > [aria-hidden="true"] { opacity: 0; visibility: hidden; }
.entry-row { transition: background-color .35s ease; }
.entry-row:hover, .entry-row:focus-within { background: var(--tint); }
.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) { .cover, .slides > *, .entry-row { transition: none; } }
</style>
</head>
<body class="bg-paper font-serif text-ink antialiased">
<!-- block:start demo -->
<section id="first-lines" class="cover px-5 py-20 md:px-10 md:py-32" style="--ground: #b9cbb7" data-lines>
<p class="small-caps">First lines</p>
<div class="mt-8 md:mt-12" aria-live="polite">
<p class="max-w-6xl font-display text-[clamp(2rem,5.2vw,5.2rem)] leading-[1.08]" data-lines-text>“Nobody in my family has ever missed the ferry, and nobody has ever arrived on time for it either.”</p>
<p class="mt-8 text-lg">From <a href="the-long-way-to-the-ferry.html" class="border-b border-ink italic hover:border-rose hover:text-rose" data-lines-link>The Long Way to the Ferry</a></p>
</div>
<button type="button" data-lines-next class="heavy mt-12 inline-flex items-center gap-4 rounded-full bg-ink px-8 py-4 text-xl tracking-normal text-paper transition hover:bg-rose">Another first line <i class="fa-solid fa-shuffle text-base"></i></button>
<script type="application/json" data-lines-data>[{"first":"Nobody in my family has ever missed the ferry, and nobody has ever arrived on time for it either.","title":"The Long Way to the Ferry","slug":"the-long-way-to-the-ferry","ground":"#b9cbb7"},{"first":"My grandmother salted the water, the cod, the doorstep in January and, once, a letter from the bank.","title":"What My Grandmother Salted","slug":"what-my-grandmother-salted","ground":"#f5b39c"},{"first":"The desk is not mine, which is the best thing about it.","title":"Notes on a Borrowed Desk","slug":"notes-on-a-borrowed-desk","ground":"#f0dca2"},{"first":"A story that ends too neatly has stopped trusting you.","title":"Against the Tidy Ending","slug":"against-the-tidy-ending","ground":"#cec5de"}]</script>
</section>
<!-- block:end demo -->
<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);
});
});
// Cover: one entry at a time, and the page takes that entry's colour.
document.querySelectorAll("[data-cover]").forEach((root) => {
const slides = [...root.querySelectorAll("[data-slide]")];
if (slides.length < 2) return;
let current = 0;
const show = (index) => {
current = (index + slides.length) % slides.length;
slides.forEach((slide, i) => {
if (i === current) slide.removeAttribute("aria-hidden"); else slide.setAttribute("aria-hidden", "true");
});
root.style.setProperty("--ground", slides[current].dataset.ground);
root.querySelector("[data-cover-count]").textContent = current + 1;
};
root.querySelector("[data-cover-prev]")?.addEventListener("click", () => show(current - 1));
root.querySelector("[data-cover-next]")?.addEventListener("click", () => show(current + 1));
root.addEventListener("keydown", (event) => {
if (event.key === "ArrowLeft") show(current - 1);
if (event.key === "ArrowRight") show(current + 1);
});
});
// Entry filter.
document.querySelectorAll("[data-entries]").forEach((root) => {
const buttons = [...root.querySelectorAll("[data-entries-filter]")];
buttons.forEach((button) => button.addEventListener("click", () => {
const kind = button.dataset.entriesFilter;
buttons.forEach((other) => other.setAttribute("aria-pressed", String(other === button)));
root.querySelectorAll("[data-kind]").forEach((row) => { row.hidden = kind !== "All" && row.dataset.kind !== kind; });
}));
});
// First lines: step through the opening sentence of each entry.
document.querySelectorAll("[data-lines]").forEach((root) => {
const lines = JSON.parse(root.querySelector("[data-lines-data]").textContent);
const text = root.querySelector("[data-lines-text]");
const link = root.querySelector("[data-lines-link]");
let current = 0;
root.querySelector("[data-lines-next]").addEventListener("click", () => {
current = (current + 1) % lines.length;
const line = lines[current];
text.textContent = `“${line.first}”`;
link.textContent = line.title;
link.href = `${line.slug}.html`;
root.style.setProperty("--ground", line.ground);
});
});
// Monthly letter sign-up.
document.querySelectorAll("[data-letter]").forEach((form) => {
form.addEventListener("submit", (event) => {
event.preventDefault();
const input = form.querySelector('input[type="email"]');
const ok = input.value.trim() !== "" && input.checkValidity();
form.querySelector("[data-letter-error]").hidden = ok;
form.querySelector("[data-letter-done]").hidden = !ok;
if (ok) input.value = "";
});
});
(() => {
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));
})();
</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>
Blog
Desbloquea toda la biblioteca de plantillas y bloques premium. Se renueva automáticamente, cancela cuando quieras.
Tailwind CSS · 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é