Commit 26faa55
docs: refactor/extract demo components to modules (#225)
* refactor: Modularize demo components and extract inline styles to CSS modules
This refactoring improves maintainability and organization of the demo application by:
## Component Modularization
- Created `/demo/components/` folder structure with:
- `Header.js` - Page header with title, description, and version info
- `Footer.js` - Footer with resource links
- `Navigation.js` - Quick navigation component
- `/examples/` folder containing 11 separate example components
- Reduced `demo/pages/index.js` from 1,249 lines to 178 lines (86% reduction)
- Each example is now self-contained in its own file for easier maintenance
## CSS Module Extraction
- Created dedicated CSS module files:
- `Navigation.module.css` - Navigation component styles
- `Footer.module.css` - Footer component styles
- `EventsExample.module.css` - EventsExample component styles (40+ classes)
- Removed all inline styles from:
- Navigation.js (reduced from 54 to 24 lines)
- Footer.js (removed all inline styles)
- EventsExample.js (removed 150+ lines of inline style objects)
## Benefits
- β
Better code organization and separation of concerns
- β
Easier to locate and edit specific examples
- β
Cleaner git diffs for future changes
- β
Improved performance (styles compiled at build time)
- β
Consistent styling pattern across all components
- β
Better maintainability with scoped CSS modules
## Technical Details
- All functionality preserved - no breaking changes
- Proper use of CSS modules with scoped class names
- Template literals for combining multiple CSS classes
- Maintained all existing component features and event handlers
π€ Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* style: Add bottom padding to footer for better spacing
Added 5rem padding-bottom to .madeWidth class to improve visual
spacing at the bottom of the page.
π€ Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* feat: Add All Contributors recognition system
- Install all-contributors-cli package
- Add All Contributors badge to README
- Create Contributors section in README
- Add Nate (@natesct) as first contributor for bug report (#222)
- Add npm scripts for managing contributors
This enables recognizing all types of contributions including
bug reports, documentation, code, and more.
π€ Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* chore: Update package-lock.json for all-contributors-cli
* feat: Add GitHub Action workflow to add contributors
- Create automated workflow to add contributors via GitHub UI
- Support all contribution types with dropdown selection
- Automatically creates PR with contributor changes
- Add comprehensive CONTRIBUTORS.md guide
This makes it easy to recognize all types of contributions
including bug reports, documentation, code, and more.
Usage:
1. Go to Actions β Add Contributor
2. Fill in username and contribution type
3. Workflow creates a PR automatically
π€ Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* feat: Add historical contributor recognition system
- Create script to automatically add all git contributors
- Add all-contributors:add-historical npm script
- Successfully added 10+ historical code contributors
- Update CONTRIBUTORS.md with historical import guide
Contributors added:
- @ibrahimcesar (repository owner)
- @tmcw, @avaleriani (auto-detected)
- @lachlanjc, @perbergland, @humet
- @afzalsayed96, @LichLord91, @FunctionDJ
- @theodorusclarence, @elbotho
Script features:
- Parses git log for all committers
- Extracts GitHub usernames from emails
- Optional GitHub API integration for better detection
- Lists contributors needing manual addition
Usage:
npm run contributors:add-historical
π€ Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* feat: Install and configure Docusaurus 3.9 for documentation
- Install Docusaurus 3.9 in demo/docs folder
- Configure for react-lite-youtube-embed project
- Update branding, URLs, and navigation
- Disable blog, focus on documentation
- Install local package for live examples
- Set up for GitHub Pages deployment
Next steps:
- Create video-focused homepage
- Add documentation pages
- Migrate examples from Next.js demo
To run docs locally:
cd demo/docs && npm start
π€ Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* feat: Create video-focused homepage for Docusaurus
- Replace default homepage with custom video-first design
- Add live LiteYouTubeEmbed demo prominently in hero section
- Create "Why" section with 6 key features (Fast, Private, Tiny, etc.)
- Add Quick Start section with install/usage code
- Add Performance Comparison table (iframe vs lite embed)
- Implement beautiful gradient hero with glassmorphism
- Add video stats display (< 5KB, ~500KB saved, 0 cookies)
- Fully responsive design with mobile optimizations
- Dark mode support with adjusted gradients
The homepage now immediately demonstrates the component
with a real embedded video, making the value prop crystal clear.
π€ Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* refactor: Move docs to top level and remove demo folder
- Move demo/docs to top-level docs/
- Delete old demo folder (Next.js examples)
- Update docusaurus.config.ts editUrl path
- Update .gitignore for top-level docs
This simplifies the project structure and makes
documentation more prominent.
To run docs:
cd docs && npm start
π€ Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* docs: new docs / demo page
---------
Co-authored-by: Ibrahim Cesar Nogueira Bevilacqua <ibrahimcesar@AirPudim.local>
Co-authored-by: Claude <noreply@anthropic.com>1 parent 5ab6964 commit 26faa55
64 files changed
Lines changed: 24603 additions & 2855 deletions
File tree
- .github
- workflows
- demo
- pages
- public
- styles
- docs
- blog
- 2021-08-26-welcome
- docs
- src
- components/HomepageFeatures
- css
- pages
- static
- img
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
0 commit comments