Commit ae0020ff authored by Clint.Network's avatar Clint.Network

Adding lottery page

parent 10eaa60c
......@@ -66,6 +66,12 @@ namespace Stratis.Guru.Controllers
});
}
[Route("lottery")]
public IActionResult Lottery()
{
return View();
}
[Route("about")]
public IActionResult About()
{
......
......@@ -14,8 +14,4 @@
<PackageReference Include="RestSharp" Version="106.5.4"/>
</ItemGroup>
<ItemGroup>
<Folder Include="Documentation"/>
</ItemGroup>
</Project>
@{
ViewBag.Title = "Stratis Lottery";
Layout = "_Layout";
}
@section Style
{
<style>
body {
background-image: url(/images/Slider_Landing-1920x650.webp.jpg);
}
</style>
}
<section class="welcome-area pb-4" id="welcome-1">
<div class="header-token">
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 align-self-center text-center">
<h1 class="m-0">The Next <strong>Stratis</strong> Lottery Draw in:</h1>
<h1 class="align-middle">
<span class="align-middle display-1 font-weight-bold" id="amount">
<span id="clock"></span>
</span>
</h1>
<a asp-controller="BlockExplorer" asp-action="Index" class="btn-secondary-box"><i class="fa fa-ticket"></i> Buy a lottery ticket</a>
</div>
</div>
</div>
</div>
</section>
@section Scripts
{
<script src="/npm/jquery-countdown/dist/jquery.countdown.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#clock').countdown('2020/10/10', function(event) {
$(this).html(event.strftime('%Hh %Mm %Ss'));
});
})
</script>
}
......@@ -14,6 +14,11 @@
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.1.3.tgz",
"integrity": "sha512-rDFIzgXcof0jDyjNosjv4Sno77X4KuPeFxG2XZZv1/Kc8DRVGVADdoQyyOVDwPqL36DDmtCQbrpMCqvpPLJQ0w=="
},
"jquery-countdown": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/jquery-countdown/-/jquery-countdown-2.2.0.tgz",
"integrity": "sha1-unjtXXzxB7OxysnGugeZfUqi3O8="
},
"nprogress": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/nprogress/-/nprogress-0.2.0.tgz",
......
......@@ -15,6 +15,7 @@
"dependencies": {
"@aspnet/signalr": "^1.0.4",
"bootstrap": "^4.1.3",
"jquery-countdown": "^2.2.0",
"nprogress": "^0.2.0"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment