Components (registry)Layout
Hero Fullbleed
Layout template: hero-fullbleed
Contrato del layout
Un layout transporta anatomia, no pintura: se rellena por slots y depende del CSS de los componentes que lista. Instalarlo sin ellos lo deja sin estilos.
- Slots
{{background}}{{eyebrow}}{{headline}}{{subtitle}}{{cta_primary_href}}{{primaryCta}}- Componentes requeridos
chipbuttontypography
Anatomía CSS
<div class="layoutHeroFullbleed"> </div>
Tokens resueltos
Valores finales tras seguir la cadena de tokens. Derivados del source: si un token cambia, esta tabla cambia sola.
| Variante | Prop | Valor | Token |
|---|---|---|---|
| all | fg | white | (unparsed) |
| all | bg | linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.65)) | (unparsed) |
CSS mínimo funcional
Autocontenido: sin imports ni tokens. Para previews y prototipos — en producción se consume el CSS del DS.
/* Layout: hero-fullbleed — structure only */
.l-hero-fullbleed {
position: relative;
min-height: 80vh;
display: flex;
align-items: center;
background-size: cover;
background-position: center;
color: white;
padding: 80px 32px;
}
.l-hero-fullbleed__overlay {
position: absolute;
inset: 0;
background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.65));
}
.l-hero-fullbleed__content {
position: relative;
z-index: 1;
max-width: 640px;
}
.l-hero-fullbleed__headline {
font-size: var(--text-5xl);
line-height: 1.1;
margin: 16px 0;
}
.l-hero-fullbleed__subtitle {
max-width: 520px;
margin-bottom: 24px;
}
.l-hero-fullbleed__actions {
display: flex;
gap: 12px;
}
Codigo fuente
layouts/hero-fullbleed.css
/* Layout: hero-fullbleed — structure only */ .l-hero-fullbleed { position: relative; min-height: 80vh; display: flex; align-items: center; background-size: cover; background-position: center; color: white; padding: var(--spacing-20) var(--spacing-8); } .l-hero-fullbleed__overlay { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.65)); } .l-hero-fullbleed__content { position: relative; z-index: 1; max-width: 640px; } .l-hero-fullbleed__headline { font-size: var(--text-5xl); line-height: 1.1; margin: var(--spacing-4) 0; } .l-hero-fullbleed__subtitle { max-width: 520px; margin-bottom: var(--spacing-6); } .l-hero-fullbleed__actions { display: flex; gap: var(--spacing-3); }