summaryrefslogtreecommitdiff
path: root/SovereignDemesneAzure/SovereignDemesneRazor/Pages/Index.cshtml
blob: 7c36f96afffff1fd387a38cc10330f6df865db98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@page
@model IndexModel
@{
    ViewData["Title"] = "Home";
}

<div class="container">
    <div class="row align-items-start mb-4">
        <aside class="col-12 col-md-6 mb-3 text-center">
            <img src="~/img/mainstreet.png" class="img-fluid rounded shadow-sm" style="max-height:130px;" alt="Site banner" loading="lazy" />
            <img src="~/img/harvest.png" class="img-fluid rounded shadow-sm" style="max-height:130px;" alt="Site banner" loading="lazy" />
            <img src="~/img/landscape.png" class="img-fluid rounded shadow-sm" style="max-height:130px;" alt="Site banner" loading="lazy" />
        </aside>
        <section class="col-12 col-md-6 mb-3">
            <h4 class="h4">York County, Pennsylvania</h4>
            <p>The source for this website can be found at <a href="https://git.dwalker.xyz/sovereign-demesne-azure.git">git.dwalker.xyz</a>. Licensed under <a href="https://git.dwalker.xyz/sovereign-demesne.git/tree/LICENSE">GPLv3</a>.</p>
            <p><b>Council Members:</b> A mumble server is up in case of emergency meetings. We also have <a href="https://rss.dwalker.xyz">RSS management</a> and an <a href="https://bridge.dwalker.xyz">RSS bridge</a> to populate it.</p>
        </section>
    </div>

    <div class="row g-4">
        @foreach (IndexModel.LinkSection section in Model.Sections)
        {
            <section class="col-12 col-md-6">
                <h2 class="h5 text-center">@(section.Title)</h2>
                <hr/>
                <ul class="list-unstyled link-columns">
                    @foreach (IndexModel.LinkItem link in section.Links)
                    {
                        <li class="mb-2">
                            <a class="link-light" href="@link.Url">@link.Text</a>
                            @if (!string.IsNullOrWhiteSpace(link.Description))
                            {
                                <div class="text-body-secondary small">@link.Description</div>
                            }
                        </li>
                    }
                </ul>
            </section>
        }
    </div>
    <br/>
    <div class="row g-4">
        <h2 class="h5 text-center">@Model.LargeSection.Title</h2>
        <hr/>
        <ul class="list-unstyled link-columns-big">
            @foreach (IndexModel.LinkItem link in Model.LargeSection.Links)
            {
                <li class="mb-2">
                    <a class="link-light" href="@link.Url">@link.Text</a>
                    @if (!string.IsNullOrWhiteSpace(link.Description))
                    {
                        <div class="text-body-secondary small">@link.Description</div>
                    }
                </li>
            }
        </ul>
    </div>
</div>