KXB.Spark

.NET frontend modules

Installation

PM> Install-Package KXB.Spark.ListOfPeople -Version 0.0.7
KXB.Spark.ListOfPeople on NuGet.org

Preview

With all data



Preview

Without description, but with 5 properties



Preview

With out any properties, besides email and phone



Preview

Without any properties



Preview

Without image, but with phone and email



Preview

With three people per row



Preview

With two people per row



Preview

With 4:3 aspect ratio



Preview

With 3:2 aspect ratio



Preview

With 16:9 aspect ratio



Preview

With 2:1 aspect ratio



How this page was made

KXBSparkListOfPeople.cshtml

    
@model Web.ViewModels.SparkViewModel

@{
    Layout = "~/Views/Layouts/_Layout.cshtml";
    var colorGenerator = new KXB.Spark.DummyData.Generators.ColorGenerator();

    var numberOfPeoplePerPreview = 4;

    var listOfPeople1 = KXB.Spark.ListOfPeople.ListOfPeople.GenerateInstance(numberOfPeoplePerPreview);
    var listOfPeople2 = KXB.Spark.ListOfPeople.ListOfPeople.GenerateInstance(numberOfPeoplePerPreview, true, false, true, true, 3);
    var listOfPeople3 = KXB.Spark.ListOfPeople.ListOfPeople.GenerateInstance(numberOfPeoplePerPreview, true, false, true, true, 0);
    var listOfPeople4 = KXB.Spark.ListOfPeople.ListOfPeople.GenerateInstance(numberOfPeoplePerPreview, true, false, false, false, 0);
    var listOfPeople5 = KXB.Spark.ListOfPeople.ListOfPeople.GenerateInstance(numberOfPeoplePerPreview, false, false, true, true, 0);
    var listOfPeople6 = KXB.Spark.ListOfPeople.ListOfPeople.GenerateInstance(3, true, false, true, true, 3, numberOfPeoplePerRow: KXB.Spark.ListOfPeople.NumberOfPeoplePerRow.Three);
    var listOfPeople7 = KXB.Spark.ListOfPeople.ListOfPeople.GenerateInstance(2, true, false, true, true, 3, numberOfPeoplePerRow: KXB.Spark.ListOfPeople.NumberOfPeoplePerRow.Two);
    var listOfPeople8 = KXB.Spark.ListOfPeople.ListOfPeople.GenerateInstance(numberOfPeoplePerPreview, true, false, false, false, 0, aspectRatio: KXB.Spark.ListOfPeople.AspectRatio.FourByThree);
    var listOfPeople9 = KXB.Spark.ListOfPeople.ListOfPeople.GenerateInstance(numberOfPeoplePerPreview, true, false, false, false, 0, aspectRatio: KXB.Spark.ListOfPeople.AspectRatio.SixteenByNine);
    var listOfPeople10 = KXB.Spark.ListOfPeople.ListOfPeople.GenerateInstance(numberOfPeoplePerPreview, true, false, false, false, 0, aspectRatio: KXB.Spark.ListOfPeople.AspectRatio.TwoByOne);
    var listOfPeople11 = KXB.Spark.ListOfPeople.ListOfPeople.GenerateInstance(numberOfPeoplePerPreview, true, false, false, false, 0, aspectRatio: KXB.Spark.ListOfPeople.AspectRatio.ThreeByTwo);
}

@Html.Partial("~/Views/Partials/_InstallationGuide.cshtml", Model.NugetModel)
<hr />
<div class="container">
    <h2 class="title">Preview</h2>
    <h3 class="subtitle">With all data</h3>
    @Html.Partial("~/Views/Partials/KXB.Spark/_ListOfPeople.cshtml", listOfPeople1)
    @Html.Partial("~/Views/Partials/_ModelPreview.cshtml", listOfPeople1)
</div>
<hr />
<div class="container">
    <h2 class="title">Preview</h2>
    <h3  class="subtitle">Without description, but with 5 properties</h3>
    @Html.Partial("~/Views/Partials/KXB.Spark/_ListOfPeople.cshtml", listOfPeople2)
    @Html.Partial("~/Views/Partials/_ModelPreview.cshtml", listOfPeople2)
</div>
<hr />
<div class="container">
    <h2 class="title">Preview</h2>
    <h3 class="subtitle">With out any properties, besides email and phone</h3>
    @Html.Partial("~/Views/Partials/KXB.Spark/_ListOfPeople.cshtml", listOfPeople3)
    @Html.Partial("~/Views/Partials/_ModelPreview.cshtml", listOfPeople3)
</div>
<hr />
<div class="container">
    <h2 class="title">Preview</h2>
    <h3 class="subtitle">Without any properties</h3>
    @Html.Partial("~/Views/Partials/KXB.Spark/_ListOfPeople.cshtml", listOfPeople4)
    @Html.Partial("~/Views/Partials/_ModelPreview.cshtml", listOfPeople4)
</div>
<hr />
<div class="container">
    <h2 class="title">Preview</h2>
    <h3 class="subtitle">Without image, but with phone and email</h3>
    @Html.Partial("~/Views/Partials/KXB.Spark/_ListOfPeople.cshtml", listOfPeople5)
    @Html.Partial("~/Views/Partials/_ModelPreview.cshtml", listOfPeople5)
</div>
<hr />
<div class="container">
    <h2 class="title">Preview</h2>
    <h3 class="subtitle">With three people per row</h3>
    @Html.Partial("~/Views/Partials/KXB.Spark/_ListOfPeople.cshtml", listOfPeople6)
    @Html.Partial("~/Views/Partials/_ModelPreview.cshtml", listOfPeople6)
</div>
<hr />
<div class="container">
    <h2 class="title">Preview</h2>
    <h3 class="subtitle">With two people per row</h3>
    @Html.Partial("~/Views/Partials/KXB.Spark/_ListOfPeople.cshtml", listOfPeople7)
    @Html.Partial("~/Views/Partials/_ModelPreview.cshtml", listOfPeople7)
</div>
<hr />
<div class="container">
    <h2 class="title">Preview</h2>
    <h3 class="subtitle">With 4:3 aspect ratio</h3>
    @Html.Partial("~/Views/Partials/KXB.Spark/_ListOfPeople.cshtml", listOfPeople8)
    @Html.Partial("~/Views/Partials/_ModelPreview.cshtml", listOfPeople8)
</div>
<hr />
<div class="container">
    <h2 class="title">Preview</h2>
    <h3 class="subtitle">With 3:2 aspect ratio</h3>
    @Html.Partial("~/Views/Partials/KXB.Spark/_ListOfPeople.cshtml", listOfPeople11)
    @Html.Partial("~/Views/Partials/_ModelPreview.cshtml", listOfPeople11)
</div>
<hr />
<div class="container">
    <h2 class="title">Preview</h2>
    <h3 class="subtitle">With 16:9 aspect ratio</h3>
    @Html.Partial("~/Views/Partials/KXB.Spark/_ListOfPeople.cshtml", listOfPeople9)
    @Html.Partial("~/Views/Partials/_ModelPreview.cshtml", listOfPeople9)
</div>
<hr />
<div class="container">
    <h2 class="title">Preview</h2>
    <h3 class="subtitle">With 2:1 aspect ratio</h3>
    @Html.Partial("~/Views/Partials/KXB.Spark/_ListOfPeople.cshtml", listOfPeople10)
    @Html.Partial("~/Views/Partials/_ModelPreview.cshtml", listOfPeople10)
</div>