Add flair badge gamification system with custom SVG badges
- Create 12 Office Space themed SVG badges (extraction, basement, printer, coffee, tps, bobs, memo, oface, stapler, conclusions, spreadsheet, flair-badge) - Implement FlairBadge.astro component with localStorage persistence - Add 15-second timer per page to earn flair - Create floating counter, modal flair board, toast notifications - Override Starlight Footer to inject flair system globally - Add name capture dialog on first flair earned Features: - Badges glow golden when earned, grayscale when locked - Progress persists across browser sessions - Stan quote: "We need to talk about your document processing..."
This commit is contained in:
parent
32b41f79d9
commit
5ae7040496
28 changed files with 1410 additions and 11 deletions
|
|
@ -7,83 +7,95 @@
|
|||
"path": "/",
|
||||
"name": "I Was Told There Would Be Extraction",
|
||||
"placeholder": "📄",
|
||||
"image": "/flair/extraction.svg",
|
||||
"description": "Started your mcwaddams journey"
|
||||
},
|
||||
{
|
||||
"id": "backstory",
|
||||
"path": "/backstory",
|
||||
"path": "/backstory/",
|
||||
"name": "Basement Dweller",
|
||||
"placeholder": "🔴",
|
||||
"image": "/flair/basement.svg",
|
||||
"description": "Learned about Milton and the legacy documents"
|
||||
},
|
||||
{
|
||||
"id": "installation",
|
||||
"path": "/installation",
|
||||
"path": "/installation/",
|
||||
"name": "PC Load Letter",
|
||||
"placeholder": "🖨️",
|
||||
"image": "/flair/printer.svg",
|
||||
"description": "Successfully installed mcwaddams"
|
||||
},
|
||||
{
|
||||
"id": "quickstart",
|
||||
"path": "/quickstart",
|
||||
"path": "/quickstart/",
|
||||
"name": "Case of the Mondays",
|
||||
"placeholder": "☕",
|
||||
"image": "/flair/coffee.svg",
|
||||
"description": "Completed the quick start guide"
|
||||
},
|
||||
{
|
||||
"id": "reference",
|
||||
"path": "/reference/tools",
|
||||
"path": "/reference/tools/",
|
||||
"name": "TPS Report Expert",
|
||||
"placeholder": "📋",
|
||||
"image": "/flair/tps.svg",
|
||||
"description": "Read the complete tools reference"
|
||||
},
|
||||
{
|
||||
"id": "architecture",
|
||||
"path": "/explanation/architecture",
|
||||
"path": "/explanation/architecture/",
|
||||
"name": "The Bobs Approved",
|
||||
"placeholder": "👔",
|
||||
"image": "/flair/bobs.svg",
|
||||
"description": "Understood the architecture"
|
||||
},
|
||||
{
|
||||
"id": "dashboard",
|
||||
"path": "/tps/dashboard",
|
||||
"path": "/tps/dashboard/",
|
||||
"name": "Did You Get The Memo?",
|
||||
"placeholder": "📝",
|
||||
"image": "/flair/memo.svg",
|
||||
"description": "Checked the test dashboard"
|
||||
},
|
||||
{
|
||||
"id": "torture",
|
||||
"path": "/tps/torture",
|
||||
"path": "/tps/torture/",
|
||||
"name": "O Face",
|
||||
"placeholder": "😮",
|
||||
"image": "/flair/oface.svg",
|
||||
"description": "Witnessed the torture test results"
|
||||
},
|
||||
{
|
||||
"id": "credits",
|
||||
"path": "/community/credits",
|
||||
"path": "/community/credits/",
|
||||
"name": "I Have Your Stapler",
|
||||
"placeholder": "🔴",
|
||||
"image": "/flair/stapler.svg",
|
||||
"description": "Found the credits and attributions"
|
||||
},
|
||||
{
|
||||
"id": "tutorial",
|
||||
"path": "/tutorials/first-extraction",
|
||||
"path": "/tutorials/first-extraction/",
|
||||
"name": "Jump to Conclusions",
|
||||
"placeholder": "🎲",
|
||||
"image": "/flair/conclusions.svg",
|
||||
"description": "Completed your first extraction tutorial"
|
||||
},
|
||||
{
|
||||
"id": "tables",
|
||||
"path": "/how-to/extract-tables",
|
||||
"path": "/how-to/extract-tables/",
|
||||
"name": "Spreadsheet Survivor",
|
||||
"placeholder": "📊",
|
||||
"image": "/flair/spreadsheet.svg",
|
||||
"description": "Mastered table extraction"
|
||||
},
|
||||
{
|
||||
"id": "collector",
|
||||
"path": "/community/leaderboard",
|
||||
"path": "/community/leaderboard/",
|
||||
"name": "37 Pieces of Flair",
|
||||
"placeholder": "🎖️",
|
||||
"image": "/flair/flair-badge.svg",
|
||||
"description": "Discovered the flair leaderboard"
|
||||
}
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue