Gratis
Portada
Tessel Hero
A hero block extracted from the Tessel template, available in Tailwind CSS.
0
6
A hero block extracted from the Tessel template, available in Tailwind CSS.
Descarga gratis · hasta 5 bloques al día. Ilimitado con All-Access
<!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>Tessel Hero | Tailwind CSS UI Block</title>
<meta name="description" content="A hero block extracted from the Tessel template, available in Tailwind CSS.">
<meta name="keywords" content="Tessel, Tailwind CSS template, HTML website template, home builder template, prefab homes, modular homes, construction company website, general contractor, house models, home configurator">
<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="Tessel | Tailwind CSS Business Template">
<meta property="og:description" content="A bold Tailwind CSS template for prefab home builders, with a module-stacking home planner, a build scrubber, a model catalog and open days.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Tessel template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Tessel | Tailwind CSS Business Template">
<meta name="twitter:description" content="A bold Tailwind CSS template for prefab home builders, with a module-stacking home planner, a build scrubber, a model catalog and open days.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Tessel 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=Outfit:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: { char: { DEFAULT: '#1c1c1c', soft: '#262626', line: '#3a3a3a' }, mustard: { DEFAULT: '#f2c14e', deep: '#d9a62f', soft: '#fbe7b5' }, fog: '#ececec', sand: '#faf6ec' },
fontFamily: { sans: ['Outfit', 'sans-serif'] },
letterSpacing: { label: '0.22em' }
}
}
}
</script>
<style>
@view-transition { navigation: auto; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.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; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; border-radius: 9999px; border: 1.5px solid currentColor; padding: 1rem 2rem; font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.planner-chip:has(input:checked) { background: #f2c14e; border-color: #f2c14e; color: #1c1c1c; }
.planner-chip:has(input:focus-visible) { outline: 2px solid #fbe7b5; outline-offset: 2px; }
[data-model-thumb][aria-pressed="true"] { outline: 3px solid #f2c14e; outline-offset: 3px; }
[data-week-phase][aria-current="step"] { background: #f2c14e; color: #1c1c1c; border-color: #f2c14e; }
.ring-track { transition: stroke-dashoffset 1s ease; }
.stack-card { transition: transform .45s ease, opacity .45s ease; }
input[type="range"] { accent-color: #f2c14e; }
@media (prefers-reduced-motion: reduce) { .stack-card, .ring-track { transition: none; } }
</style>
</head>
<body class="bg-white font-sans text-char antialiased">
<!-- block:start hero -->
<section id="top" class="grid min-h-[calc(100svh-92px)] lg:grid-cols-[1.25fr_1fr]" data-slides>
<div class="relative flex flex-col justify-center bg-char px-5 pb-16 pt-12 text-white md:px-10 lg:px-20 lg:pt-16">
<p class="text-xs font-semibold uppercase tracking-label text-mustard">Factory-built homes, placed on your land</p>
<h1 class="mt-6 max-w-2xl text-5xl font-medium leading-[1.02] md:text-7xl xl:text-[5.6rem]">Pick a home.<br>We bring it to you.</h1>
<p class="mt-8 max-w-lg text-lg font-light leading-relaxed text-white/75 md:text-xl">Twelve architect-drawn models, built indoors in sixteen weeks and craned onto your foundation in a single day, at a fixed price you know before we start.</p>
<div class="mt-10 flex flex-wrap gap-4">
<a href="models.html" class="pill border-white px-8 text-white hover:bg-white hover:text-char">Browse the models</a>
<a href="#planner" class="pill border-mustard bg-mustard px-8 text-char hover:border-white hover:bg-white">Plan my home</a>
</div>
<a href="#models" class="mt-14 grid h-14 w-14 place-items-center rounded-full border border-white/50 text-white hover:border-mustard hover:text-mustard lg:absolute lg:bottom-12 lg:right-12 lg:mt-0" aria-label="Scroll to the models"><i class="fa-solid fa-arrow-down" aria-hidden="true"></i></a>
</div>
<div class="grid grid-rows-[minmax(320px,1.35fr)_auto]">
<div class="relative overflow-hidden bg-mustard">
<figure data-slide class="absolute inset-8 md:inset-12" >
<img src="https://images.unsplash.com/photo-1600047509807-ba8f99d2cdde?auto=format&fit=crop&w=1200&q=80" alt="Two-storey home with warm timber cladding and white render on a green lawn" class="h-full w-full object-cover shadow-2xl">
<figcaption class="absolute bottom-0 left-0 bg-char px-5 py-3 text-white">
<span class="block text-xs uppercase tracking-label text-mustard">3 bed · 148 m²</span>
<span class="text-lg font-medium">The Larch</span>
</figcaption>
</figure>
<figure data-slide class="absolute inset-8 md:inset-12" hidden>
<img src="https://images.unsplash.com/photo-1601918774946-25832a4be0d6?auto=format&fit=crop&w=1200&q=80" alt="Black A-frame cabin glowing among tall pine trees" class="h-full w-full object-cover shadow-2xl">
<figcaption class="absolute bottom-0 left-0 bg-char px-5 py-3 text-white">
<span class="block text-xs uppercase tracking-label text-mustard">1 bed · 64 m²</span>
<span class="text-lg font-medium">The Spruce</span>
</figcaption>
</figure>
<figure data-slide class="absolute inset-8 md:inset-12" hidden>
<img src="https://images.unsplash.com/photo-1523217582562-09d0def993a6?auto=format&fit=crop&w=1200&q=80" alt="White cubic home with deep window reveals under a blue sky" class="h-full w-full object-cover shadow-2xl">
<figcaption class="absolute bottom-0 left-0 bg-char px-5 py-3 text-white">
<span class="block text-xs uppercase tracking-label text-mustard">2 bed · 112 m²</span>
<span class="text-lg font-medium">The Chalk</span>
</figcaption>
</figure>
</div>
<div class="flex items-center justify-between gap-6 bg-white px-8 py-8 md:px-12">
<p class="text-7xl font-medium leading-none text-fog md:text-8xl" aria-live="polite"><span data-slide-index>1</span>/3</p>
<div class="flex gap-3">
<button type="button" data-slide-prev class="grid h-14 w-14 place-items-center rounded-full border border-char/30 hover:border-char hover:bg-char hover:text-white" aria-label="Previous model"><i class="fa-solid fa-arrow-left" aria-hidden="true"></i></button>
<button type="button" data-slide-next class="grid h-14 w-14 place-items-center rounded-full border border-char/30 hover:border-char hover:bg-char hover:text-white" aria-label="Next model"><i class="fa-solid fa-arrow-right" aria-hidden="true"></i></button>
</div>
</div>
</div>
</section>
<!-- block:end hero -->
<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));
})();
document.querySelectorAll('[data-slides]').forEach((root) => {
const slides = [...root.querySelectorAll('[data-slide]')];
const label = root.querySelector('[data-slide-index]');
let current = 0;
const show = (index) => {
current = (index + slides.length) % slides.length;
slides.forEach((slide, i) => { slide.hidden = i !== current; });
if (label) label.textContent = current + 1;
};
root.querySelector('[data-slide-prev]')?.addEventListener('click', () => show(current - 1));
root.querySelector('[data-slide-next]')?.addEventListener('click', () => show(current + 1));
});
document.querySelectorAll('[data-model-showcase]').forEach((root) => {
root.addEventListener('click', (event) => {
const thumb = event.target.closest('[data-model-thumb]');
if (!thumb) return;
root.querySelectorAll('[data-model-thumb]').forEach((button) => button.setAttribute('aria-pressed', String(button === thumb)));
const img = root.querySelector('[data-model-img]');
img.src = thumb.dataset.img;
img.alt = thumb.dataset.alt;
root.querySelector('[data-model-name]').textContent = thumb.dataset.name;
root.querySelector('[data-model-meta]').textContent = thumb.dataset.meta;
root.querySelector('[data-model-text]').textContent = thumb.dataset.text;
root.querySelector('[data-model-price]').textContent = thumb.dataset.price;
root.querySelector('[data-model-link]').href = thumb.dataset.link;
});
});
document.querySelectorAll('[data-planner]').forEach((root) => {
const form = root.querySelector('[data-planner-form]');
const steps = [...form.querySelectorAll('[data-planner-step]')];
const next = form.querySelector('[data-planner-next]');
const back = form.querySelector('[data-planner-back]');
const send = form.querySelector('[data-planner-send]');
const svgNS = 'http://www.w3.org/2000/svg';
const money = (value) => '$' + Math.round(value).toLocaleString('en-US');
const siteCost = { flat: 0, slope: 22000, remote: 41000 };
const siteWeeks = { flat: 0, slope: 2, remote: 4 };
const finishCost = { cedar: 0, char: 6500, render: 4200 };
const labels = { cedar: 'cedar', char: 'charred larch', render: 'white render' };
let current = 0;
const rect = (group, attrs) => {
const el = document.createElementNS(svgNS, 'rect');
Object.entries(attrs).forEach(([key, value]) => el.setAttribute(key, value));
group.appendChild(el);
};
const step = (index) => {
current = index;
steps.forEach((fieldset, i) => { fieldset.hidden = i !== index; });
root.querySelector('[data-planner-step-label]').textContent = index + 1;
root.querySelector('[data-planner-progress]').setAttribute('aria-valuenow', String(index + 1));
root.querySelector('[data-planner-bar]').style.width = `${((index + 1) / steps.length) * 100}%`;
back.disabled = index === 0;
next.hidden = index === steps.length - 1;
send.hidden = index !== steps.length - 1;
};
const update = () => {
const beds = Number(form.querySelector('[name="beds"]:checked').value);
const storeys = Number(form.querySelector('[name="storeys"]').value);
const site = form.querySelector('[name="site"]:checked').value;
const finishInput = form.querySelector('[name="finish"]:checked');
const extras = [...form.querySelectorAll('[name="extras"]:checked')];
const study = extras.some((input) => input.value === 'study');
const modules = beds + 1 + (study ? 0.5 : 0);
const area = Math.round(modules * 37.5);
const extrasCost = extras.reduce((sum, input) => sum + Number(input.dataset.price), 0);
const price = 62000 + modules * 58000 + (storeys === 2 ? 14000 : 0) + siteCost[site] + finishCost[finishInput.value] + extrasCost;
const weeks = 22 + Math.ceil(modules) + siteWeeks[site];
root.querySelector('[data-planner-count]').textContent = modules;
root.querySelector('[data-planner-area]').textContent = `${area} m²`;
root.querySelector('[data-planner-weeks]').textContent = `${weeks} wks`;
root.querySelector('[data-planner-price]').textContent = money(price);
root.querySelector('[data-planner-note]').textContent = `${beds === 1 ? 'Studio' : beds + ' bed'}, ${storeys === 2 ? 'two storeys' : 'single storey'}, ${labels[finishInput.value]}, ${site === 'flat' ? 'flat' : site === 'slope' ? 'sloping' : 'remote'} site${extras.length ? ', ' + extras.length + ' extra' + (extras.length > 1 ? 's' : '') : ''}. Foundations quoted after a free site visit.`;
const group = root.querySelector('[data-planner-modules]');
const roof = root.querySelector('[data-planner-roof]');
const solar = root.querySelector('[data-planner-solar]');
const deck = root.querySelector('[data-planner-deck]');
[group, roof, solar, deck].forEach((g) => { g.innerHTML = ''; });
const whole = Math.floor(modules);
const perRow = storeys === 2 ? Math.ceil(whole / 2) : whole;
const width = Math.min(70, 260 / perRow);
const totalWidth = perRow * width;
const startX = (320 - totalWidth) / 2;
const height = storeys === 2 ? 52 : 64;
for (let i = 0; i < whole; i += 1) {
const row = storeys === 2 ? Math.floor(i / perRow) : 0;
const col = storeys === 2 ? i % perRow : i;
rect(group, { x: startX + col * width, y: 180 - height * (row + 1), width: width - 3, height: height - 3, fill: finishInput.dataset.swatch, stroke: '#1c1c1c', 'stroke-width': 2 });
rect(group, { x: startX + col * width + width * 0.25, y: 180 - height * (row + 1) + height * 0.25, width: width * 0.45, height: height * 0.4, fill: '#bfe0f2', stroke: '#1c1c1c', 'stroke-width': 1.5 });
}
const rows = storeys === 2 && whole > perRow ? 2 : 1;
const top = 180 - height * rows;
if (study) rect(group, { x: startX + totalWidth + 4, y: 180 - height * 0.7, width: width * 0.5, height: height * 0.7 - 3, fill: '#f2c14e', stroke: '#1c1c1c', 'stroke-width': 2 });
rect(roof, { x: startX - 6, y: top - 8, width: totalWidth + 9, height: 8, fill: '#1c1c1c' });
if (extras.some((input) => input.value === 'solar')) {
for (let x = startX; x < startX + totalWidth - 18; x += 22) rect(solar, { x, y: top - 18, width: 18, height: 8, fill: '#2f4f7f', stroke: '#1c1c1c', 'stroke-width': 1 });
}
if (extras.some((input) => input.value === 'deck')) rect(deck, { x: Math.max(4, startX - 46), y: 172, width: 42, height: 8, fill: '#b9824f', stroke: '#1c1c1c', 'stroke-width': 1.5 });
};
next.addEventListener('click', () => step(Math.min(current + 1, steps.length - 1)));
back.addEventListener('click', () => step(Math.max(current - 1, 0)));
form.addEventListener('change', update);
step(0);
update();
});
document.querySelectorAll('[data-week-scrubber]').forEach((root) => {
const range = root.querySelector('[data-week-range]');
const chips = [...root.querySelectorAll('[data-week-phase]')];
const show = (week) => {
const active = [...chips].reverse().find((chip) => week >= Number(chip.dataset.from)) || chips[0];
chips.forEach((chip) => (chip === active ? chip.setAttribute('aria-current', 'step') : chip.removeAttribute('aria-current')));
root.querySelectorAll('[data-week-panel]').forEach((panel) => { panel.hidden = panel.dataset.weekPanel !== active.dataset.weekPhase; });
root.querySelectorAll('[data-week-number]').forEach((number) => { number.textContent = String(week).padStart(2, '0'); });
};
range.addEventListener('input', () => show(Number(range.value)));
chips.forEach((chip) => chip.addEventListener('click', () => { range.value = chip.dataset.from; show(Number(chip.dataset.from)); }));
show(Number(range.value));
});
(() => {
const rings = document.querySelectorAll('[data-ring]');
if (!rings.length || navigator.webdriver || matchMedia('(prefers-reduced-motion: reduce)').matches || !('IntersectionObserver' in window)) return;
rings.forEach((ring) => { ring.dataset.offset = ring.getAttribute('stroke-dashoffset'); ring.setAttribute('stroke-dashoffset', '326.7'); });
const observer = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (!entry.isIntersecting) return;
entry.target.setAttribute('stroke-dashoffset', entry.target.dataset.offset);
observer.unobserve(entry.target);
});
});
rings.forEach((ring) => observer.observe(ring));
})();
document.querySelectorAll('[data-stack]').forEach((stack) => {
const section = stack.closest('section');
const label = section.querySelector('[data-stack-index]');
let cards = [...stack.querySelectorAll('[data-stack-card]')];
let shown = 0;
const total = cards.length;
const layout = () => cards.forEach((card, i) => { card.style.transform = `translate(${i * 14}px, ${i * 14}px)`; card.style.zIndex = String(10 - i); card.setAttribute('aria-hidden', String(i !== 0)); });
const advance = () => {
cards.push(cards.shift());
shown = (shown + 1) % total;
if (label) label.textContent = shown + 1;
layout();
};
stack.addEventListener('click', advance);
stack.addEventListener('keydown', (event) => { if (event.key === 'Enter' || event.key === ' ') { event.preventDefault(); advance(); } });
section.querySelector('[data-stack-next]')?.addEventListener('click', advance);
layout();
});
document.querySelectorAll('[data-rsvp]').forEach((button) => {
button.addEventListener('click', () => {
const on = button.getAttribute('aria-pressed') !== 'true';
button.setAttribute('aria-pressed', String(on));
button.querySelector('[data-rsvp-label]').textContent = on ? 'Place saved' : 'Save my place';
});
});
</script>
<!-- Optional credit — delete this block if you prefer a clean footer -->
<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>
Premium
Negocios
Desbloquea toda la biblioteca de plantillas y bloques premium. Se renueva automáticamente, cancela cuando quieras.