|
1 | 1 | import { useState, useCallback } from 'react' |
2 | | -import { Link } from 'react-router-dom' |
3 | 2 | import styles from './Home.module.css' |
4 | 3 |
|
5 | 4 | const INSTALL_CMD = 'npx skills add Sagargupta16/claude-cost-optimizer' |
@@ -51,21 +50,21 @@ const benchmarks = [ |
51 | 50 | { task: 'Error boundary', before: 3454, after: 1040 }, |
52 | 51 | ] |
53 | 52 |
|
54 | | -const tools = [ |
| 53 | +const resources = [ |
55 | 54 | { |
56 | | - title: 'Repo Analyzer', |
57 | | - desc: 'Paste a GitHub URL. Get a cost audit, grade, and recommendations.', |
58 | | - link: '/analyzer', |
| 55 | + title: '10 Optimization Guides', |
| 56 | + desc: 'From getting started to three-tier task routing and prompt caching deep dives.', |
| 57 | + link: 'https://github.com/Sagargupta16/claude-cost-optimizer/tree/main/guides', |
59 | 58 | }, |
60 | 59 | { |
61 | | - title: 'Cost Calculator', |
62 | | - desc: 'Estimate monthly spend based on model, sessions, and config.', |
63 | | - link: '/calculator', |
| 60 | + title: '10 CLAUDE.md Templates', |
| 61 | + desc: 'Cost-optimized templates for React, Next.js, FastAPI, Go, Rust, Django, Rails, and more.', |
| 62 | + link: 'https://github.com/Sagargupta16/claude-cost-optimizer/tree/main/templates/CLAUDE.md', |
64 | 63 | }, |
65 | 64 | { |
66 | | - title: 'Badge Checker', |
67 | | - desc: 'Score your setup (A+ to F) and get a shields.io badge.', |
68 | | - link: '/badge', |
| 65 | + title: '7 CLI Tools', |
| 66 | + desc: 'Token estimator, usage analyzer, badge generator, MCP server, budget hooks, and more.', |
| 67 | + link: 'https://github.com/Sagargupta16/claude-cost-optimizer/tree/main/tools', |
69 | 68 | }, |
70 | 69 | ] |
71 | 70 |
|
@@ -237,16 +236,22 @@ function Home() { |
237 | 236 | </div> |
238 | 237 | </section> |
239 | 238 |
|
240 | | - {/* Web Tools */} |
| 239 | + {/* Resources */} |
241 | 240 | <section className={styles.section}> |
242 | | - <h2 className={styles.sectionTitle}>Web Tools</h2> |
| 241 | + <h2 className={styles.sectionTitle}>What's in the Repo</h2> |
243 | 242 | <div className={styles.toolsGrid}> |
244 | | - {tools.map((t) => ( |
245 | | - <Link key={t.title} to={t.link} className={styles.toolCard}> |
246 | | - <h3 className={styles.toolTitle}>{t.title}</h3> |
247 | | - <p className={styles.toolDesc}>{t.desc}</p> |
248 | | - <span className={styles.toolArrow}>Open</span> |
249 | | - </Link> |
| 243 | + {resources.map((r) => ( |
| 244 | + <a |
| 245 | + key={r.title} |
| 246 | + href={r.link} |
| 247 | + target="_blank" |
| 248 | + rel="noopener noreferrer" |
| 249 | + className={styles.toolCard} |
| 250 | + > |
| 251 | + <h3 className={styles.toolTitle}>{r.title}</h3> |
| 252 | + <p className={styles.toolDesc}>{r.desc}</p> |
| 253 | + <span className={styles.toolArrow}>View on GitHub</span> |
| 254 | + </a> |
250 | 255 | ))} |
251 | 256 | </div> |
252 | 257 | </section> |
@@ -297,9 +302,14 @@ function Home() { |
297 | 302 | > |
298 | 303 | Discussions |
299 | 304 | </a> |
300 | | - <Link to="/analyzer" className={styles.ctaLink}> |
301 | | - Repo Analyzer |
302 | | - </Link> |
| 305 | + <a |
| 306 | + href="https://github.com/Sagargupta16/claude-cost-optimizer/tree/main/guides" |
| 307 | + target="_blank" |
| 308 | + rel="noopener noreferrer" |
| 309 | + className={styles.ctaLink} |
| 310 | + > |
| 311 | + Guides |
| 312 | + </a> |
303 | 313 | </div> |
304 | 314 | </section> |
305 | 315 | </div> |
|
0 commit comments