From 7018459185c67326038ced2cf1f501b32e7ed00b Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 7 Feb 2026 01:53:13 +0000 Subject: [PATCH] feat: add accessible Skip to Content link - Add SkipLink component with off-screen styling - Add translation keys for skip link text - Integrate SkipLink in App.tsx and wrap content in #main-content - Add unit tests for SkipLink Co-authored-by: ragusa-it <196988693+ragusa-it@users.noreply.github.com> --- src/App.tsx | 19 ++++++----- src/components/ui/SkipLink.module.css | 22 ++++++++++++ src/components/ui/SkipLink.tsx | 12 +++++++ src/components/ui/__tests__/SkipLink.test.tsx | 34 +++++++++++++++++++ src/components/ui/index.ts | 1 + src/i18n/de.ts | 1 + src/i18n/en.ts | 1 + 7 files changed, 82 insertions(+), 8 deletions(-) create mode 100644 src/components/ui/SkipLink.module.css create mode 100644 src/components/ui/SkipLink.tsx create mode 100644 src/components/ui/__tests__/SkipLink.test.tsx diff --git a/src/App.tsx b/src/App.tsx index 5c4e796..841ed0c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,7 +3,7 @@ import { BrowserRouter, Routes, Route } from 'react-router-dom'; import { LanguageProvider } from './i18n'; import { Navbar, Footer, FancyCursor, ScrollToTop } from './components/layout'; import { Home } from './pages/Home'; -import { PageLoader } from './components/ui'; +import { PageLoader, SkipLink } from './components/ui'; import './styles/global.css'; // Lazy load pages to reduce initial bundle size. @@ -15,17 +15,20 @@ export function App() { return ( + {/* Suspense handles the loading state for lazy-loaded routes */} - }> - - } /> - } /> - } /> - - +
+ }> + + } /> + } /> + } /> + + +