Gratis
Portada
Leafway Hero
A hero block extracted from the Leafway template, available in Tailwind CSS.
0
10
A hero block extracted from the Leafway 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>Leafway Hero | Tailwind CSS UI Block</title>
<meta name="description" content="A hero block extracted from the Leafway template, available in Tailwind CSS.">
<meta name="keywords" content="Leafway, Tailwind CSS template, HTML website template, startup template, mobile app landing page, eco app, green mobility, bike sharing app, sustainable transport, app download page">
<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="Leafway | Tailwind CSS Startup Template">
<meta property="og:description" content="A playful, illustrated Tailwind CSS startup template for green mobility apps, with phone hotspots, a commute impact simulator and a transit pass pricing card.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Leafway template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Leafway | Tailwind CSS Startup Template">
<meta name="twitter:description" content="A playful, illustrated Tailwind CSS startup template for green mobility apps, with phone hotspots, a commute impact simulator and a transit pass pricing card.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Leafway 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=Chivo:wght@300;400;500;700&family=Syne:wght@700;800&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: { leaf: { DEFAULT: '#55ae80', deep: '#3f9168', soft: '#e9f5ee' }, lilac: { DEFAULT: '#b693f2', soft: '#efe6fd' }, lime: '#c8e57c', ink: '#2b2d36' },
fontFamily: { sans: ['Chivo', 'sans-serif'], display: ['Syne', 'sans-serif'] }
}
}
}
</script>
<style>
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms ease-out both page-fade-out; }
::view-transition-new(root) { animation: 220ms ease-in both page-fade-in; }
@keyframes page-fade-out { to { opacity: 0; } }
@keyframes page-fade-in { from { opacity: 0; } }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.float { animation: float 6s ease-in-out infinite; }
.float-slow { animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.spin-slow { animation: spin 14s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes spin { to { transform: rotate(360deg); } }
.hotspot::after { content: ""; position: absolute; inset: -6px; border-radius: 9999px; border: 2px solid currentColor; opacity: .5; animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(1.6); opacity: 0; } }
.sim-tree { transition: opacity .4s ease, transform .4s ease; transform-origin: bottom; transform-box: fill-box; }
.sim-tree[data-off] { opacity: 0; transform: scale(.2); }
.marquee { display: flex; overflow: hidden; gap: 2.5rem; }
.marquee-track { display: flex; flex-shrink: 0; align-items: center; gap: 2.5rem; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - 2.5rem)); } }
.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) {
html { scroll-behavior: auto; }
.float, .float-slow, .spin-slow, .marquee-track, .hotspot::after { animation: none; }
.marquee { overflow-x: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
</style>
</head>
<body class="bg-white font-sans text-ink antialiased">
<!-- block:start hero -->
<section class="relative overflow-hidden bg-leaf">
<div class="mx-auto grid max-w-6xl items-center gap-10 px-5 pb-16 pt-6 md:px-8 lg:grid-cols-[1.05fr_1fr] lg:pb-24 lg:pt-12">
<div>
<h1 class="text-[2.3rem] font-light leading-[1.25] sm:text-5xl lg:text-[3.6rem]">
<span class="flex items-center gap-4"><svg class="h-9 w-9 shrink-0 lg:h-11 lg:w-11" viewBox="0 0 40 40" aria-hidden="true"><path d="M20 2c1.5 10 8 16.5 18 18-10 1.5-16.5 8-18 18-1.5-10-8-16.5-18-18 10-1.5 16.5-8 18-18z" fill="#2b2d36"/><path d="M20 13c.6 3.8 3.2 6.4 7 7-3.8.6-6.4 3.2-7 7-.6-3.8-3.2-6.4-7-7 3.8-.6 6.4-3.2 7-7z" fill="#fff"/></svg>Say hello to your</span>
<span class="mt-2 block font-display text-[2.3rem] font-extrabold leading-tight text-white sm:whitespace-nowrap sm:text-[3.3rem] xl:text-[3.6rem]">planet-friendly</span>
<span class="mt-2 flex flex-wrap items-center gap-x-6 gap-y-2">city ride app
<span class="relative inline-grid h-20 w-20 place-items-center text-base font-bold" aria-hidden="true">
<svg class="spin-slow absolute inset-0 h-full w-full" viewBox="0 0 100 100"><path d="M50 4l8 14 15-7 1 16 16 2-8 14 12 11-15 6 4 16-16-3-6 15-11-12-12 11-5-15-16 2 5-15-15-7 12-11-7-15 16-1 2-16 15 7z" fill="#c8e57c" stroke="#2b2d36" stroke-width="2.5" stroke-linejoin="round"/></svg>
<span class="relative -rotate-12 italic">ECO</span>
</span>
</span>
</h1>
<p class="mt-8 max-w-lg text-lg font-light leading-relaxed text-ink/80">Leafway swaps the second car for buses, e-bikes and shared rides in one easy app: cheaper, calmer and kinder to the air you breathe.</p>
<div class="mt-10 flex flex-wrap gap-4">
<a href="contact.html" class="inline-flex items-center gap-3 rounded-lg border-2 border-ink bg-lilac px-5 py-2.5 text-white shadow-[4px_4px_0_#2b2d36] transition hover:-translate-y-0.5 hover:shadow-[6px_6px_0_#2b2d36]">
<i class="fa-brands fa-apple text-3xl" aria-hidden="true"></i>
<span class="text-left leading-tight"><span class="block text-[11px]">Download on the</span><span class="text-xl font-medium">App Store</span></span>
</a>
<a href="contact.html" class="inline-flex items-center gap-3 rounded-lg border-2 border-ink bg-ink px-5 py-2.5 text-white shadow-[4px_4px_0_#c8e57c] transition hover:-translate-y-0.5 hover:shadow-[6px_6px_0_#c8e57c]">
<i class="fa-brands fa-google-play text-2xl text-lime" aria-hidden="true"></i>
<span class="text-left leading-tight"><span class="block text-[11px] uppercase">Get it on</span><span class="text-xl font-medium">Google Play</span></span>
</a>
</div>
</div>
<div class="relative mx-auto w-full max-w-[36rem] lg:-mr-6">
<svg viewBox="0 0 520 520" class="w-full" role="img" aria-label="Illustration of a green planet with trees and purple flowers growing on top, surrounded by clouds">
<g class="float-slow">
<path d="M262 98c-9-26 2-52 22-58 15 18 13 43-2 58" fill="#c8e57c" stroke="#2b2d36" stroke-width="4"/>
<rect x="240" y="60" width="66" height="120" rx="33" fill="#c8e57c" stroke="#2b2d36" stroke-width="4"/>
<circle cx="273" cy="70" r="30" fill="#c8e57c" stroke="#2b2d36" stroke-width="4"/>
<rect x="268" y="120" width="10" height="90" fill="#2b2d36"/>
<circle cx="210" cy="160" r="34" fill="#2b2d36"/><circle cx="232" cy="128" r="26" fill="#2b2d36"/><circle cx="335" cy="150" r="30" fill="#2b2d36"/><circle cx="352" cy="120" r="22" fill="#2b2d36"/>
<rect x="206" y="150" width="9" height="90" fill="#2b2d36"/><rect x="333" y="140" width="9" height="90" fill="#2b2d36"/>
</g>
<g class="float">
<g transform="translate(150 175)"><g stroke="#2b2d36" stroke-width="4" fill="#b693f2"><circle cx="0" cy="-30" r="22"/><circle cx="29" cy="-9" r="22"/><circle cx="18" cy="25" r="22"/><circle cx="-18" cy="25" r="22"/><circle cx="-29" cy="-9" r="22"/></g><path d="M0-14l5 9 10 1-7 7 2 10-10-5-9 5 2-10-8-7 10-1z" fill="#ffd34d" stroke="#2b2d36" stroke-width="3"/></g>
<path d="M150 210c10 60 30 90 60 110" fill="none" stroke="#2b2d36" stroke-width="4"/>
</g>
<g class="float-slow">
<g transform="translate(255 140)"><g fill="#fff" stroke="#2b2d36" stroke-width="3"><ellipse cx="0" cy="-26" rx="7" ry="20" transform="rotate(0)"/><ellipse cx="0" cy="-26" rx="7" ry="20" transform="rotate(30)"/><ellipse cx="0" cy="-26" rx="7" ry="20" transform="rotate(60)"/><ellipse cx="0" cy="-26" rx="7" ry="20" transform="rotate(90)"/><ellipse cx="0" cy="-26" rx="7" ry="20" transform="rotate(120)"/><ellipse cx="0" cy="-26" rx="7" ry="20" transform="rotate(150)"/><ellipse cx="0" cy="-26" rx="7" ry="20" transform="rotate(180)"/><ellipse cx="0" cy="-26" rx="7" ry="20" transform="rotate(210)"/><ellipse cx="0" cy="-26" rx="7" ry="20" transform="rotate(240)"/><ellipse cx="0" cy="-26" rx="7" ry="20" transform="rotate(270)"/><ellipse cx="0" cy="-26" rx="7" ry="20" transform="rotate(300)"/><ellipse cx="0" cy="-26" rx="7" ry="20" transform="rotate(330)"/></g><circle r="12" fill="#b693f2" stroke="#2b2d36" stroke-width="3"/></g>
<g transform="translate(400 130)"><g stroke="#2b2d36" stroke-width="4" fill="#b693f2"><circle cx="0" cy="-32" r="20" transform="rotate(0)"/><circle cx="0" cy="-32" r="20" transform="rotate(45)"/><circle cx="0" cy="-32" r="20" transform="rotate(90)"/><circle cx="0" cy="-32" r="20" transform="rotate(135)"/><circle cx="0" cy="-32" r="20" transform="rotate(180)"/><circle cx="0" cy="-32" r="20" transform="rotate(225)"/><circle cx="0" cy="-32" r="20" transform="rotate(270)"/><circle cx="0" cy="-32" r="20" transform="rotate(315)"/><circle r="32"/></g><circle r="16" fill="#fff" stroke="#2b2d36" stroke-width="4"/></g>
<path d="M400 170c-10 50-30 90-70 120" fill="none" stroke="#2b2d36" stroke-width="4"/>
<path d="M420 220c20-15 45-10 55 0-15 18-40 20-55 0z" fill="#c8e57c" stroke="#2b2d36" stroke-width="3.5"/>
<circle cx="330" cy="125" r="18" fill="#b693f2" stroke="#2b2d36" stroke-width="3.5"/><path d="M322 125c4 4 10 4 14 0" fill="none" stroke="#2b2d36" stroke-width="3"/>
<circle cx="355" cy="200" r="12" fill="#b693f2" stroke="#2b2d36" stroke-width="3"/>
</g>
<circle cx="285" cy="345" r="150" fill="#2b2d36"/>
<path d="M175 270c25-30 70-20 85 5 10 25-20 40-15 70 5 35-40 45-60 25-25-25-30-70-10-100z" fill="#c8e57c"/>
<path d="M300 220c40-15 95 5 115 35 15 25-15 45-45 40-25-5-30 25-55 20-30-6-45-70-15-95z" fill="#c8e57c"/>
<path d="M310 380c30-10 60 10 55 40-5 35-40 60-75 55-25-5-20-30-15-50 5-20 15-40 35-45z" fill="#c8e57c"/>
<path d="M405 360c20-5 30 15 20 30-10 12-28 8-30-5-1-12 2-22 10-25z" fill="#c8e57c"/>
<g fill="#2b2d36"><path d="M210 300l7-14 7 14z"/><path d="M228 312l7-14 7 14z"/><path d="M350 250l7-14 7 14z"/><path d="M368 262l7-14 7 14z"/><path d="M320 420l7-14 7 14z"/><path d="M338 432l7-14 7 14z"/></g>
<g class="float" fill="#fff" stroke="#2b2d36" stroke-width="4">
<path d="M70 330c0-25 22-40 45-35 10-22 50-28 65-5 25-5 45 12 42 40z"/>
<path d="M330 420c0-22 20-36 40-31 9-20 45-25 58-4 22-4 40 10 37 35z"/>
</g>
</svg>
</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);
});
});
document.querySelectorAll('[data-hotspots]').forEach((root) => {
const select = (id) => {
root.querySelectorAll('[data-hotspot]').forEach((spot) => spot.setAttribute('aria-pressed', String(spot.dataset.hotspot === id)));
root.querySelectorAll('[data-hotspot-item]').forEach((item) => item.setAttribute('aria-pressed', String(item.dataset.hotspotItem === id)));
};
root.addEventListener('click', (event) => {
const target = event.target.closest('[data-hotspot], [data-hotspot-item]');
if (target) select(target.dataset.hotspot || target.dataset.hotspotItem);
});
});
document.querySelectorAll('[data-simulator]').forEach((sim) => {
const km = sim.querySelector('[data-sim-km]');
const trees = [...sim.querySelectorAll('[data-sim-tree]')];
const checked = (name) => [...sim.querySelectorAll(`[name="${name}"]`)].find((input) => input.checked);
const update = () => {
const mode = checked('mode');
const days = Number(checked('days')?.value || 5);
const distance = Number(km.value);
const kmYear = distance * 2 * days * 48;
const co2 = Math.round((Number(sim.dataset.carGram) - Number(mode.dataset.gram)) * kmYear / 1000);
const money = Math.round((Number(sim.dataset.carCost) - Number(mode.dataset.cost)) * kmYear);
const treeCount = Math.round(co2 / 21);
sim.querySelector('[data-sim-km-label]').textContent = `${distance} km`;
sim.querySelector('[data-sim-co2]').textContent = co2.toLocaleString('en-US');
sim.querySelector('[data-sim-money]').textContent = money.toLocaleString('en-US');
sim.querySelector('[data-sim-trees]').textContent = treeCount.toLocaleString('en-US');
trees.forEach((tree, index) => tree.toggleAttribute('data-off', index >= Math.min(treeCount, trees.length)));
};
sim.addEventListener('input', update);
sim.addEventListener('change', update);
});
document.querySelectorAll('[data-like]').forEach((button) => {
button.addEventListener('click', () => {
const liked = button.getAttribute('aria-pressed') === 'true';
const count = button.querySelector('[data-like-count]');
button.setAttribute('aria-pressed', String(!liked));
count.textContent = Number(count.textContent) + (liked ? -1 : 1);
});
});
document.querySelectorAll('[data-flip]').forEach((card) => {
card.addEventListener('click', () => card.setAttribute('aria-pressed', String(card.getAttribute('aria-pressed') !== 'true')));
});
document.querySelectorAll('[data-compare]').forEach((compare) => {
const range = compare.querySelector('[data-compare-range]');
const update = () => compare.style.setProperty('--split', `${range.value}%`);
range.addEventListener('input', update);
update();
});
document.querySelectorAll('[data-tabs]').forEach((tablist) => {
const tabs = [...tablist.querySelectorAll('[role="tab"]')];
const select = (tab) => tabs.forEach((other) => {
const active = other === tab;
other.setAttribute('aria-selected', String(active));
other.tabIndex = active ? 0 : -1;
document.getElementById(other.getAttribute('aria-controls')).hidden = !active;
});
tabs.forEach((tab, index) => {
tab.addEventListener('click', () => select(tab));
tab.addEventListener('keydown', (event) => {
const step = { ArrowRight: 1, ArrowDown: 1, ArrowLeft: -1, ArrowUp: -1 }[event.key];
if (!step) return;
event.preventDefault();
const next = tabs[(index + step + tabs.length) % tabs.length];
next.focus();
select(next);
});
});
});
document.querySelectorAll('[data-chat-faq]').forEach((chat) => {
const log = chat.querySelector('[data-chat-log]');
chat.querySelectorAll('[data-chat-question]').forEach((button) => {
button.addEventListener('click', () => {
const template = chat.querySelector(`#${button.dataset.chatQuestion}`);
const entry = template.content.cloneNode(true);
log.append(entry);
button.disabled = true;
log.lastElementChild?.scrollIntoView({ block: 'nearest', behavior: matchMedia('(prefers-reduced-motion: reduce)').matches ? 'auto' : 'smooth' });
});
});
});
document.querySelectorAll('[data-sentence-form]').forEach((form) => {
form.addEventListener('submit', (event) => {
event.preventDefault();
const status = form.querySelector('[data-form-status]');
if (!form.checkValidity()) {
status.textContent = form.dataset.error;
form.querySelector(':invalid')?.focus();
return;
}
status.textContent = form.dataset.success;
form.reset();
});
});
document.querySelectorAll('[data-current-year]').forEach((el) => { el.textContent = new Date().getFullYear(); });
(() => {
const skip = navigator.webdriver || !('IntersectionObserver' in window) || matchMedia('(prefers-reduced-motion: reduce)').matches;
if (skip) return;
const counters = document.querySelectorAll('[data-count-to]');
const countObserver = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (!entry.isIntersecting) return;
countObserver.unobserve(entry.target);
const target = Number(entry.target.dataset.countTo);
const start = performance.now();
const tick = (now) => {
const progress = Math.min(1, (now - start) / 1400);
entry.target.textContent = Math.round(target * (1 - Math.pow(1 - progress, 3))).toLocaleString('en-US');
if (progress < 1) requestAnimationFrame(tick);
};
requestAnimationFrame(tick);
});
}, { threshold: 0.5 });
counters.forEach((counter) => countObserver.observe(counter));
const items = document.querySelectorAll('[data-reveal]');
if (!items.length) 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>
<!-- 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
Startup
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é