using Microsoft.AspNetCore.Mvc.RazorPages; namespace SovereignDemesneRazor.Pages; public sealed class IndexModel : PageModel { private readonly ILogger _logger; public record LinkItem(string Text, string Url, string? Description = null); public record LinkSection(string Title, IReadOnlyList Links); public IReadOnlyList Sections { get; private set; } = default!; public LinkSection LargeSection { get; private set; } = default!; public IndexModel(ILogger logger) { _logger = logger; } public void OnGet() { Sections = [ new LinkSection("Content", [ new LinkItem("Code", "https://git.dwalker.xyz"), new LinkItem("Web Feed", "https://rss.dwalker.xyz"), new LinkItem("RSS Bridge", "https://bridge.dwalker.xyz"), new LinkItem("Budget", "https://budget.dwalker.xyz"), new LinkItem("FoundryVTT", "https://foundry.dwalker.xyz"), new LinkItem("Static Website", "https://dwalker.xyz"), ]), new LinkSection("Links", [ new LinkItem("Build your own Website", "https://landchad.net"), new LinkItem("Grand Sumo", "https://www.sumo.or.jp/En/"), new LinkItem("Suckless Software", "https://suckless.org"), new LinkItem("Weather", "https://wttr.in"), new LinkItem("1MB Club", "https://1mb.club"), new LinkItem("Translations", "https://simplytranslate.org"), new LinkItem("Homesteader's Chronicle", "https://thehomesteaderschronicle.com/"), new LinkItem("Luke Smith", "https://lukesmith.xyz"), ]), ]; LargeSection = new LinkSection("Local Goods & Services", [ new LinkItem("Brown's Orchard", "https://brownsorchards.com"), new LinkItem("Godfrey Brothers Meats", "https://godfreymeats.com"), new LinkItem("Hiwwe wie Driwwe", "https://hiwwe-wie-driwwe.com/"), new LinkItem("Maple Lawn Farms", "https://maplelawnfarms.com/"), new LinkItem("Miller Plant Farm", "https://millerplantfarm.com"), new LinkItem("Christmastime in Loganville", "https://christmastimeinloganville.com"), new LinkItem("Perrydell Dairy Farm", "https://perrydellfarm.com"), new LinkItem("Roburritos", "https://roburritos.com"), new LinkItem("Shaw Orchards", "http://shaworchards.com"), new LinkItem("Sonnewald Natural Goods", "https://sonnewald.org"), new LinkItem("Jeff's Subs", "https://jeffssubs.com"), new LinkItem("Flinchbaugh's Farm Market", "https://flinchbaughsorchard.com"), new LinkItem("Adventurer's Academy", "https://theadventurersacademy.com/"), new LinkItem("Comics Closet", "https://www.thecomicscloset.com/"), ]); } }