11import { FaCheckCircle } from 'react-icons/fa'
2- import { Carbon } from '~/components/Carbon'
32import { Footer } from '~/components/Footer'
4- import { TbHeartHandshake } from 'react-icons/tb'
53import { SponsorsSection } from '~/components/SponsorsSection'
64import { BottomCTA } from '~/components/BottomCTA'
5+ import { LibraryHero } from '~/components/LibraryHero'
76import { devtoolsProject } from '~/libraries/devtools'
87import { getLibrary } from '~/libraries'
98import { LibraryFeatureHighlights } from '~/components/LibraryFeatureHighlights'
10- import { Await , Link , getRouteApi } from '@tanstack/react-router'
9+ import { getRouteApi } from '@tanstack/react-router'
1110import { seo } from '~/utils/seo'
12- import { twMerge } from 'tailwind-merge'
1311import LandingPageGad from '~/components/LandingPageGad'
1412import { PartnershipCallout } from '~/components/PartnershipCallout'
1513
@@ -27,58 +25,23 @@ const librariesRouteApi = getRouteApi('/_libraries')
2725
2826export default function DevtoolsVersionIndex ( ) {
2927 const { sponsorsPromise } = librariesRouteApi . useLoaderData ( )
30- const { version } = Route . useParams ( )
3128 const library = getLibrary ( 'devtools' )
3229
33- const gradientText = `pr-1 inline-block leading-snug text-transparent bg-clip-text bg-gradient-to-r ${ devtoolsProject . colorFrom } ${ devtoolsProject . colorTo } `
34-
3530 return (
3631 < >
3732 < div className = "flex flex-col gap-20 md:gap-32 pt-32" >
38- < div className = "flex flex-col items-center gap-8 text-center px-4" >
39- < h1 className = "font-black flex gap-3 items-center text-4xl md:text-6xl lg:text-7xl xl:text-8xl uppercase [letter-spacing:-.05em]" >
40- < span > TanStack</ span >
41- < span className = { twMerge ( gradientText ) } > Devtools</ span >
42- </ h1 >
43- < div
44- className = { twMerge (
45- 'text-sm' ,
46- 'md:text-base font-black' ,
47- 'lg:text-lg align-super text-white animate-bounce uppercase' ,
48- 'dark:text-black bg-black dark:bg-white shadow-xl shadow-black/30 px-2 py-1 rounded-md' ,
49- 'leading-none whitespace-nowrap'
50- ) }
51- >
52- STATUS: ALPHA
53- </ div >
54- < h2
55- className = "font-bold text-2xl max-w-[600px]
56- md:text-3xl
57- lg:text-5xl lg:max-w-[800px]"
58- >
59- < span className = "underline decoration-dashed decoration-gray-500 decoration-3 underline-offset-2" >
60- Centralized devtools panel
61- </ span > { ' ' }
62- for TanStack libraries and custom devtools
63- </ h2 >
64- < p
65- className = "text opacity-90 max-w-[500px]
66- lg:text-xl lg:max-w-[800px]"
67- >
68- A unified devtools panel that houses all TanStack devtools and
69- allows you to create and integrate your own custom devtools. Built
70- with < strong > Solid.js for lightweight performance</ strong > but
71- designed to work with any framework.
72- </ p >
73- < Link
74- from = "/$libraryId/$version"
75- to = "./docs"
76- params = { { libraryId : library . id } }
77- className = { `py-2 px-4 bg-slate-500 hover:bg-slate-600 text-white rounded uppercase font-extrabold transition-colors` }
78- >
79- Get Started
80- </ Link >
81- </ div >
33+ < LibraryHero
34+ project = { devtoolsProject }
35+ cta = { {
36+ linkProps : {
37+ from : '/$libraryId/$version' ,
38+ to : './docs' ,
39+ params : { libraryId : library . id } ,
40+ } ,
41+ label : 'Get Started' ,
42+ className : 'bg-slate-500 hover:bg-slate-600 text-white' ,
43+ } }
44+ />
8245
8346 < LibraryFeatureHighlights
8447 featureHighlights = { library . featureHighlights }
0 commit comments