@@ -47,8 +47,73 @@ export function PlatformFilterClient({platforms}: {platforms: Platform[]}) {
4747 } )
4848 ) ;
4949
50+ const mostViewedPlatforms : { icon : string ; key : string ; title : string ; url : string } [ ] = [
51+ {
52+ url : '/platforms/javascript/guides/nextjs/' ,
53+ key : 'javascript-nextjs' ,
54+ icon : 'javascript-nextjs' ,
55+ title : 'Next.JS' ,
56+ } ,
57+ {
58+ url : '/platforms/javascript/guides/react/' ,
59+ key : 'javascript-react' ,
60+ icon : 'javascript-react' ,
61+ title : 'React' ,
62+ } ,
63+ {
64+ url : 'platforms/php/guides/laravel/' ,
65+ key : 'php-laravel' ,
66+ icon : 'php-laravel' ,
67+ title : 'Laravel' ,
68+ } ,
69+ {
70+ url : '/platforms/javascript/' ,
71+ key : 'javascript' ,
72+ icon : 'javascript' ,
73+ title : 'JavaScript' ,
74+ } ,
75+ { url : '/platforms/python/' , key : 'python' , icon : 'python' , title : 'Python' } ,
76+ {
77+ url : '/platforms/react-native/' ,
78+ key : 'react-native' ,
79+ icon : 'react-native' ,
80+ title : 'React Native' ,
81+ } ,
82+ ] ;
83+
5084 return (
5185 < div >
86+ { /* TODO: Refactor a more elegant solution for this top grid, this was thrown together quickly for https://github.com/getsentry/projects/issues/548 */ }
87+ < div style = { { marginBottom : '40px' } } >
88+ < div className = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 py-8 md:items-end" >
89+ < div className = "lg:col-span-2 space-y-2" >
90+ < h2 className = "text-2xl font-medium" > Most Viewed Sentry SDKs</ h2 >
91+ </ div >
92+ </ div >
93+ < div className = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4" >
94+ { mostViewedPlatforms . map ( platform => (
95+ < Link
96+ href = { platform . url }
97+ key = { platform . key }
98+ style = { {
99+ textDecoration : 'none' ,
100+ color : 'var(--foreground) !important' ,
101+ } }
102+ >
103+ < div className = { styles . StandalonePlatform } >
104+ < PlatformIcon
105+ size = { 20 }
106+ platform = { platform . icon ?? platform . key }
107+ format = "lg"
108+ className = { `${ styles . PlatformIcon } !border-none !shadow-none` }
109+ />
110+ { platform . title }
111+ </ div >
112+ </ Link >
113+ ) ) }
114+ </ div >
115+ </ div >
116+
52117 < div className = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 py-8 md:items-end" >
53118 < div className = "lg:col-span-2 space-y-2" >
54119 < h2 className = "text-2xl font-medium" > SDKs Supported by Sentry</ h2 >
0 commit comments