From 34e03cd981acc934c779c29400f6ade0cb9bf54a Mon Sep 17 00:00:00 2001 From: dwalker Date: Sun, 3 May 2026 00:13:27 -0400 Subject: initial commit --- dwalker.xyz/Pages/Error.cshtml | 26 +++++++++ dwalker.xyz/Pages/Error.cshtml.cs | 20 +++++++ dwalker.xyz/Pages/Index.cshtml | 11 ++++ dwalker.xyz/Pages/Index.cshtml.cs | 10 ++++ dwalker.xyz/Pages/Shared/_Layout.cshtml | 16 ++++++ dwalker.xyz/Pages/_ViewImports.cshtml | 3 ++ dwalker.xyz/Pages/_ViewStart.cshtml | 3 ++ dwalker.xyz/Program.cs | 24 +++++++++ dwalker.xyz/Properties/launchSettings.json | 23 ++++++++ dwalker.xyz/appsettings.Development.json | 9 ++++ dwalker.xyz/appsettings.json | 9 ++++ dwalker.xyz/dwalker.xyz.csproj | 9 ++++ dwalker.xyz/wwwroot/css/site.css | 84 +++++++++++++++++++++++++++++ dwalker.xyz/wwwroot/favicon.ico | Bin 0 -> 2494 bytes 14 files changed, 247 insertions(+) create mode 100644 dwalker.xyz/Pages/Error.cshtml create mode 100644 dwalker.xyz/Pages/Error.cshtml.cs create mode 100644 dwalker.xyz/Pages/Index.cshtml create mode 100644 dwalker.xyz/Pages/Index.cshtml.cs create mode 100644 dwalker.xyz/Pages/Shared/_Layout.cshtml create mode 100644 dwalker.xyz/Pages/_ViewImports.cshtml create mode 100644 dwalker.xyz/Pages/_ViewStart.cshtml create mode 100644 dwalker.xyz/Program.cs create mode 100644 dwalker.xyz/Properties/launchSettings.json create mode 100644 dwalker.xyz/appsettings.Development.json create mode 100644 dwalker.xyz/appsettings.json create mode 100644 dwalker.xyz/dwalker.xyz.csproj create mode 100644 dwalker.xyz/wwwroot/css/site.css create mode 100644 dwalker.xyz/wwwroot/favicon.ico (limited to 'dwalker.xyz') diff --git a/dwalker.xyz/Pages/Error.cshtml b/dwalker.xyz/Pages/Error.cshtml new file mode 100644 index 0000000..6f92b95 --- /dev/null +++ b/dwalker.xyz/Pages/Error.cshtml @@ -0,0 +1,26 @@ +@page +@model ErrorModel +@{ + ViewData["Title"] = "Error"; +} + +

Error.

+

An error occurred while processing your request.

+ +@if (Model.ShowRequestId) +{ +

+ Request ID: @Model.RequestId +

+} + +

Development Mode

+

+ Swapping to the Development environment displays detailed information about the error that occurred. +

+

+ The Development environment shouldn't be enabled for deployed applications. + It can result in displaying sensitive information from exceptions to end users. + For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development + and restarting the app. +

diff --git a/dwalker.xyz/Pages/Error.cshtml.cs b/dwalker.xyz/Pages/Error.cshtml.cs new file mode 100644 index 0000000..b7e3274 --- /dev/null +++ b/dwalker.xyz/Pages/Error.cshtml.cs @@ -0,0 +1,20 @@ +using System.Diagnostics; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace dwalker.xyz.Pages; + +[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] +[IgnoreAntiforgeryToken] +public class ErrorModel : PageModel +{ + public string? RequestId { get; set; } + + public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); + + public void OnGet() + { + RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier; + } +} + diff --git a/dwalker.xyz/Pages/Index.cshtml b/dwalker.xyz/Pages/Index.cshtml new file mode 100644 index 0000000..0283f0d --- /dev/null +++ b/dwalker.xyz/Pages/Index.cshtml @@ -0,0 +1,11 @@ +@page +@model IndexModel +@{ + ViewData["Title"] = "dwalker.xyz"; +} + +
+

.NET 10 Razor Pages

+

Blank, modern, and ready.

+

A minimal starting point for building dwalker.xyz without demo content or extra scaffolding.

