11'use client' ;
22
3- import { Hero } from '@/components/Hero' ;
4- import { Logo } from '@/components/Logo' ;
5- import { MobileNavigation } from '@/components/MobileNavigation' ;
6- import { Navigation } from '@/components/Navigation' ;
7- import { ThemeSelector } from '@/components/ThemeSelector' ;
3+ import { Hero } from '@/components/Hero' ;
4+ import { Logo } from '@/components/Logo' ;
5+ import { MobileNavigation } from '@/components/MobileNavigation' ;
6+ import { Navigation } from '@/components/Navigation' ;
7+ import { ThemeSelector } from '@/components/ThemeSelector' ;
88import clsx from 'clsx' ;
99import Link from 'next/link' ;
10- import { usePathname } from 'next/navigation' ;
11- import { useEffect , useState } from 'react' ;
12- import { LogoMark } from './LogoMark' ;
10+ import { usePathname } from 'next/navigation' ;
11+ import { useEffect , useState } from 'react' ;
12+ import { LogoMark } from './LogoMark' ;
13+ import { Search } from './search/Search' ;
1314import VersionSelector from './VersionSelector' ;
14- import { Search } from './search/Search' ;
1515
1616function GitHubIcon ( props : React . ComponentPropsWithoutRef < 'svg' > ) {
1717 return (
@@ -29,7 +29,7 @@ function Header() {
2929 setIsScrolled ( window . scrollY > 0 ) ;
3030 }
3131 onScroll ( ) ;
32- window . addEventListener ( 'scroll' , onScroll , { passive : true } ) ;
32+ window . addEventListener ( 'scroll' , onScroll , { passive : true } ) ;
3333 return ( ) => {
3434 window . removeEventListener ( 'scroll' , onScroll ) ;
3535 } ;
@@ -99,7 +99,7 @@ function Header() {
9999 ) ;
100100}
101101
102- export function Layout ( { children} : { children : React . ReactNode } ) {
102+ export function Layout ( { children } : { children : React . ReactNode } ) {
103103 let pathname = usePathname ( ) ;
104104 let isHomePage = pathname === '/' ;
105105 let isCodyDocs = pathname . includes ( '/cody' ) ;
@@ -110,13 +110,14 @@ export function Layout({children}: {children: React.ReactNode}) {
110110 < Header />
111111
112112 { /* Cody docs banner */ }
113- { /* { isCodyDocs && !isopenCtxDocs && <TopBanner
113+ { /*isCodyDocs && !isopenCtxDocs && <TopBanner
114114 text="NEW: Introducing chat and search in a single input with Sourcegraph 6.0."
115115 link="https://sourcegraph.com/blog/combining-chat-and-search"
116116 linkText="Read here"
117117 textColor="#ffffff"
118118 backgroundColor="#F34E3F"
119- />} */ }
119+ opacity='0.80'
120+ />/* }
120121
121122 {/* Openctx docs banner */ }
122123 { /* {isopenCtxDocs && <TopBanner
0 commit comments