40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
@{
|
|
@model MainViewModel
|
|
var nonce = _accessor.HttpContext?.Items["csp-nonce"] as string;
|
|
var cImg = _cImgOpt.Value;
|
|
ViewData["Title"] = _localizer["Home"];
|
|
var userCulture = ViewData["UserCulture"] as Culture;
|
|
}
|
|
<div class="page container py-4 px-4">
|
|
<header class="text-center">
|
|
<div class="header-1 alert alert-secondary" role="alert">
|
|
<h3 class="text">@_localizer.WelcomeToTheESignPortal()</h3>
|
|
<img class="@cImg["Company"].GetClassIn("Locked")" src="@cImg["Company"].Src" />
|
|
</div>
|
|
<div class="icon mt-4 mb-1">
|
|
<img class="@cImg["App"].GetClassIn("Main")" src="@cImg["App"].Src">
|
|
</div>
|
|
@if(Model.Title is string title)
|
|
{
|
|
<h1>@title</h1>
|
|
}
|
|
</header>
|
|
<section class="text-center">
|
|
<div class="alert alert-light" role="alert">
|
|
<p class="home-description"><span id="home-description"></span></p>
|
|
</div>
|
|
</section>
|
|
@if (ViewData["ErrorMessage"] is string errMsg)
|
|
{
|
|
<div id="access-code-error-message" class="alert alert-danger row" role="alert">
|
|
@errMsg
|
|
</div>
|
|
}
|
|
</div>
|
|
<script nonce="@nonce">
|
|
const msg = "@_localizer.HomePageDescription()";
|
|
var typed = new Typed('#home-description', {
|
|
strings: [msg],
|
|
typeSpeed: 15,
|
|
});
|
|
</script> |