@if (hasHeadline) { @Model.TopBannerHeadline } @if (hasText) { @Model.TopBannerText } @if (Model.TopBannerLinks.HasValue()) { <div class="top-banner__links"> @foreach (var link in Model.TopBannerLinks) { <a class="btn btn--outlined btn--white" href="@link.Url" target="@link.Target">@link.Name</a> } </div> } </article> </div> </div> } }
problems with a to big top banner
want to reduce the size of the top banner but is a litlle in doubt where it is best to implement it.
i asume it is in the file called Topbanner.cshtml
@if (Model.TopBannerMedia.HasValue()) { @BannerContent() if (Model.IsVideo) {
} else { @BannerContent() }
@helper BannerContent() { bool hasHeadline = Model.TopBannerHeadline.HasValue(); bool hasText = Model.TopBannerText.HasValue(); if (hasHeadline || hasText) {
@Model.TopBannerHeadline
} @if (hasText) {}
Hi Brygger92,
Did you manage to solve your issue in the end?
Nik
is working on a reply...