From 9383a2fb09ffb60cfe63683106945bd688affa59 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Wed, 1 Jun 2022 21:13:43 +0200 Subject: feat: Initial commit after clean slate --- src/Pages/Index.cshtml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/Pages/Index.cshtml (limited to 'src/Pages/Index.cshtml') diff --git a/src/Pages/Index.cshtml b/src/Pages/Index.cshtml new file mode 100644 index 0000000..aa23602 --- /dev/null +++ b/src/Pages/Index.cshtml @@ -0,0 +1,41 @@ +@page +@using Microsoft.Extensions.Localization +@inject IStringLocalizer Localizer; +@model IndexModel +@{ + ViewData["Title"] = Localizer["Forsida"]; +} + +@section Head { + +} + +
+ + + + + +
+
+
+ @if (Model.HighlightedProducts.Any(c => c.IsAvailable && c.IsVisible)) { +

Favorittar

+
+ @foreach (var product in Model.HighlightedProducts.Where(c => c.IsVisible && c.IsAvailable).OrderByDescending(c => c.Updated)) { + + ... +

@product.Name

+
+ } +
+ } +
+
+ @Html.Raw(Model.ContactHtml) +
+
\ No newline at end of file -- cgit v1.3