Glassy header component for entity detail pages (Offers, Properties, Units). Displays thumbnail, title, metadata, status indicator, and summary statistics. Designed for signed-in app pages with glassy background.
Context: Glassy signed-in app pages (Offer Edit,
Property View, Unit Details).
Purpose: Summarize entity information at the top of
detail/edit pages.
This component reuses existing DS patterns:
content-container-app
glassy styling,
.badge
variants, and DS typography classes (.t-lead,
.t-small,
.t-muted).
Entity Header provides at-a-glance information about offers, properties, or units.
Standard variant with thumbnail image and Active status. Use for offers that have uploaded images and are currently published/active.
<div class="entity-header">
<!-- Media: Thumbnail + Content -->
<div class="entity-header__media">
<div class="entity-header__thumbnail">
<img src="/assets/images/hero-01.webp" alt="Offer thumbnail" />
</div>
<div class="entity-header__content">
<div class="entity-header__title-row">
<h2 class="entity-header__title t-lead">Summer Weekend Getaway</h2>
<span class="badge badge--outline">OFF-2024-001</span>
</div>
<p class="entity-header__meta t-small t-muted">Property: Azyl na 13</p>
</div>
</div>
<!-- Aside: Status + Stats (uses DS .badge-group) -->
<div class="entity-header__aside">
<div class="entity-header__status entity-header__status--active">
<span class="entity-header__status-icon"></span>
<span>Active</span>
</div>
<div class="badge-group">
<span class="badge badge--muted">🏠 2 Units</span>
<span class="badge badge--muted">🪟 3 Windows</span>
<span class="badge badge--muted">🎁 5 Extras</span>
</div>
</div>
</div>
Variant with placeholder icon when no image is uploaded, and Inactive status. Use for draft offers or unpublished entities.
<div class="entity-header">
<!-- Media: Placeholder + Content -->
<div class="entity-header__media">
<div class="entity-header__thumbnail">
<div class="entity-header__thumbnail-placeholder">🏡</div>
</div>
<div class="entity-header__content">
<div class="entity-header__title-row">
<h2 class="entity-header__title t-lead">Winter Holiday Package</h2>
<span class="badge badge--outline">OFF-2024-002</span>
</div>
<p class="entity-header__meta t-small t-muted">Property: Kampinos Retreat</p>
</div>
</div>
<!-- Aside: Status + Stats (uses DS .badge-group) -->
<div class="entity-header__aside">
<div class="entity-header__status entity-header__status--inactive">
<span class="entity-header__status-icon"></span>
<span>Inactive</span>
</div>
<div class="badge-group">
<span class="badge badge--muted">🏠 1 Unit</span>
<span class="badge badge--muted">🪟 2 Windows</span>
<span class="badge badge--muted">🎁 3 Extras</span>
</div>
</div>
</div>
Demonstrates text wrapping behavior with long entity titles. Title wraps naturally to maintain readability without truncation.
<div class="entity-header">
<!-- Media: Thumbnail + Content -->
<div class="entity-header__media">
<div class="entity-header__thumbnail">
<img src="/assets/images/hero-01.webp" alt="Offer thumbnail" />
</div>
<div class="entity-header__content">
<div class="entity-header__title-row">
<h2 class="entity-header__title t-lead">Extended Family Vacation Package with All-Inclusive Amenities and Pet-Friendly Accommodations</h2>
<span class="badge badge--outline">OFF-2024-003</span>
</div>
<p class="entity-header__meta t-small t-muted">Property: Nature Retreat Complex</p>
</div>
</div>
<!-- Aside: Status + Stats (uses DS .badge-group) -->
<div class="entity-header__aside">
<div class="entity-header__status entity-header__status--active">
<span class="entity-header__status-icon"></span>
<span>Active</span>
</div>
<div class="badge-group">
<span class="badge badge--muted">🏠 4 Units</span>
<span class="badge badge--muted">🪟 6 Windows</span>
<span class="badge badge--muted">🎁 12 Extras</span>
</div>
</div>
</div>
Entity Header styles are shown inline in this DS preview. In
production, extract to a dedicated CSS file (e.g.,
/assets/css/entity-header.css) or include in app-shell styles. Do not re-style locally. If you
need new variants or behavior, extend the Design System component
definition instead of overriding in page CSS.
<h2>
for title (maintain heading hierarchy)
content-container-app
pattern (backdrop-filter, rgba backgrounds).
.t-lead
for title,
.t-small
and
.t-muted
for metadata.
.badge--muted
and
.badge--outline
classes.
object-fit: cover
for images.
Entity Header component styles are currently inline in this DS preview:
/assets/ui/collections/entity-header.html (lines
21-195)
Production recommendation: Extract to
/assets/css/entity-header.css or include in app-shell
stylesheet.
Includes: Glassy container layout, media object pattern (thumbnail + content), status indicator variants (active/inactive), aside section, responsive behavior (mobile stacking), and integration with DS badge and typography classes.
Dependencies:
/assets/css/badge.css (badge-group, badge--muted,
badge--outline), /assets/css/typography.css (t-lead,
t-small, t-muted).
Glassy container pattern for signed-in app pages
Badge variants for code IDs and summary statistics
Text sizing and color classes for title and metadata
Complete layout context for glassy components
Media object pattern used in entity header layout
Similar glassy component for CRUD entry points