Cleanup unused code
This commit is contained in:
@@ -15,12 +15,4 @@
|
||||
<ProjectReference Include="..\BeauFindlay.Shared\BeauFindlay.Shared.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<_ContentIncludedByDefault Remove="Components\AnchorNavigation\AnchorNavigation.razor" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="wwwroot\sitemap.txt" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<nav class="flex items-center justify-center py-12 space-x-8">
|
||||
<nav class="flex items-center justify-center py-8 md:py-12 space-x-8">
|
||||
<NavLink href="/" Match="NavLinkMatch.All" ActiveClass="border-l-2 border-r-2 px-2 rounded">
|
||||
Home
|
||||
</NavLink>
|
||||
|
||||
@@ -5,16 +5,7 @@
|
||||
<PageTitle>About - Beau Findlay</PageTitle>
|
||||
|
||||
<div class="text-center pb-4" id="@TopSection">
|
||||
@if (!hasPreviouslyRendered)
|
||||
{
|
||||
<h1 class="text-4xl">
|
||||
<Typewriter Text="This app"/>
|
||||
</h1>
|
||||
}
|
||||
else
|
||||
{
|
||||
<h1 class="text-4xl">This app</h1>
|
||||
}
|
||||
</div>
|
||||
|
||||
<nav class="flex items-center justify-center py-8 space-x-8">
|
||||
@@ -73,35 +64,11 @@
|
||||
<AnchorNavigation/>
|
||||
|
||||
@code {
|
||||
private const string ComponentKey = "ComponentRendered_About";
|
||||
private const string FrontEndSection = "front-end";
|
||||
private const string BackEndSection = "back-end";
|
||||
private const string HostingSection = "hosting";
|
||||
private const string TopSection = "top";
|
||||
|
||||
private bool hasPreviouslyRendered;
|
||||
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
if (firstRender)
|
||||
{
|
||||
var renderedBeforeAsString = await JSRuntime.InvokeAsync<string>("localStorage.getItem", ComponentKey);
|
||||
|
||||
var previousValue = hasPreviouslyRendered;
|
||||
hasPreviouslyRendered = !string.IsNullOrEmpty(renderedBeforeAsString) && bool.Parse(renderedBeforeAsString);
|
||||
|
||||
if (!hasPreviouslyRendered)
|
||||
{
|
||||
await JSRuntime.InvokeVoidAsync("localStorage.setItem", ComponentKey, "true");
|
||||
}
|
||||
|
||||
if (previousValue != hasPreviouslyRendered)
|
||||
{
|
||||
StateHasChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private async Task ScrollToElementAsync(string elementId)
|
||||
{
|
||||
await JSRuntime.InvokeVoidAsync("scrollToElement", elementId);
|
||||
|
||||
@@ -1130,6 +1130,15 @@ body::-webkit-scrollbar-thumb {
|
||||
padding-left: 3rem;
|
||||
padding-right: 3rem;
|
||||
}
|
||||
|
||||
.md\:py-12 {
|
||||
padding-top: 3rem;
|
||||
padding-bottom: 3rem;
|
||||
}
|
||||
|
||||
.md\:text-left {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
|
||||
Reference in New Issue
Block a user