Commit b25110f
authored
[FEATURE] "Ghost City" Mode for Zero Contributions (JhaSourav07#114)
## Description
Fixes JhaSourav07#97
1. Ghost City Mode: Zero-contribution days now show as thin 4px
blueprint foundations to maintain a premium 3D look across the entire
calendar.
2. Auto-Theme Support: Refactored the logic so these new foundations
automatically switch colors between Dark and Light mode.
3. Modular Rendering: Moved tower calculations into helper functions
(computeTowers, computeFaceOpacity) to make the code cleaner and easier
to manage.
4. Upstream Sync: Integrated the changes with the latest project updates
(Auto-Theme and Dynamic Fonts) to ensure no features were broken.
5. Documentation: Preserved all original maintainer comments and added
new JSDoc for the refactored functions.
## Pillar
- [ ] 🎨 Pillar 1 — New Theme Design
- [x ] 📐 Pillar 2 — Geometric SVG Improvement
- [ ] 🕐 Pillar 3 — Timezone Logic Optimization
- [ ] 🛠️ Other (Bug fix, refactoring, docs)
## Visual Preview
Preview in the comments
## Checklist before requesting a review:
- [x ] I have read the `CONTRIBUTING.md` file.
- [ x] I have tested these changes locally
(`localhost:3000/api/streak?user=YOUR_USERNAME`).
- [x ] I have run `npm run format` and `npm run lint` locally and
resolved all errors (CI will fail otherwise).
- [ x] My commits follow the Conventional Commits format (e.g.,
`feat(themes): ...`, `fix(calculate): ...`).
- [ x] I have updated `README.md` if I added a new theme or URL
parameter.
- [x ] I have started the repo.
- [x ] I have made sure that i have only one commit to merge in this PR.
- [ x] The SVG output matches the CommitPulse "premium quality"
aesthetic standard (no raw elements, smooth animations, correct fonts).3 files changed
Lines changed: 195 additions & 251 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
205 | 252 | | |
0 commit comments