11import Link from 'next/link'
2+ import { ALL_COMPETITORS } from '@/app/(landing)/comparisons/utils'
23import { SimWordmark } from '@/app/(landing)/components/navbar/components/sim-wordmark'
34import { MODEL_PROVIDERS_WITH_CATALOGS } from '@/app/(landing)/models/utils'
45
@@ -41,7 +42,7 @@ const PRODUCT_LINKS: FooterItem[] = [
4142const RESOURCES_LINKS : FooterItem [ ] = [
4243 { label : 'Blog' , href : '/blog' } ,
4344 { label : 'Docs' , href : 'https://docs.sim.ai' , external : true } ,
44- { label : 'Compare ' , href : '/comparisons ' } ,
45+ { label : 'Library ' , href : '/library ' } ,
4546 { label : 'Careers' , href : '/careers' } ,
4647 { label : 'Changelog' , href : '/changelog' } ,
4748 { label : 'Contact' , href : '/contact' } ,
@@ -56,17 +57,13 @@ const MODEL_LINKS: FooterItem[] = [
5657 } ) ) ,
5758]
5859
59- const BLOCK_LINKS : FooterItem [ ] = [
60- { label : 'Agent' , href : 'https://docs.sim.ai/workflows/blocks/agent' , external : true } ,
61- { label : 'Router' , href : 'https://docs.sim.ai/workflows/blocks/router' , external : true } ,
62- { label : 'Function' , href : 'https://docs.sim.ai/workflows/blocks/function' , external : true } ,
63- { label : 'Condition' , href : 'https://docs.sim.ai/workflows/blocks/condition' , external : true } ,
64- { label : 'API Block' , href : 'https://docs.sim.ai/workflows/blocks/api' , external : true } ,
65- { label : 'Workflow' , href : 'https://docs.sim.ai/workflows/blocks/workflow' , external : true } ,
66- { label : 'Parallel' , href : 'https://docs.sim.ai/workflows/blocks/parallel' , external : true } ,
67- { label : 'Guardrails' , href : 'https://docs.sim.ai/workflows/blocks/guardrails' , external : true } ,
68- { label : 'Evaluator' , href : 'https://docs.sim.ai/workflows/blocks/evaluator' , external : true } ,
69- { label : 'Loop' , href : 'https://docs.sim.ai/workflows/blocks/loop' , external : true } ,
60+ /** Top comparison pages, sourced from the competitor catalog so labels/hrefs never drift. */
61+ const COMPARE_LINKS : FooterItem [ ] = [
62+ { label : 'All Comparisons' , href : '/comparisons' } ,
63+ ...ALL_COMPETITORS . slice ( 0 , 9 ) . map ( ( competitor ) => ( {
64+ label : competitor . name ,
65+ href : `/comparisons/${ competitor . id } ` ,
66+ } ) ) ,
7067]
7168
7269const INTEGRATION_LINKS : FooterItem [ ] = [
@@ -153,7 +150,7 @@ export function Footer() {
153150
154151 < FooterColumn title = 'Product' items = { PRODUCT_LINKS } />
155152 < FooterColumn title = 'Resources' items = { RESOURCES_LINKS } />
156- < FooterColumn title = 'Blocks ' items = { BLOCK_LINKS } />
153+ < FooterColumn title = 'Compare ' items = { COMPARE_LINKS } />
157154 < FooterColumn title = 'Integrations' items = { INTEGRATION_LINKS } />
158155 < FooterColumn title = 'Models' items = { MODEL_LINKS } />
159156 < FooterColumn title = 'Socials' items = { SOCIAL_LINKS } />
0 commit comments