@@ -25,42 +25,54 @@ const categories: Category[] = [
2525 name : "Frontend" ,
2626 description :
2727 "Build better queries and optimize UI performance with the right client tools." ,
28- icon : < FrontendIcon className = "size-12 text-pri-base dark:text-pri-light" /> ,
28+ icon : (
29+ < FrontendIcon className = "size-8 text-pri-base dark:text-pri-light lg:size-12" />
30+ ) ,
2931 } ,
3032 {
3133 id : "backend" ,
3234 name : "Backend" ,
3335 description :
3436 "From resolvers to execution — everything you need to run a GraphQL server in production." ,
35- icon : < BackendIcon className = "size-12 text-pri-base dark:text-pri-light" /> ,
37+ icon : (
38+ < BackendIcon className = "size-8 text-pri-base dark:text-pri-light lg:size-12" />
39+ ) ,
3640 } ,
3741 {
3842 id : "federation" ,
3943 name : "Federation" ,
4044 description :
4145 "Design and manage distributed graphs that scale across teams and services." ,
42- icon : < FederationIcon className = "size-12 text-pri-base dark:text-pri-light" /> ,
46+ icon : (
47+ < FederationIcon className = "size-8 text-pri-base dark:text-pri-light lg:size-12" />
48+ ) ,
4349 } ,
4450 {
4551 id : "security" ,
4652 name : "Security" ,
4753 description :
4854 "Secure your GraphQL API with query limits and schema protection." ,
49- icon : < SecurityIcon className = "size-12 text-pri-base dark:text-pri-light" /> ,
55+ icon : (
56+ < SecurityIcon className = "size-8 text-pri-base dark:text-pri-light lg:size-12" />
57+ ) ,
5058 } ,
5159 {
5260 id : "ai" ,
5361 name : "AI" ,
5462 description :
5563 "Use GraphQL to power AI systems — patterns, tools and implementations." ,
56- icon : < AIIcon className = "size-12 text-pri-base dark:text-pri-light" /> ,
64+ icon : (
65+ < AIIcon className = "size-8 text-pri-base dark:text-pri-light lg:size-12" />
66+ ) ,
5767 } ,
5868 {
5969 id : "monitoring" ,
6070 name : "Monitoring" ,
6171 description :
6272 "Track performance, usage and schema changes to keep your graph healthy." ,
63- icon : < MonitoringIcon className = "size-12 text-pri-base dark:text-pri-light" /> ,
73+ icon : (
74+ < MonitoringIcon className = "size-8 text-pri-base dark:text-pri-light lg:size-12" />
75+ ) ,
6476 } ,
6577]
6678
@@ -91,15 +103,15 @@ function CategoryCard({ category }: { category: Category }) {
91103 return (
92104 < Link
93105 href = { `/resources/${ category . id } ` }
94- className = "group flex h-[202px] flex-col justify-between border border-neu-200 bg-neu-0 p-6 transition-colors hover:bg-neu-50 hover:duration-0 dark:border-neu-100"
106+ className = "group flex flex-col justify-between gap-4 border border-neu-200 bg-neu-0 p-6 transition-colors hover:bg-neu-50 hover:duration-0 dark:border-neu-100 lg:h-[202px] lg:gap-6 "
95107 >
96108 < div className = "flex items-start justify-between" >
97109 { category . icon }
98110 < ArrowDownIcon className = "size-6 -rotate-90 text-neu-900 opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-hover:duration-0 group-focus-visible:opacity-100" />
99111 </ div >
100112 < div >
101- < h3 className = "typography-h3 group-hover:hidden" > { category . name } </ h3 >
102- < p className = "typography-body-md hidden group-hover:block" >
113+ < h3 className = "typography-h3 lg: group-hover:hidden" > { category . name } </ h3 >
114+ < p className = "typography-body-md group-hover:block max-lg:mt-4 lg:hidden " >
103115 { category . description }
104116 </ p >
105117 </ div >
0 commit comments