From 95534ff214edf33c57fbf46b146bdbc606a40b4b Mon Sep 17 00:00:00 2001 From: Claudiu Schuster Date: Sun, 30 Aug 2026 15:26:17 +0200 Subject: [PATCH] Fix project image aspect ratios --- scripts/build-site.sh | 2 +- scripts/check-site.py | 4 ++-- site/404.html | 2 +- site/assets/styles/{site-v1.css => site-v2.css} | 4 ++-- site/index.html | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) rename site/assets/styles/{site-v1.css => site-v2.css} (99%) diff --git a/scripts/build-site.sh b/scripts/build-site.sh index 69bf2e5..8a8bc40 100755 --- a/scripts/build-site.sh +++ b/scripts/build-site.sh @@ -47,7 +47,7 @@ copy_file assets/projects/chatgpt-usage-v030.webp assets/projects/chatgpt-usage- copy_file assets/projects/nemo-action-bar.webp assets/projects/nemo-action-bar.webp copy_file assets/scripts/reactive-field-v2.js assets/scripts/reactive-field-v2.js copy_file assets/social/oss-singularity-social-preview.png assets/social/oss-singularity-social-preview.png -copy_file assets/styles/site-v1.css assets/styles/site-v1.css +copy_file assets/styles/site-v2.css assets/styles/site-v2.css ( cd "$output" diff --git a/scripts/check-site.py b/scripts/check-site.py index 19e20ca..1cddcaf 100755 --- a/scripts/check-site.py +++ b/scripts/check-site.py @@ -79,7 +79,7 @@ def main() -> int: "assets/projects/pdrive-control-center-v080.webp", "assets/scripts/reactive-field-v2.js", "assets/social/oss-singularity-social-preview.png", - "assets/styles/site-v1.css", + "assets/styles/site-v2.css", } actual = {str(path.relative_to(root)) for path in root.rglob("*") if path.is_file()} if actual != required: @@ -143,7 +143,7 @@ def main() -> int: if html_bytes > 35_000: fail(f"HTML budget exceeded: {html_bytes} bytes") - css_bytes = (root / "assets/styles/site-v1.css").stat().st_size + css_bytes = (root / "assets/styles/site-v2.css").stat().st_size if css_bytes > 40_000: fail(f"CSS budget exceeded: {css_bytes} bytes") script_bytes = (root / "assets/scripts/reactive-field-v2.js").stat().st_size diff --git a/site/404.html b/site/404.html index b539f50..a89f885 100644 --- a/site/404.html +++ b/site/404.html @@ -8,7 +8,7 @@ - + diff --git a/site/assets/styles/site-v1.css b/site/assets/styles/site-v2.css similarity index 99% rename from site/assets/styles/site-v1.css rename to site/assets/styles/site-v2.css index f582e0a..a9c6f04 100644 --- a/site/assets/styles/site-v1.css +++ b/site/assets/styles/site-v2.css @@ -61,7 +61,7 @@ body::before { position: absolute; } -img { display: block; max-width: 100%; } +img { display: block; height: auto; max-width: 100%; } a { color: inherit; } .skip-link { @@ -375,7 +375,7 @@ a { color: inherit; } .project-content, .project-compact .project-content { padding: 30px 24px; } .project-chatgpt { grid-template-columns: 1fr; } .chatgpt-visual { height: 360px; } - .chatgpt-visual img { bottom: -260px; right: 8%; width: 58%; } + .chatgpt-visual img { bottom: -90px; right: 8%; width: 58%; } .project-nemo { grid-template-rows: 190px 1fr; } .nemo-visual { padding: 45px 18px 0; } .invitation h2 { font-size: 3.9rem; } diff --git a/site/index.html b/site/index.html index 7323189..11cc63c 100644 --- a/site/index.html +++ b/site/index.html @@ -10,7 +10,7 @@ - +