@@ -4,7 +4,7 @@ import LanguageDropdown from '@node-core/ui-components/Common/LanguageDropDown';
44import Skeleton from '@node-core/ui-components/Common/Skeleton' ;
55import NavBar from '@node-core/ui-components/Containers/NavBar' ;
66// TODO(@AvivKeller): I don't like that we are importing styles from another module
7- import styles from '@node-core/ui-components/Containers/NavBar/index.module.css' ;
7+ import navBarStyles from '@node-core/ui-components/Containers/NavBar/index.module.css' ;
88import GitHubIcon from '@node-core/ui-components/Icons/Social/GitHub' ;
99import { availableLocales } from '@node-core/website-i18n' ;
1010import dynamic from 'next/dynamic' ;
@@ -21,12 +21,14 @@ import { useRouter, usePathname } from '#site/navigation.mjs';
2121import type { SimpleLocaleConfig } from '@node-core/ui-components/types' ;
2222import type { FC } from 'react' ;
2323
24+ import styles from './withNavBar.module.css' ;
25+
2426const ThemeToggle = dynamic (
2527 ( ) => import ( '@node-core/ui-components/Common/ThemeToggle' ) ,
2628 {
2729 ssr : false ,
2830 loading : ( ) => (
29- < Skeleton className = { styles . themeToggleSkeleton } loading = { true } />
31+ < Skeleton className = { navBarStyles . themeToggleSkeleton } loading = { true } />
3032 ) ,
3133 }
3234) ;
@@ -55,6 +57,10 @@ const WithNavBar: FC = () => {
5557 < div >
5658 < WithBanner section = "index" />
5759
60+ < a href = "#main" className = { styles . skipToContent } >
61+ { t ( 'components.common.skipToContent' ) }
62+ </ a >
63+
5864 < NavBar
5965 navItems = { navigationItems . map ( ( [ , { label, link, target } ] ) => ( {
6066 link,
@@ -85,7 +91,7 @@ const WithNavBar: FC = () => {
8591 < Link
8692 href = "https://github.com/nodejs/node"
8793 aria-label = "Node.js Github"
88- className = { styles . ghIconWrapper }
94+ className = { navBarStyles . ghIconWrapper }
8995 >
9096 < GitHubIcon />
9197 </ Link >
0 commit comments