Skip to content

Commit 6cf26f9

Browse files
davila7claude
andauthored
feat: Redesign featured pages to match component detail layout (#395)
Replace iframe-based featured pages with native dashboard layout using tabbed navigation, sidebar with metadata, and partner-specific content. - Rewrite dashboard featured/[slug].astro from iframe embed to native Astro page with Overview content + Website external link tab - Expand FeaturedItem type with metadata, links, CTA, and badge data - Add partner badge color variants (Partner/Database/Toolkit) - Add sidebar cards: partner info, CTA button, install command, metadata, links - Remove redundant metadata fields (Type/Category/Website already shown via dedicated fields) - Update docs/ featured pages with component-page layout (legacy site) - Create docs/css/featured-page.css for featured-specific styles Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1e20159 commit 6cf26f9

7 files changed

Lines changed: 1941 additions & 961 deletions

File tree

dashboard/src/lib/constants.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,60 @@ export const FEATURED_ITEMS: FeaturedItem[] = [
1212
logo: 'https://www.braingrid.ai/brand/full-logo-lime-on-transparent.png',
1313
url: '/featured/braingrid',
1414
tag: 'Partner',
15+
tagColor: '#6366f1',
16+
category: 'Product Management',
17+
ctaLabel: 'Try BrainGrid Free',
18+
ctaUrl: 'https://braingrid.link/hsn8pFE',
19+
websiteUrl: 'https://braingrid.ai',
20+
metadata: {
21+
Integration: 'MCP, CLI',
22+
},
23+
links: [
24+
{ label: 'Integration Docs', url: 'https://docs.braingrid.ai/claude-code' },
25+
{ label: 'braingrid.ai', url: 'https://braingrid.ai' },
26+
],
1527
},
1628
{
1729
name: 'Neon',
1830
description: 'Complete Postgres Template',
1931
logo: 'https://neon.tech/brand/neon-logo-dark-color.svg',
2032
url: '/featured/neon-instagres',
2133
tag: 'Database',
34+
tagColor: '#059669',
35+
category: 'Infrastructure',
36+
ctaLabel: 'Try Neon Free',
37+
ctaUrl: 'https://get.neon.com/4eCjZDz',
38+
websiteUrl: 'https://neon.tech',
39+
installCommand: 'npx claude-code-templates@latest --skill database/neon-instagres,database/using-neon --yes',
40+
metadata: {
41+
Components: '10',
42+
Integration: 'MCP, CLI',
43+
},
44+
links: [
45+
{ label: 'Instagres Docs', url: 'https://neon.tech/docs/guides/instagres' },
46+
{ label: 'Platform Overview', url: 'https://neon.tech/docs/introduction' },
47+
{ label: 'neon.tech', url: 'https://neon.tech' },
48+
],
2249
},
2350
{
2451
name: 'ClaudeKit',
2552
description: 'AI Agents & Skills',
2653
logo: 'https://docs.claudekit.cc/logo-horizontal.png',
2754
url: '/featured/claudekit',
2855
tag: 'Toolkit',
56+
tagColor: '#d97706',
57+
category: 'AI Engineering',
58+
ctaLabel: 'Get ClaudeKit',
59+
ctaUrl: 'https://claudekit.cc',
60+
websiteUrl: 'https://claudekit.cc',
61+
metadata: {
62+
Users: '4,000+',
63+
Countries: '109',
64+
},
65+
links: [
66+
{ label: 'Documentation', url: 'https://docs.claudekit.cc' },
67+
{ label: 'claudekit.cc', url: 'https://claudekit.cc' },
68+
],
2969
},
3070
];
3171

dashboard/src/lib/types.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,25 @@ export interface Cart {
3939
templates: CartItem[];
4040
}
4141

42+
export interface FeaturedLink {
43+
label: string;
44+
url: string;
45+
}
46+
4247
export interface FeaturedItem {
4348
name: string;
4449
description: string;
4550
logo: string;
4651
url: string;
4752
tag: string;
53+
tagColor: string;
54+
category: string;
55+
ctaLabel: string;
56+
ctaUrl: string;
57+
websiteUrl: string;
58+
installCommand?: string;
59+
metadata: Record<string, string>;
60+
links: FeaturedLink[];
4861
}
4962

5063
export interface CollectionItem {

dashboard/src/pages/featured/[slug].astro

Lines changed: 413 additions & 33 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)