From 4ba09d1ed8cc3e3a49455f1ec3fb45ef4b39a4c1 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 1 May 2026 09:24:46 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20Unified=20Branding=20?= =?UTF-8?q?and=20Navigation=20Polish?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Unified RTECH logo with blinking terminal cursor across all pages - Standardized navigation links with '/' prefix and specific hover effects - Prevented layout shifts in navigation by using transparent borders - Added accessible 'Copy' button to assembly code window in os2.html - Optimized script execution in os2.html for faster interactivity - Documented UX learnings in .jules/palette.md Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com> --- .jules/palette.md | 7 +++++++ index.html | 9 ++++++--- os2.html | 38 ++++++++++++++++++++++++++++++-------- 3 files changed, 43 insertions(+), 11 deletions(-) create mode 100644 .jules/palette.md diff --git a/.jules/palette.md b/.jules/palette.md new file mode 100644 index 0000000..0fde8d1 --- /dev/null +++ b/.jules/palette.md @@ -0,0 +1,7 @@ +## 2026-05-01 - Preventing Navigation Layout Shifts +**Learning:** Adding a border only on hover causes a layout shift (jump) as the element size changes. +**Action:** Initialize `.nav-link` with `border-bottom: 2px solid transparent;` and transition only the `border-color` on hover. + +## 2026-05-01 - Global Event Object in HTML Attributes +**Learning:** Relying on the global `event` object in `onclick` attributes is unreliable and can lead to errors in some environments or strict modes. +**Action:** Always pass `this` (or explicitly pass the event) to the handler function, e.g., `onclick="copyCode(this)"`. diff --git a/index.html b/index.html index 449cb15..95e8b7f 100644 --- a/index.html +++ b/index.html @@ -15,11 +15,14 @@ .industrial-border { border: 2px solid #27272a; } .license-box { background: #000; border: 1px solid #3f3f46; position: relative; } - .nav-link { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; color: #a1a1aa; transition: all 0.2s; } - .nav-link:hover { color: #fff; border-bottom: 2px solid var(--lime); } + .nav-link { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; color: #a1a1aa; transition: all 0.2s; border-bottom: 2px solid transparent; } + .nav-link:hover { color: #fff; border-bottom-color: var(--lime); } .roadmap-card { border-left: 2px solid #3f3f46; transition: all 0.3s ease; } .roadmap-card:hover { border-left-color: var(--lime); background: #111113; } + + .terminal-blink { animation: blink 1s step-end infinite; } + @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@@ -30,7 +33,7 @@