@page "/" @using Elternbeirat.Web.Features.Events Elternbeirat der IGMH @* The hero spans the full window width (see Home.razor.css). Its text is the "home" page's body, taken apart by HomeIntro; the card beside it shows the next event. *@

@_intro.Title

@if (_intro.IntroHtml.Length > 0) {
@((MarkupString)_intro.IntroHtml)
} @if (_intro.Links.Count > 0) {

@for (var i = 0; i < _intro.Links.Count; i++) { var link = _intro.Links[i]; @link.Text }

}
@if (_nextEvent is not null) { @* As in EventCard: the calendar sheet shows the date and is hidden from screen readers, who get the full date from instead. Visible beside the sheet is only what it cannot show: the time, the end. *@ var span = EventDateFormat.Span(_nextEvent); Nächster Termin @_nextEvent.Title @if (span.Length > 0) { @span } @if (!string.IsNullOrWhiteSpace(_nextEvent.Location)) { @_nextEvent.Location } }
@if (_tiles.Count > 0) {

Bereiche im Überblick

}