From 259dc5575e6fef329232f4fa8cb15eb47fcc820a Mon Sep 17 00:00:00 2001 From: Andrew Simonson Date: Tue, 13 Oct 2026 14:42:04 -0500 Subject: [PATCH] minor fixes --- src/static/css/App.css | 13 +++++++++++++ src/static/json/projects.json | 19 ------------------- src/templates/home.html | 18 ++++++++++++++++-- 3 files changed, 29 insertions(+), 21 deletions(-) diff --git a/src/static/css/App.css b/src/static/css/App.css index 9c874d7..ae8dd9d 100755 --- a/src/static/css/App.css +++ b/src/static/css/App.css @@ -532,6 +532,19 @@ button:disabled { color: #565131 } +/* Chess ratings fallback — shown when API is unavailable */ +.chess-unavailable .chess-value { + color: var(--ink-3); + font-style: italic; +} + +.chess-fallback { + margin: 0.5rem 0 0; + font-size: 0.9rem; + color: var(--ink-3); + font-style: italic; +} + .selected-list { list-style: none; padding: 0; diff --git a/src/static/json/projects.json b/src/static/json/projects.json index b721e3f..7f09aee 100755 --- a/src/static/json/projects.json +++ b/src/static/json/projects.json @@ -74,12 +74,6 @@ ] ] }, - "Automotive Brand Valuation Analysis": { - "status": "complete", - "classes": "statistics", - "bgi": "automotiveBrandAnalysis.png", - "content": "Brand valuation analysis of the used car market, measuring value decay by mileage to infer qualities such as perceived reliability and how well luxury features hold their value." - }, "RIT Hotspots": { "status": "incomplete", "classes": "geospatial programming", @@ -93,19 +87,6 @@ ] ] }, - "OccupyRIT": { - "status": "complete", - "classes": "programming", - "bgi": "occupyRIT.png", - "content": "Collects RIT gym occupancy data over time to find the busiest and quietest workout hours.", - "links": [ - [ - "github", - "https://github.com/asimonson1125/Occupy-RIT", - "git repo" - ] - ] - }, "Monte Carlo Engine for NationsGame": { "status": "complete", "classes": "programming statistics", diff --git a/src/templates/home.html b/src/templates/home.html index e306cf9..1d34df1 100755 --- a/src/templates/home.html +++ b/src/templates/home.html @@ -117,7 +117,10 @@ If you're looking for shared resources you've taken a wrong turn.

- From here, we'll rekindle the future. + This site is a living experiment: self-hosted, framework-free, and + built to last. If you'd like to talk about data science, + distributed systems, or the strange intersection of theory and + practice, drop a line.

Pepsi Addict @@ -177,7 +180,18 @@ }) .catch(function (err) { console.warn('Chess.com ratings unavailable:', err); - list.hidden = true; + // Show a subtle message instead of hiding the section + list.classList.add('chess-unavailable'); + list.querySelector('.chess-value[data-stat="rapid"]').textContent = '—'; + list.querySelector('.chess-value[data-stat="blitz"]').textContent = '—'; + list.querySelector('.chess-value[data-stat="bullet"]').textContent = '—'; + list.querySelector('.chess-value[data-stat="puzzles"]').textContent = '—'; + // Add an info message after the list + var msg = document.createElement('p'); + msg.className = 'chess-fallback'; + msg.textContent = 'Chess.com ratings unavailable'; + msg.setAttribute('aria-label', 'Chess.com ratings unavailable'); + list.parentNode.insertBefore(msg, list.nextSibling); }); })();