@@ -5,7 +5,7 @@ import { Pre } from "../../../src/CodePlatter";
55import { ObjectStyles } from "./ObjectStyles" ;
66import { DarkMode } from "./DarkMode" ;
77import { AppFrame , ExampleApp } from "./ExampleApp" ;
8- import { Divider , Link , LinkButton , Provider , Tab , TabList , TabPanel , Tabs } from "@react-spectrum/s2" ;
8+ import { Button , Divider , Link , LinkButton , Provider , Tab , TabList , TabPanel , Tabs } from "@react-spectrum/s2" ;
99import { Mobile } from "./Mobile" ;
1010import { Rems } from "./Rems" ;
1111// import { PressAnimation } from "./Press";
@@ -42,6 +42,8 @@ import bg from 'data-url:./bg.svg';
4242// import { SubmenuAnimation } from "./SubmenuAnimation";
4343import { keyframes } from "../../../../../@react-spectrum/s2/style/style-macro" with { type : 'macro' } ;
4444import { getBaseUrl } from "../../../src/pageUtils" ;
45+ import SearchMenuWrapperServer from "../../../src/SearchMenuWrapperServer" ;
46+ import type { Page } from "@parcel/rsc" ;
4547
4648const container = style ( {
4749 backgroundColor : 'layer-2/80' ,
@@ -186,7 +188,7 @@ const swapSpeed = style({
186188 animationIterationCount : 'infinite'
187189} ) ;
188190
189- export function Home ( ) {
191+ export function Home ( { currentPage } : { currentPage : Page } ) {
190192 let headingId = useId ( ) ;
191193 return (
192194 < body
@@ -259,7 +261,9 @@ export function Home() {
259261 < p className = { style ( { font : 'body-3xl' , marginY : 0 , color : 'white' , textWrap : 'balance' } ) } > React Spectrum empowers you to build high quality, accessible, cohesive apps with Adobe's signature design.</ p >
260262 < div className = { style ( { display : 'flex' , gap : 16 , flexDirection : { default : 'column' , sm : 'row' } , marginTop : 32 , marginBottom : 96 } ) } >
261263 < LinkButton size = "XL" staticColor = "white" href = "getting-started" > Get started</ LinkButton >
262- < LinkButton size = "XL" staticColor = "white" variant = "secondary" href = "react-spectrum" > Explore components</ LinkButton >
264+ < SearchMenuWrapperServer currentPage = { currentPage } >
265+ < Button size = "XL" staticColor = "white" variant = "secondary" > Explore components</ Button >
266+ </ SearchMenuWrapperServer >
263267 </ div >
264268 < section aria-label = "Example app" className = { style ( { height : 'calc(100svh - 24px)' , maxHeight : size ( 600 ) } ) } >
265269 < ExampleApp showArrows />
@@ -504,7 +508,9 @@ const buttonStyle = style({
504508 < h2 className = { style ( { font : 'heading-2xl' , color : 'white' } ) } > Ready to get started?</ h2 >
505509 < div className = { style ( { display : 'flex' , gap : 16 , flexDirection : { default : 'column' , sm : 'row' } } ) } >
506510 < LinkButton size = "XL" staticColor = "white" href = "getting-started" > Install and setup</ LinkButton >
507- < LinkButton size = "XL" staticColor = "white" variant = "secondary" href = "react-spectrum" > Explore components</ LinkButton >
511+ < SearchMenuWrapperServer currentPage = { currentPage } >
512+ < Button size = "XL" staticColor = "white" > Explore components</ Button >
513+ </ SearchMenuWrapperServer >
508514 </ div >
509515 </ section >
510516 </ main >
0 commit comments