-
-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathFooter.razor
More file actions
30 lines (28 loc) · 1 KB
/
Copy pathFooter.razor
File metadata and controls
30 lines (28 loc) · 1 KB
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
@using LinkDotNet.Blog.Domain
@using LinkDotNet.Blog.Web.Features.SupportMe.Components
@inject IOptions<ApplicationConfiguration> AppConfiguration
@inject IOptions<ProfileInformation> ProfileInformation
@inject IOptions<SupportMeConfiguration> SupportConfiguration
<footer class="position-absolute bottom-0 w-100 text-center text-body-secondary text-muted" style="height: 2.5rem;">
<small>
<span>© @DateTime.Now.Year @CopyrightName</span>
@if (AppConfiguration.Value.ShowBuildInformation)
{
<p class="text-gray-300 mb-0">Made with ❤️, @BuildInformation.TargetFrameworkMoniker, and Blazor</p>
<p class="text-gray-300">
Built At: @(BuildInformation.BuildAt.ToString("dd-MM-yyyy HH:mm")) (UTC)
</p>
}
@if (SupportConfiguration.Value.ShowInFooter)
{
<div class="pb-2 d-flex justify-content-center">
<DonationSection/>
</div>
}
</small>
</footer>
@code {
private string CopyrightName => AppConfiguration.Value.IsAboutMeEnabled
? ProfileInformation.Value.Name
: string.Empty;
}