2023-01-30 09:23:49 +01:00
|
|
|
@inject IFileService FileService
|
|
|
|
@using BTCPayServer.Abstractions.Contracts
|
2023-12-01 16:13:44 +01:00
|
|
|
@model (string Title, StoreBrandingViewModel StoreBranding)
|
2023-01-30 09:23:49 +01:00
|
|
|
@{
|
2023-12-01 16:13:44 +01:00
|
|
|
var logoUrl = !string.IsNullOrEmpty(Model.StoreBranding.LogoFileId)
|
|
|
|
? await FileService.GetFileUrl(Context.Request.GetAbsoluteRootUri(), Model.StoreBranding.LogoFileId)
|
2023-01-30 09:23:49 +01:00
|
|
|
: null;
|
|
|
|
}
|
2023-03-08 17:57:36 +09:00
|
|
|
<header class="store-header" v-pre>
|
2023-01-30 09:23:49 +01:00
|
|
|
@if (!string.IsNullOrEmpty(logoUrl))
|
|
|
|
{
|
|
|
|
<img src="@logoUrl" alt="@Model.Title" class="store-logo"/>
|
|
|
|
}
|
|
|
|
<h1 class="store-name">@Model.Title</h1>
|
|
|
|
</header>
|