Improve the sample website

This commit is contained in:
Frank A. Krueger 2018-02-02 17:28:59 -08:00
parent ff9e9f749a
commit b8a95536ef
No known key found for this signature in database
GPG Key ID: 7267E9B18C8DFACE
2 changed files with 17 additions and 10 deletions

View File

@ -1,5 +1,7 @@
@{
ViewData["Title"] = "Ooui";
var formsSamples = SamplesController.Samples.Where(x => x.Title.StartsWith("Xamarin.Forms "));
var otherSamples = SamplesController.Samples.Where(x => !x.Title.StartsWith("Xamarin.Forms "));
}
<div class="row" style="margin-top:4em;">
@ -9,15 +11,26 @@
<div class="col-md-2">
<h1>Ooui</h1>
<p>Write interactive web apps in C# and F#</p>
<p><a href="https://github.com/praeclarum/Ooui">Source Code</a></p>
<p><a href="https://github.com/praeclarum/Ooui">Source Code on GitHub</a></p>
</div>
</div>
<div class="row" style="margin-top:4em;">
<div class="col-md-4">
<h3>Samples</h3>
<h3>Xamarin.Forms Samples</h3>
<ul>
@foreach (var s in SamplesController.Samples) {
@foreach (var s in formsSamples) {
<li>
<a asp-area="" asp-controller="Samples" asp-action="Run" asp-route-name="@s.Title">@s.Title.Substring(14)</a>
(<a asp-area="" asp-controller="Samples" asp-action="Run" asp-route-name="@s.Title" asp-route-shared="@true">Shared</a>)
</li>
}
</ul>
</div>
<div class="col-md-4">
<h3>Plain Web Samples</h3>
<ul>
@foreach (var s in otherSamples) {
<li>
<a asp-area="" asp-controller="Samples" asp-action="Run" asp-route-name="@s.Title">@s.Title</a>
(<a asp-area="" asp-controller="Samples" asp-action="Run" asp-route-name="@s.Title" asp-route-shared="@true">Shared</a>)
@ -25,10 +38,4 @@
}
</ul>
</div>
<div class="col-md-3">
<h3>Get it</h3>
<ul>
<li><a href="https://github.com/praeclarum/Ooui">Source Code on Github</a></li>
</ul>
</div>
</div>

View File

@ -40,7 +40,7 @@
@RenderBody()
<hr />
<footer>
<p>&copy; 2017 - Frank A. Krueger</p>
<p>&copy; 2017 - @DateTime.UtcNow.Year Frank A. Krueger</p>
</footer>
</div>