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 @@