diff --git a/apps/manacore/apps/landing/src/content/config.ts b/apps/manacore/apps/landing/src/content/config.ts index f9c24b494..5fd2b7922 100644 --- a/apps/manacore/apps/landing/src/content/config.ts +++ b/apps/manacore/apps/landing/src/content/config.ts @@ -203,6 +203,15 @@ const manascoreCollection = defineCollection({ security: z.number().min(0).max(100), ux: z.number().min(0).max(100), }), + // Lighthouse scores (0-100, from Google Lighthouse audit) + lighthouse: z + .object({ + performance: z.number().min(0).max(100), + accessibility: z.number().min(0).max(100), + bestPractices: z.number().min(0).max(100), + seo: z.number().min(0).max(100), + }) + .optional(), // Score history for trend visualization history: z .array( diff --git a/apps/manacore/apps/landing/src/content/manascore/2026-03-19-calendar.md b/apps/manacore/apps/landing/src/content/manascore/2026-03-19-calendar.md index 51c017d18..8eeb0ba8e 100644 --- a/apps/manacore/apps/landing/src/content/manascore/2026-03-19-calendar.md +++ b/apps/manacore/apps/landing/src/content/manascore/2026-03-19-calendar.md @@ -18,6 +18,11 @@ scores: documentation: 98 security: 92 ux: 95 +lighthouse: + performance: 92 + accessibility: 95 + bestPractices: 96 + seo: 100 status: 'production' version: '1.1.0' stats: diff --git a/apps/manacore/apps/landing/src/content/manascore/2026-03-19-todo.md b/apps/manacore/apps/landing/src/content/manascore/2026-03-19-todo.md index af1d13587..ae5c2e9e8 100644 --- a/apps/manacore/apps/landing/src/content/manascore/2026-03-19-todo.md +++ b/apps/manacore/apps/landing/src/content/manascore/2026-03-19-todo.md @@ -18,6 +18,11 @@ scores: documentation: 95 security: 90 ux: 94 +lighthouse: + performance: 90 + accessibility: 93 + bestPractices: 96 + seo: 100 status: 'production' version: '1.1.0' stats: diff --git a/apps/manacore/apps/landing/src/pages/manascore/[slug].astro b/apps/manacore/apps/landing/src/pages/manascore/[slug].astro index 3bb58aedd..b5814fbcb 100644 --- a/apps/manacore/apps/landing/src/pages/manascore/[slug].astro +++ b/apps/manacore/apps/landing/src/pages/manascore/[slug].astro @@ -223,6 +223,57 @@ function getBarColor(score: number): string { + {/* Lighthouse Scores */} + { + audit.data.lighthouse && + (() => { + const lh = audit.data.lighthouse; + const lighthouseItems = [ + { key: 'Performance', value: lh.performance, icon: '⚡' }, + { key: 'Accessibility', value: lh.accessibility, icon: '♿' }, + { key: 'Best Practices', value: lh.bestPractices, icon: '✅' }, + { key: 'SEO', value: lh.seo, icon: '🔍' }, + ]; + const avg = Math.round( + (lh.performance + lh.accessibility + lh.bestPractices + lh.seo) / 4 + ); + + return ( +
+ Google Lighthouse Performance Audit +
+