Initial Commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
@if (isDisplayable)
|
||||
{
|
||||
@ChildContent
|
||||
}
|
||||
|
||||
@code {
|
||||
|
||||
[Parameter] public RenderFragment ChildContent { get; set; } = default!;
|
||||
|
||||
[Parameter] public WebDeploymentType DeploymentType { get; set; }
|
||||
|
||||
[Inject] public NavigationManager MyNavigationManager { get; set; } = default!;
|
||||
|
||||
bool isDisplayable;
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
isDisplayable = DeploymentType == WebDeploymentModel.DeploymentType;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
@if (isDisplayable)
|
||||
{
|
||||
@ChildContent
|
||||
}
|
||||
else
|
||||
{
|
||||
<LayoutView Layout="@typeof(MainLayout)">
|
||||
<p>Sorry, there's nothing at this address.</p>
|
||||
</LayoutView>
|
||||
}
|
||||
|
||||
@code {
|
||||
|
||||
[Parameter] public RenderFragment ChildContent { get; set; } = default!;
|
||||
|
||||
[Inject] public NavigationManager MyNavigationManager { get; set; } = default!;
|
||||
|
||||
bool isDisplayable;
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
base.OnInitialized();
|
||||
var page = MyNavigationManager.Uri.Remove(0, MyNavigationManager.BaseUri.Length);
|
||||
isDisplayable = WebDeploymentModel.Get().Contains(page);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
<div class="footerContainer" xmlns="http://www.w3.org/1999/html">
|
||||
<div class="footerDivider"></div>
|
||||
|
||||
<div class="footerDisclaimer">
|
||||
This website is fan-made and not affiliated with <b>SunSpear Games</b> in any way.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<style>
|
||||
.footerIcon {
|
||||
font-size: 24px;
|
||||
padding: 8px;
|
||||
background-color: rgba(255, 255, 255, 0.05);
|
||||
border: 2px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 6px;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
.footerIcon:hover {
|
||||
color: #8fc5ff;
|
||||
background-color: rgba(200, 200, 255, 0.1);
|
||||
border: 2px solid rgba(140, 140, 255, 0.4);
|
||||
}
|
||||
|
||||
|
||||
.footerContainer {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
padding-top: 8px;
|
||||
padding-bottom: 102px;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.footerSocials {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 16px;
|
||||
justify-content: center;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.footerDivider {
|
||||
background-color: rgba(255, 255, 255, 0.12);
|
||||
height: 1px;
|
||||
width: 128px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
|
||||
.footerLastUpdated {
|
||||
text-align: center;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.footerDisclaimer {
|
||||
text-align: center;
|
||||
margin: auto;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,4 @@
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
|
||||
@Body
|
||||
@@ -0,0 +1,17 @@
|
||||
<div style="display:inline; width: 12px;">
|
||||
<div style="height: 0px; display:flex; flex-direction:column; align-items:center;">
|
||||
<div style="height: 0px;">
|
||||
―
|
||||
</div>
|
||||
<div style="height: 0px;position: relative; top: -6px; left:0px; white-space:pre">@Dividee</div>
|
||||
<div style="height: 0px; position: relative; top: 6px; left:0px; white-space:pre">@Divider</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
|
||||
[Parameter] public RenderFragment Dividee { get; set; } = default!;
|
||||
|
||||
[Parameter] public RenderFragment Divider { get; set; } = default!;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
<div
|
||||
style="display:flex; flex-direction:column; align-items:center;padding-right: 12px;padding-left: 4px; font-family:monospace">
|
||||
<div style="height: 0px;display:flex; flex-direction:row; ">
|
||||
<div style="font-size: 18px; height: 0px;">
|
||||
∑
|
||||
</div>
|
||||
<div style="position:relative; left: 2px; top: 1px;">@IndexSymbol</div>
|
||||
</div>
|
||||
|
||||
<div style="height: 0px;position: relative; top: -18px; left:0px; font-size: 80%; display:flex;">@LoopEnd</div>
|
||||
<div style="height: 0px; position: relative; top: 22px; left:0px; font-size: 80%; display:flex;">@LoopStart</div>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
|
||||
[Parameter] public RenderFragment LoopEnd { get; set; } = default!;
|
||||
|
||||
[Parameter] public RenderFragment LoopStart { get; set; } = default!;
|
||||
|
||||
[Parameter] public RenderFragment IndexSymbol { get; set; } = default!;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<span class="spoiler">
|
||||
<u>@ChildContent</u>
|
||||
</span>
|
||||
|
||||
<style>
|
||||
.spoiler {
|
||||
color: black;
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
u {
|
||||
text-decoration-color: inherit;
|
||||
text-decoration-thickness: 1px;
|
||||
}
|
||||
|
||||
.spoiler:hover {
|
||||
color: inherit;
|
||||
background-color: inherit;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
@code {
|
||||
|
||||
[Parameter] public RenderFragment ChildContent { get; set; } = default!;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user