@@ -23,7 +23,7 @@ import { Framework, getFrameworkOptions } from '~/libraries'
2323import { DocsCalloutQueryGG } from '~/components/DocsCalloutQueryGG'
2424import { DocsCalloutBytes } from '~/components/DocsCalloutBytes'
2525import { twMerge } from 'tailwind-merge'
26- import { partners } from '~/utils/partners'
26+ import { partners , PartnerImage } from '~/utils/partners'
2727import { GamFooter , GamLeftRailSquare , GamRightRailSquare } from './Gam'
2828import { AdGate } from '~/contexts/AdsContext'
2929import { SearchButton } from './SearchButton'
@@ -329,7 +329,7 @@ export function DocsLayout({
329329
330330 const largeMenu = (
331331 < div
332- className = "bg-white/50 dark:bg-black/30 shadow-xl max-w-[300px ] xl:max-w-[350px ] 2xl:max-w-[400px]
332+ className = "bg-white/50 dark:bg-black/30 shadow-xl max-w-[250px ] xl:max-w-[300px ] 2xl:max-w-[400px]
333333 hidden lg:flex flex-col gap-4 sticky
334334 h-[calc(100dvh-var(--navbar-height))] lg:top-[var(--navbar-height)]
335335 z-20 dark:border-r
@@ -407,21 +407,28 @@ export function DocsLayout({
407407 </ div >
408408 </ div >
409409 < div
410- className = "lg:-ml-2 lg:pl-2 w-full lg:w-[300px] [@media(min-width:1600px)]:w-[350px] shrink-0 lg:sticky
410+ className = "lg:-ml-2 lg:pl-2 w-full lg:w-[300px] [@media(min-width:1600px)]:w-[350px] [@media(min-width:1920px)]:w-[400px] shrink-0 lg:sticky
411411 lg:max-h-[calc(100dvh-var(--navbar-height))] lg:top-[var(--navbar-height)]
412412 lg:overflow-y-auto lg:overflow-x-hidden relative"
413413 >
414- < div className = "ml-auto flex flex-wrap flex-row justify-center lg:flex-col gap-4 " >
414+ < div className = "ml-auto flex flex-wrap flex-row justify-center lg:flex-col gap-2 " >
415415 < div className = "bg-white/70 dark:bg-black/40 border-gray-500/20 shadow-xl divide-y divide-gray-500/20 flex flex-col border border-r-0 border-t-0 rounded-bl-lg" >
416416 < Link
417417 className = "uppercase font-black text-center p-2 opacity-60 hover:opacity-100 text-sm"
418418 to = "/partners"
419419 >
420420 Partners
421421 </ Link >
422- < div className = "flex flex-wrap justify-center gap-x-2 gap-y-8 p-4" >
422+ < div
423+ className = "flex flex-wrap justify-center px-4 py-2
424+ gap-x-3
425+ gap-y-3
426+ [@media(min-width:1600px)]:gap-y-4
427+ [@media(min-width:1920px)]:gap-y-6
428+ "
429+ >
423430 { activePartners
424- . filter ( ( d ) => d . sidebarImgLight )
431+ . filter ( ( d ) => d . id !== 'ui-dev' )
425432 . map ( ( partner ) => {
426433 return (
427434 < a
@@ -432,99 +439,41 @@ export function DocsLayout({
432439 className = "flex grow-1 justify-center"
433440 >
434441 < div
435- className = "z-0 flex items-center justify-center [@media(min-width:1600px)]:scale-[1.1] "
442+ className = "z-0 flex items-center justify-center max-w-full "
436443 style = { {
437444 width : Math . max (
438445 50 + Math . round ( 200 * partner . score ) ,
439446 100
440447 ) ,
441448 } }
442449 >
443- { partner . homepageImg }
450+ < PartnerImage
451+ config = { partner . image }
452+ alt = { partner . name }
453+ />
444454 </ div >
445- { /* <div className="z-10 row-start-1 col-start-1 max-w-full p-4 text-sm flex flex-col gap-4 items-start justify-center opacity-0 group-hover:opacity-100 transition-opacity duration-200 bg-white/70 dark:bg-gray-800/80">
446- {partner.content}
447- </div> */ }
448455 </ a >
449456 )
450457 } ) }
451458 </ div >
452459 </ div >
453- { libraryId === 'query' ? (
454- < div className = "p-4 bg-white/70 dark:bg-black/40 border-b border-gray-500/20 shadow-xl divide-y divide-gray-500/20 flex flex-col border-t border-l rounded-l-lg" >
455- < DocsCalloutQueryGG />
456- </ div >
457- ) : null }
458-
459460 < AdGate >
460461 < div className = "bg-white/70 dark:bg-black/40 border-gray-500/20 shadow-xl flex flex-col border-t border-l border-b p-2 space-y-2 rounded-l-lg" >
461462 < GamRightRailSquare />
462463 </ div >
463464 </ AdGate >
464-
465465 < AdGate >
466466 < div className = "bg-white/70 dark:bg-black/40 border-gray-500/20 shadow-xl flex flex-col border-t border-l border-b p-2 space-y-2 rounded-l-lg" >
467467 < GamLeftRailSquare />
468468 </ div >
469469 </ AdGate >
470-
471- { /* <div className="bg-white dark:bg-black/40 border-gray-500/20 shadow-xl flex flex-col border-t border-l border-b p-4 space-y-2 rounded-l-lg">
472- <Carbon />
473- </div> */ }
474-
475- { libraryId !== 'query' ? (
470+ { libraryId === 'query' ? (
476471 < div className = "p-4 bg-white/70 dark:bg-black/40 border-b border-gray-500/20 shadow-xl divide-y divide-gray-500/20 flex flex-col border-t border-l rounded-l-lg" >
477- < DocsCalloutBytes />
472+ < DocsCalloutQueryGG />
478473 </ div >
479474 ) : null }
480475 </ div >
481476 </ div >
482- { showBytes ? (
483- < div className = "w-[300px] max-w-[350px] fixed md:hidden top-1/2 right-2 z-30 -translate-y-1/2 shadow-lg print:hidden" >
484- < div className = "bg-white dark:bg-gray-800 border border-black/10 dark:border-white/10 p-4 md:p-6 rounded-lg" >
485- { libraryId === 'query' ? (
486- < DocsCalloutQueryGG />
487- ) : (
488- < DocsCalloutBytes />
489- ) }
490- < button
491- className = "absolute top-0 right-0 p-2 hover:text-red-500 opacity:30 hover:opacity-100"
492- onClick = { ( ) => {
493- setShowBytes ( false )
494- } }
495- >
496- < FaTimes />
497- </ button >
498- </ div >
499- </ div >
500- ) : (
501- < button
502- className = "right-0 top-1/2 -translate-y-[50px] fixed lg:hidden print:hidden"
503- onClick = { ( ) => {
504- setShowBytes ( true )
505- } }
506- >
507- < div
508- className = "origin-bottom-right -rotate-90 text-xs bg-white dark:bg-gray-800 border border-gray-100
509- hover:bg-rose-600 hover:text-white p-1 px-2 rounded-t-md shadow-md dark:border-0"
510- >
511- { libraryId === 'query' ? (
512- < >
513- < strong >
514- < span role = "img" aria-label = "crystal ball" >
515- & #128302 ;
516- </ span > { ' ' }
517- Skip the docs?
518- </ strong >
519- </ >
520- ) : (
521- < >
522- Subscribe to < strong > Bytes</ strong >
523- </ >
524- ) }
525- </ div >
526- </ button >
527- ) }
528477 </ div >
529478 </ WidthToggleContext . Provider >
530479 )
0 commit comments