Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 93 additions & 11 deletions .vitepress/theme/SiteFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const tagline =
type FooterLink = { href: string; label: string; external?: boolean; separate?: boolean }

/* Mirrors sandbase-fe site-footer.tsx: Store and Build use the header's labels,
order and destinations (src/content/site-navigation.ts), then Resources. */
order and destinations (src/content/site-navigation.ts), then Resources and Company. */
const footerSections: { title: string; links: FooterLink[] }[] = [
{
title: 'Store',
Expand All @@ -35,20 +35,66 @@ const footerSections: { title: string; links: FooterLink[] }[] = [
links: [
{ href: `${SITE}/solutions/use-in-ai-tools`, label: 'Use in AI Tools' },
{ href: `${SITE}/agents`, label: 'Agents' },
{ href: `${SITE}/sandbox`, label: 'Sandbox' },
{ href: '/docs/', label: 'Docs' },
{ href: `${SITE}/open-source`, label: 'Open source' },
],
},
{
title: 'Resources',
links: [
{ href: `${SITE}/lab/`, label: 'Lab', separate: true },
{ href: '/docs/', label: 'Docs' },
{ href: `${SITE}/pricing`, label: 'Pricing' },
{ href: 'https://blog.sandbase.ai/', label: 'Blog', external: true },
{ href: `${SITE}/models/compare`, label: 'Compare Models' },
{ href: `${SITE}/free-tools`, label: 'Free Tools' },
{ href: `${SITE}/agent-ecosystem`, label: 'Agent ecosystem' },
{ href: `${SITE}/cli`, label: 'CLI' },
{ href: `${SITE}/resources/hackathon-support`, label: 'Hackathon support' },
{ href: 'https://blog.sandbase.ai/', label: 'Blog', external: true },
{ href: `${SITE}/lab/`, label: 'Lab', separate: true },
],
},
{
title: 'Company',
links: [
{ href: contactSalesHref, label: 'Contact Sales' },
{ href: `${SITE}/contact-sales?source=footer-provider`, label: 'Become a provider' },
{ href: `${SITE}/affiliate`, label: 'Influence program' },
],
},
]
/* Sitewide links to the collection landing pages; mirrors sandbase-fe directorySections.
Keep every target a published page: a footer link to a 404 is sitewide. */
const m = (slug: string, label: string): FooterLink => ({ href: `${SITE}/models/${slug}`, label })
const a = (slug: string, label: string): FooterLink => ({ href: `${SITE}/apis/${slug}`, label })
const directorySections: { title: string; all: FooterLink; links: FooterLink[] }[] = [
{ title: 'Data APIs', all: { href: `${SITE}/apis`, label: 'All APIs' }, links: [
a('social-media', 'Social Media APIs'), a('twitter', 'X (Twitter) API'), a('tiktok', 'TikTok API'),
a('chinese-social-media', 'Chinese Social Media APIs'), a('serp', 'SERP API'), a('seo', 'SEO & GEO APIs'),
a('keyword-research', 'Keyword Research APIs'), a('ecommerce', 'E-commerce APIs'), a('web-scraping', 'Web Scraping APIs'),
a('prediction-markets', 'Prediction Market APIs'),
] },
{ title: 'LLMs', all: { href: `${SITE}/models`, label: 'All language models' }, links: [
m('claude', 'Claude API'), m('gpt', 'GPT API'), m('gemini', 'Gemini API'), m('deepseek', 'DeepSeek API'), m('qwen', 'Qwen API'),
m('moonshotai', 'Kimi API'), m('z-ai', 'GLM API'), m('best-llms', 'Best LLMs'), m('coding-llms', 'LLMs for Coding'),
m('cheap-llms', 'Cheap & Fast LLMs'), m('chinese-llms', 'Chinese LLMs'), m('open-source-llms', 'Open-Source LLMs'),
] },
{ title: 'Video models', all: { href: `${SITE}/models/image-video`, label: 'All image & video models' }, links: [
m('kling-4-0', 'Kling 4.0 API'), m('kling-3-0', 'Kling 3.0 API'), m('kling', 'Kling API'),
m('seedance-2-5', 'Seedance 2.5 API'), m('seedance-2-0', 'Seedance 2.0 API'), m('seedance', 'Seedance API'),
m('veo-3-1', 'Veo 3.1 API'), m('veo', 'Veo API'), m('wan-3-0', 'Wan 3.0 API'), m('wan', 'Wan API'),
m('minimax-h3', 'MiniMax H3 API'), m('gemini-omni', 'Gemini Omni Flash API'), m('best-video-models', 'Best Video Models'),
] },
{ title: 'Image & 3D models', all: { href: `${SITE}/models/3d`, label: 'All 3D models' }, links: [
m('gpt-image-2-6', 'GPT Image 2.6 API'), m('gpt-image-2-5', 'GPT Image 2.5 API'), m('gpt-image', 'GPT Image API'),
m('nano-banana-2', 'Nano Banana 2 API'), m('nano-banana', 'Nano Banana API'), m('seedream', 'Seedream API'),
m('best-image-models', 'Best Image Models'), m('tripo', 'Tripo API'), m('meshy-3d', 'Meshy API'),
] },
{ title: 'AI tools', all: { href: `${SITE}/models/tasks`, label: 'Browse by task' }, links: [
m('text-to-video', 'Text to Video'), m('image-to-video', 'Image to Video'), m('reference-to-video', 'Reference to Video'),
m('video-to-video', 'Video Editing'), m('motion-control', 'Motion Control'), m('lip-sync', 'Lip Sync & Avatars'),
m('text-to-image', 'Text to Image'), m('image-editing', 'Image Editing'), m('upscaling', 'Image & Video Upscaling'),
m('text-to-speech', 'Text to Speech'), m('text-to-music', 'Music Generation'), m('3d', '3D Generation'),
] },
]
const socialLinks = [
{ href: 'https://github.com/sandbaseai', label: 'GitHub', icon: 'github' },
{ href: 'https://discord.com/invite/4hXv2f5Q9f', label: 'Discord', icon: 'discord' },
Expand Down Expand Up @@ -117,7 +163,6 @@ function chooseTheme(next: Theme) {
</a>
</li>
</ul>
<a :href="contactSalesHref" target="_self" class="sf-link sf-contact-sales">Contact Sales<span aria-hidden="true"> →</span></a>
</div>

<nav aria-label="Footer" class="sf-nav">
Expand All @@ -139,6 +184,19 @@ function chooseTheme(next: Theme) {
</nav>
</div>

<nav aria-label="Popular pages" class="sf-directory">
<div v-for="section in directorySections" :key="section.title" class="sf-group">
<p class="sf-group-title">{{ section.title }}</p>
<ul>
<li v-for="item in section.links" :key="item.href">
<a :href="item.href" target="_self" class="sf-link">{{ item.label }}</a>
</li>
<li>
<a :href="section.all.href" target="_self" class="sf-link sf-all-link">{{ section.all.label }} <span aria-hidden="true">→</span></a>
</li>
</ul>
</div>
</nav>
<div class="sf-bottom">
<div class="sf-legal">
<p>© 2026 SandBase</p>
Expand Down Expand Up @@ -254,11 +312,6 @@ function chooseTheme(next: Theme) {
flex: 0 0 auto;
fill: currentColor;
}
.sf-contact-sales {
display: inline-flex;
align-items: center;
font-weight: 500;
}
.sf-link {
color: var(--color-ink);
font-size: 0.9375rem;
Expand Down Expand Up @@ -300,6 +353,29 @@ function chooseTheme(next: Theme) {
flex-direction: column;
gap: 0.75rem;
}
.sf-directory {
display: grid;
margin-top: 3rem;
padding-top: 2rem;
border-top: 1px solid var(--color-line);
grid-template-columns: repeat(2, minmax(0, 1fr));
column-gap: 2rem;
row-gap: 2rem;
}
.sf-directory .sf-group {
width: auto;
}
.sf-directory ul {
gap: 0.5rem;
}
.sf-directory .sf-link {
font-size: 0.8125rem;
line-height: 1.25rem;
}
.sf-all-link {
color: var(--color-ink);
font-weight: 500;
}
.sf-bottom {
display: flex;
margin-top: 3.5rem;
Expand Down Expand Up @@ -390,6 +466,9 @@ function chooseTheme(next: Theme) {
.sf-nav-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sf-directory {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sf-bottom {
flex-direction: row;
align-items: center;
Expand All @@ -412,6 +491,9 @@ function chooseTheme(next: Theme) {
.sf-nav {
justify-self: end;
}
.sf-directory {
grid-template-columns: repeat(5, minmax(0, 1fr));
}
}
@media (prefers-reduced-motion: reduce) {
.sf-link,
Expand Down
116 changes: 96 additions & 20 deletions .vitepress/theme/SiteHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,36 @@ const productLinks = [
{ label: 'Agents', href: `${SITE}/agents` },
]

const resourceLinks = [
{ label: 'Use in AI Tools', description: 'Give Claude Code, Codex or Cursor the whole catalog', href: `${SITE}/solutions/use-in-ai-tools`, external: false },
{ label: 'Open source', description: 'SDKs, CLI and working examples', href: `${SITE}/open-source`, external: false },
{ label: 'Influence', description: 'Creator and partner program', href: `${SITE}/affiliate`, external: false },
// Lab is a separate app on this origin; the arrow says it leaves the main site.
{ label: 'Lab', description: 'Trending AI use cases, ready to run', href: `${SITE}/lab/`, external: true },
/**
* Header Resources menu, in four groups (sandbase-fe RESOURCE_GROUPS). `external`
* marks the Lab app and other sites (↗). Every link uses target="_self" so VitePress
* does a full page load (scripts/test-site-header.mjs).
*/
type ResourceLink = { label: string; description: string; href: string; external?: boolean; hot?: boolean }
const resourceGroups: { label: string; items: ResourceLink[] }[] = [
{ label: 'Products', items: [
{ label: 'Use in AI Tools', description: 'Give Claude Code, Codex or Cursor the whole catalog', href: `${SITE}/solutions/use-in-ai-tools` },
{ label: 'Free Tools', description: 'Background remover, headshots, logos, image and GIF tools, transcripts', href: `${SITE}/free-tools`, hot: true },
{ label: 'Tools', description: 'Free tools plus live data lookups for social, commerce and finance', href: `${SITE}/tools` },
{ label: 'Compare models', description: 'Prices and benchmarks, head to head', href: `${SITE}/models/compare` },
{ label: 'Lab', description: 'Trending AI use cases, ready to run', href: `${SITE}/lab/`, external: true },
] },
{ label: 'Developers', items: [
{ label: 'CLI / MCP', description: 'Connect 25 AI clients in one command', href: `${SITE}/cli` },
{ label: 'MCP servers', description: 'Tool servers to attach to an Agent', href: `${SITE}/mcp-servers` },
{ label: 'Open source', description: 'SDKs, CLI and working examples', href: `${SITE}/open-source` },
{ label: 'Blog', description: 'Guides and engineering updates', href: 'https://blog.sandbase.ai/', external: true },
] },
{ label: 'Community', items: [
{ label: 'Agent ecosystem', description: 'Runtimes, sandboxes, memory and more', href: `${SITE}/agent-ecosystem` },
{ label: 'Hackathon support', description: 'Credits and help for AI Agent events', href: `${SITE}/resources/hackathon-support` },
{ label: 'Discord', description: 'Ask questions and share what you build', href: 'https://discord.com/invite/4hXv2f5Q9f', external: true },
] },
{ label: 'Company', items: [
{ label: 'Contact Sales', description: 'Volume pricing and enterprise needs', href: `${SITE}/contact-sales?source=resources-menu` },
{ label: 'Become a provider', description: 'List your models or APIs on SandBase', href: `${SITE}/contact-sales?source=resources-provider` },
{ label: 'Influence', description: 'Creator and partner program', href: `${SITE}/affiliate` },
] },
]

const route = useRoute()
Expand Down Expand Up @@ -201,10 +225,19 @@ onBeforeUnmount(() => {
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="m6 9 6 6 6-6" /></svg>
</button>
<div v-show="resourcesOpen" id="sh-resources-menu" class="sh-resources-menu">
<a v-for="item in resourceLinks" :key="item.href" :href="item.href" target="_self" @click="closeMenus">
<strong>{{ item.label }}<span v-if="item.external" aria-hidden="true"> ↗</span></strong>
<span>{{ item.description }}</span>
</a>
<div v-for="group in resourceGroups" :key="group.label" class="sh-resources-group" role="group" :aria-label="group.label">
<p class="sh-resources-group-label">{{ group.label }}</p>
<a
v-for="item in group.items"
:key="item.href"
:href="item.href"
target="_self"
@click="closeMenus"
>
<strong>{{ item.label }}<span v-if="item.hot" class="sh-hot">Hot</span><span v-if="item.external" aria-hidden="true"> ↗</span></strong>
<span>{{ item.description }}</span>
</a>
</div>
</div>
</div>
</nav>
Expand Down Expand Up @@ -247,9 +280,18 @@ onBeforeUnmount(() => {
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="m6 9 6 6 6-6" /></svg>
</button>
<div v-if="mobileResourcesOpen" class="sh-mobile-sublinks">
<a v-for="item in resourceLinks" :key="item.href" :href="item.href" target="_self" @click="closeDrawer">
{{ item.label }}<span v-if="item.external" aria-hidden="true">&nbsp;↗</span>
</a>
<template v-for="group in resourceGroups" :key="group.label">
<p class="sh-mobile-group-label">{{ group.label }}</p>
<a
v-for="item in group.items"
:key="item.href"
:href="item.href"
target="_self"
@click="closeDrawer"
>
{{ item.label }}<span v-if="item.hot" class="sh-hot">Hot</span><span v-if="item.external" aria-hidden="true">&nbsp;↗</span>
</a>
</template>
</div>
</nav>
<div class="sh-drawer-actions">
Expand Down Expand Up @@ -501,18 +543,52 @@ onBeforeUnmount(() => {
top: calc(100% + 18px);
right: 0;
z-index: 40;
width: 290px;
padding: 10px;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px 18px;
width: 600px;
max-width: calc(100vw - 32px);
padding: 18px;
border: 1px solid var(--color-line);
border-radius: 10px;
background: var(--color-sheet);
box-shadow: 0 14px 36px #00000012;
}
.sh-resources-group {
display: grid;
align-content: start;
gap: 2px;
}
.sh-resources-group-label,
.sh-mobile-group-label {
margin: 0 0 4px;
padding: 0 12px;
color: var(--color-ink-muted);
font: 600 11px/1.6 var(--font-family-mono);
letter-spacing: 0.08em;
text-transform: uppercase;
}
.sh-mobile-group-label {
margin: 12px 0 2px;
padding: 0;
}
.sh-hot {
display: inline-block;
margin-left: 0.45rem;
padding: 0.1rem 0.4rem;
border-radius: 999px;
background: #ff4d2e;
color: #fff !important;
font: 600 0.6875rem/1.2 var(--font-family-mono) !important;
letter-spacing: 0.06em;
text-transform: uppercase;
vertical-align: 0.15em;
}
.sh-resources-menu a {
display: flex;
flex-direction: column;
gap: 6px;
padding: 16px;
gap: 2px;
padding: 9px 12px;
border-radius: 6px;
color: var(--color-ink);
font-family: var(--font-family-body);
Expand All @@ -525,13 +601,13 @@ onBeforeUnmount(() => {
outline-offset: -2px;
}
.sh-resources-menu strong {
font-size: 16px;
font-size: 14px;
font-weight: 500;
}
.sh-resources-menu span {
color: var(--color-ink-muted);
font-size: 13px;
line-height: 1.5;
font-size: 12px;
line-height: 1.45;
}
.sh-resources-menu strong span {
color: inherit;
Expand Down