diff options
| author | dwalker <dwalker@dwalker.xyz> | 2026-05-03 00:13:27 -0400 |
|---|---|---|
| committer | dwalker <dwalker@dwalker.xyz> | 2026-05-03 00:13:27 -0400 |
| commit | 34e03cd981acc934c779c29400f6ade0cb9bf54a (patch) | |
| tree | 02c35db6e3baf407a2572b449b35ef067e5d24ac /dwalker.xyz | |
initial commit
Diffstat (limited to 'dwalker.xyz')
| -rw-r--r-- | dwalker.xyz/Pages/Error.cshtml | 26 | ||||
| -rw-r--r-- | dwalker.xyz/Pages/Error.cshtml.cs | 20 | ||||
| -rw-r--r-- | dwalker.xyz/Pages/Index.cshtml | 11 | ||||
| -rw-r--r-- | dwalker.xyz/Pages/Index.cshtml.cs | 10 | ||||
| -rw-r--r-- | dwalker.xyz/Pages/Shared/_Layout.cshtml | 16 | ||||
| -rw-r--r-- | dwalker.xyz/Pages/_ViewImports.cshtml | 3 | ||||
| -rw-r--r-- | dwalker.xyz/Pages/_ViewStart.cshtml | 3 | ||||
| -rw-r--r-- | dwalker.xyz/Program.cs | 24 | ||||
| -rw-r--r-- | dwalker.xyz/Properties/launchSettings.json | 23 | ||||
| -rw-r--r-- | dwalker.xyz/appsettings.Development.json | 9 | ||||
| -rw-r--r-- | dwalker.xyz/appsettings.json | 9 | ||||
| -rw-r--r-- | dwalker.xyz/dwalker.xyz.csproj | 9 | ||||
| -rw-r--r-- | dwalker.xyz/wwwroot/css/site.css | 84 | ||||
| -rw-r--r-- | dwalker.xyz/wwwroot/favicon.ico | bin | 0 -> 2494 bytes |
14 files changed, 247 insertions, 0 deletions
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"; +} + +<h1 class="text-danger">Error.</h1> +<h2 class="text-danger">An error occurred while processing your request.</h2> + +@if (Model.ShowRequestId) +{ + <p> + <strong>Request ID:</strong> <code>@Model.RequestId</code> + </p> +} + +<h3>Development Mode</h3> +<p> + Swapping to the <strong>Development</strong> environment displays 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> 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"; +} + +<section class="hero"> + <p class="eyebrow">.NET 10 Razor Pages</p> + <h1>Blank, modern, and ready.</h1> + <p class="lede">A minimal starting point for building dwalker.xyz without demo content or extra scaffolding.</p> +</section> 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 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <title>@ViewData["Title"]</title> + <link rel="stylesheet" href="~/css/site.css" asp-append-version="true" /> +</head> +<body> + <main class="app-shell"> + @RenderBody() + </main> + + @await RenderSectionAsync("Scripts", required: false) +</body> +</html> 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 @@ +<Project Sdk="Microsoft.NET.Sdk.Web"> + + <PropertyGroup> + <TargetFramework>net10.0</TargetFramework> + <Nullable>enable</Nullable> + <ImplicitUsings>enable</ImplicitUsings> + </PropertyGroup> + +</Project> 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 Binary files differnew file mode 100644 index 0000000..174c371 --- /dev/null +++ b/dwalker.xyz/wwwroot/favicon.ico |