+
diff --git a/dwalker.xyz/Pages/Index.cshtml.cs b/dwalker.xyz/Pages/Index.cshtml.cs new file mode 100644 index 0000000..69ef63d --- /dev/null +++ b/dwalker.xyz/Pages/Index.cshtml.cs @@ -0,0 +1,10 @@ +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace dwalker.xyz.Pages; + +public class IndexModel : PageModel +{ + public void OnGet() + { + } +} diff --git a/dwalker.xyz/Pages/Shared/_Layout.cshtml b/dwalker.xyz/Pages/Shared/_Layout.cshtml new file mode 100644 index 0000000..52b617a --- /dev/null +++ b/dwalker.xyz/Pages/Shared/_Layout.cshtml @@ -0,0 +1,16 @@ + + + + + + @ViewData["Title"] + + + +
+ @RenderBody() +
+ + @await RenderSectionAsync("Scripts", required: false) + + diff --git a/dwalker.xyz/Pages/_ViewImports.cshtml b/dwalker.xyz/Pages/_ViewImports.cshtml new file mode 100644 index 0000000..874bfd3 --- /dev/null +++ b/dwalker.xyz/Pages/_ViewImports.cshtml @@ -0,0 +1,3 @@ +@using dwalker.xyz +@namespace dwalker.xyz.Pages +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers diff --git a/dwalker.xyz/Pages/_ViewStart.cshtml b/dwalker.xyz/Pages/_ViewStart.cshtml new file mode 100644 index 0000000..a5f1004 --- /dev/null +++ b/dwalker.xyz/Pages/_ViewStart.cshtml @@ -0,0 +1,3 @@ +@{ + Layout = "_Layout"; +} diff --git a/dwalker.xyz/Program.cs b/dwalker.xyz/Program.cs new file mode 100644 index 0000000..42476c7 --- /dev/null +++ b/dwalker.xyz/Program.cs @@ -0,0 +1,24 @@ +var builder = WebApplication.CreateBuilder(args); + +// Add services to the container. +builder.Services.AddRazorPages(); + +var app = builder.Build(); + +// Configure the HTTP request pipeline. +if (!app.Environment.IsDevelopment()) +{ + app.UseExceptionHandler("/Error"); + // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. + app.UseHsts(); +} + +app.UseHttpsRedirection(); + +app.UseRouting(); + +app.MapStaticAssets(); +app.MapRazorPages() + .WithStaticAssets(); + +app.Run(); diff --git a/dwalker.xyz/Properties/launchSettings.json b/dwalker.xyz/Properties/launchSettings.json new file mode 100644 index 0000000..c55f6a2 --- /dev/null +++ b/dwalker.xyz/Properties/launchSettings.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json.schemastore.org/launchsettings.json", + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "http://localhost:0", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "https://localhost:0;http://localhost:0", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/dwalker.xyz/appsettings.Development.json b/dwalker.xyz/appsettings.Development.json new file mode 100644 index 0000000..770d3e9 --- /dev/null +++ b/dwalker.xyz/appsettings.Development.json @@ -0,0 +1,9 @@ +{ + "DetailedErrors": true, + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/dwalker.xyz/appsettings.json b/dwalker.xyz/appsettings.json new file mode 100644 index 0000000..10f68b8 --- /dev/null +++ b/dwalker.xyz/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/dwalker.xyz/dwalker.xyz.csproj b/dwalker.xyz/dwalker.xyz.csproj new file mode 100644 index 0000000..a3a34b6 --- /dev/null +++ b/dwalker.xyz/dwalker.xyz.csproj @@ -0,0 +1,9 @@ + + + + net10.0 + enable + enable + + + diff --git a/dwalker.xyz/wwwroot/css/site.css b/dwalker.xyz/wwwroot/css/site.css new file mode 100644 index 0000000..93b6fd5 --- /dev/null +++ b/dwalker.xyz/wwwroot/css/site.css @@ -0,0 +1,84 @@ +:root { + color-scheme: light; + --bg: #f4f1ea; + --bg-accent: #e8dfd1; + --surface: rgba(255, 255, 255, 0.72); + --surface-border: rgba(34, 34, 34, 0.08); + --text: #171513; + --muted: #61584d; + --accent: #0e776d; +} + +* { + box-sizing: border-box; +} + +html { + font-size: 16px; +} + +body { + margin: 0; + min-height: 100vh; + color: var(--text); + background: + radial-gradient(circle at top left, rgba(14, 119, 109, 0.18), transparent 32%), + radial-gradient(circle at bottom right, rgba(184, 129, 74, 0.18), transparent 28%), + linear-gradient(180deg, var(--bg) 0%, #fbfaf7 100%); + font-family: "Space Grotesk", "Segoe UI", sans-serif; +} + +a { + color: inherit; +} + +.app-shell { + min-height: 100vh; + display: grid; + place-items: center; + padding: 2rem; +} + +.hero { + width: min(100%, 48rem); + padding: clamp(2rem, 5vw, 4rem); + border: 1px solid var(--surface-border); + border-radius: 2rem; + background: var(--surface); + backdrop-filter: blur(18px); + box-shadow: 0 30px 80px rgba(34, 21, 9, 0.08); +} + +.eyebrow { + margin: 0 0 1rem; + color: var(--accent); + font-size: 0.9rem; + font-weight: 700; + letter-spacing: 0.12em; + text-transform: uppercase; +} + +.hero h1 { + margin: 0; + font-size: clamp(3rem, 8vw, 5.75rem); + line-height: 0.95; + letter-spacing: -0.05em; +} + +.lede { + max-width: 34rem; + margin: 1.5rem 0 0; + color: var(--muted); + font-size: clamp(1rem, 2vw, 1.15rem); + line-height: 1.7; +} + +@media (max-width: 640px) { + .app-shell { + padding: 1rem; + } + + .hero { + border-radius: 1.5rem; + } +} diff --git a/dwalker.xyz/wwwroot/favicon.ico b/dwalker.xyz/wwwroot/favicon.ico new file mode 100644 index 0000000..174c371 Binary files /dev/null and b/dwalker.xyz/wwwroot/favicon.ico differ -- cgit v1.2.3