Adding Updated Blazor Version

This commit is contained in:
6d486f49
2026-04-22 13:32:24 -04:00
parent 0c7289c50e
commit a0fbc80bff
77 changed files with 60713 additions and 11 deletions
+36
View File
@@ -0,0 +1,36 @@
@page "/Error"
@using System.Diagnostics
<PageTitle>Error</PageTitle>
<h1 class="text-danger">Error.</h1>
<h2 class="text-danger">An error occurred while processing your request.</h2>
@if (ShowRequestId)
{
<p>
<strong>Request ID:</strong> <code>@RequestId</code>
</p>
}
<h3>Development Mode</h3>
<p>
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
</p>
<p>
<strong>The Development environment shouldn't be enabled for deployed applications.</strong>
It can result in displaying sensitive information from exceptions to end users.
For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
and restarting the app.
</p>
@code{
[CascadingParameter]
private HttpContext? HttpContext { get; set; }
private string? RequestId { get; set; }
private bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
protected override void OnInitialized() =>
RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier;
}
+55
View File
@@ -0,0 +1,55 @@
@page "/"
@using Website.Data
<div class="page">
<div class="title">
<div><b>Jonathan McCaffrey</b></div>
@foreach (var part in Overview.Get().Parts.OrderBy(a => a.Order))
{
@if (part.IsVisible)
{
<div>@part.Description</div>
}
}
</div>
<div class="side">
@foreach (var info in PersonalInfo.Get().Info)
{
@if (info.IsVisible)
{
<div><i>@info.Name</i></div>
<div>@info.Value</div>
<br />
}
}
<br />
<i>Skills:</i>
@foreach (var skill in Skills.Get().Skills)
{
@if (skill.IsVisible)
{
<div>@skill.Name</div>
}
}
</div>
<div class="experience">
@foreach (var experience in WorkExperience.Get().Experiences)
{
<div><b>@experience.Role</b></div>
<div>@experience.Location</div>
<div>@experience.DateRange</div>
<ul>
@foreach (var point in experience.Points)
{
@if (point.IsVisible)
{
<li>@point.Description</li>
}
}
</ul>
}
</div>
</div>
+26
View File
@@ -0,0 +1,26 @@
.page {
width: 816px;
height: 1054px;
display: grid;
gap: 14px;
grid-template-columns: min-content 1fr;
grid-template-rows: min-content 1fr;
grid-template-areas:
"title title"
"side experience";
}
.title {
grid-area: title;
font-size: 12px;
}
.side {
grid-area: side;
font-size: 12px;
}
.experience {
grid-area: experience;
font-size: 12px;
}
+5
View File
@@ -0,0 +1,5 @@
@page "/not-found"
@layout MainLayout
<h3>Not Found</h3>
<p>Sorry, the content you are looking for does not exist.</p>