summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Views/Index/Index.cshtml
blob: 249dc9d166ea13fb345297001461194e80fa1302 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
@using Microsoft.Extensions.Options
@using StardewModdingAPI.Web.Framework.ConfigModels
@inject IOptions<SiteConfig> SiteConfig
@model StardewModdingAPI.Web.ViewModels.IndexModel
@{
    ViewData["Title"] = "SMAPI";
}
@section Head {
    <link rel="stylesheet" href="~/Content/css/index.css?r=20190620" />
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js" crossorigin="anonymous"></script>
    <script src="~/Content/js/index.js?r=20190620"></script>
}

<p id="blurb">
    The mod loader for Stardew Valley. It works fine with GOG and Steam achievements, it's
    compatible with Linux/Mac/Windows, you can uninstall it anytime, and there's a friendly
    community if you need help. It's a cool pufferchick.
</p>

<div id="call-to-action">
    <div class="cta-dropdown">
        <a href="@Model.StableVersion.DownloadUrl" class="main-cta download">Download SMAPI @Model.StableVersion.Version</a><br />
        <div class="dropdown-content">
            <a href="https://www.nexusmods.com/stardewvalley/mods/2400"><img src="Content/images/nexus-icon.png" /> Download from Nexus</a>
            <a href="@Model.StableVersion.DownloadUrl"><img src="Content/images/direct-download-icon.png" /> Direct download</a>
        </div>
    </div><br />

    @if (Model.BetaVersion != null)
    {
        <div class="cta-dropdown secondary-cta-dropdown">
            <a href="@Model.BetaVersion.DownloadUrl" class="secondary-cta download">
                Download SMAPI @Model.BetaVersion.Version
                @if (!string.IsNullOrWhiteSpace(Model.BetaBlurb))
                {
                    <br /><small>@Model.BetaBlurb</small>
                }
            </a><br />
            <div class="dropdown-content">
                <a href="https://www.nexusmods.com/stardewvalley/mods/2400"><img src="Content/images/nexus-icon.png" /> Download from Nexus</a>
                <a href="@Model.BetaVersion.DownloadUrl"><img src="Content/images/direct-download-icon.png" /> Direct download</a>
            </div>
        </div><br />
    }
    <div><a href="https://stardewvalleywiki.com/Modding:Player_Guide" class="secondary-cta">Player guide</a></div>
    <div class="sublinks">
        <a href="https://github.com/Pathoschild/SMAPI">source code</a> | <a href="@(new UriBuilder(SiteConfig.Value.RootUrl) { Path = "privacy" }.Uri)">privacy</a>
    </div>
    <img id="pufferchick" src="Content/images/pufferchick.png" />
</div>

<h2 id="help">Get help</h2>
<ul>
    <li><a href="@SiteConfig.Value.ModListUrl">Mod compatibility list</a></li>
    <li>Get help <a href="https://stardewvalleywiki.com/Modding:Community#Discord">on Discord</a> or <a href="https://community.playstarbound.com/threads/smapi-stardew-modding-api.108375/">in the forums</a></li>
</ul>

@if (Model.BetaVersion == null)
{
    <h2 id="whatsnew">What's new in SMAPI @Model.StableVersion.Version?</h2>
    <div class="github-description">
        @Html.Raw(Markdig.Markdown.ToHtml(Model.StableVersion.Description))
    </div>
    <p>See the <a href="https://github.com/Pathoschild/SMAPI/blob/develop/docs/release-notes.md#release-notes">release notes</a> and <a href="@SiteConfig.Value.ModListUrl">mod compatibility list</a> for more info.</p>
}
else
{
    <h2 id="whatsnew">What's new in...</h2>
    <h3>SMAPI @Model.StableVersion.Version?</h3>
    <div class="github-description">
        @Html.Raw(Markdig.Markdown.ToHtml(Model.StableVersion.Description))
    </div>
    <p>See the <a href="https://github.com/Pathoschild/SMAPI/blob/develop/docs/release-notes.md#release-notes">release notes</a> and <a href="@SiteConfig.Value.ModListUrl">mod compatibility list</a> for more info.</p>

    <h3>SMAPI @Model.BetaVersion.Version?</h3>
    <div class="github-description">
        @Html.Raw(Markdig.Markdown.ToHtml(Model.BetaVersion.Description))
    </div>
    <p>See the <a href="https://github.com/Pathoschild/SMAPI/blob/develop/docs/release-notes.md#release-notes">release notes</a> and <a href="@SiteConfig.Value.ModListUrl">mod compatibility list</a> for more info.</p>
}

<h2 id="donate">Support SMAPI ♥</h2>
<p>
    SMAPI is an open-source project by Pathoschild. It will always be free, but donations
    are much appreciated to help pay for development, server hosting, domain fees, coffee, etc.
</p>

<ul id="donate-links">
    <li>
        <a href="https://www.patreon.com/pathoschild" class="donate-button">
            <img src="Content/images/patreon.png" /> Become a patron
        </a>
    </li>
    <li>
        <a href="https://ko-fi.com/pathoschild" class="donate-button">
            <img src="Content/images/ko-fi.png"/> Buy me a coffee
        </a>
    </li>
    <li>
        <a href="https://www.paypal.me/pathoschild" class="donate-button">
            <img src="Content/images/paypal.png"/> Donate via PayPal
        </a>
    </li>
</ul>

<p>
    Special thanks to
    <a href="https://www.nexusmods.com/stardewvalley/users/31393530">ChefRude</a>,
    <a href="https://github.com/dittusch">dittusch</a>,
    hawkfalcon,
    <a href="https://twitter.com/iKeychain">iKeychain</a>,
    jwdred,
    <a href="https://www.nexusmods.com/users/12252523">Karmylla</a>,
    Pucklynn,
    Robby LaFarge,
    and a few anonymous users for their ongoing support on Patreon; you're awesome!
</p>

<h2 id="modcreators">For mod creators</h2>
<ul>
    <li><a href="@Model.StableVersion.DevDownloadUrl">SMAPI @Model.StableVersion.Version for developers</a> (includes <a href="https://docs.microsoft.com/en-us/visualstudio/ide/using-intellisense">intellisense</a> and full console output)</li>
    @if (Model.BetaVersion != null)
    {
        <li><a href="@Model.BetaVersion.DevDownloadUrl">SMAPI @Model.BetaVersion.Version for developers</a> (includes <a href="https://docs.microsoft.com/en-us/visualstudio/ide/using-intellisense">intellisense</a> and full console output)</li>
    }
    <li><a href="https://stardewvalleywiki.com/Modding:Index">Modding documentation</a></li>
    <li>Need help? Come <a href="https://stardewvalleywiki.com/Modding:Community#Discord">chat on Discord</a>.</li>
</ul>