Untitled
unknown
plain_text
2 years ago
934 B
3
Indexable
@model KudSonja.Web.ViewModels.Generated.BannerWithImage @{ var img = Model.BackgroundImg?.Url() ?? string.Empty; var leftClass = Model.IsLeft ? "banner--left" : string.Empty; } <div class="banner @leftClass bg-overlay" style="background-image:url('@img')"> <div class="container"> <div class="banner__inner"> <h1>@(Model.Title ?? string.Empty)</h1> <div class="banner__description description"> @(Model.Subtitle ?? string.Empty) </div> @if (Model.ButtonLink != null) { <a href="@(Model.ButtonLink?.Url ?? string.Empty)" class="btn">@(Model.ButtonLink?.Name ?? string.Empty)</a> } @if (Model.ButtonLinkYellow.HasValue()) { <a href="@(Model.ButtonLinkYellow.Url)" class="btn btn--yellow">@Model.ButtonLinkYellow.Name</a> } </div> </div> </div>