一覧へ戻る
megluc/final-zodiac-app(新しいタブで開きます)
主要言語: JavaScript
A quick demo of our in-progress zodiac app
- star 数
- 0
- watcher 数
- 0
- fork 数
- 2
- issue 数
- 0
- 最終更新
- 2026/04/21
主要言語: JavaScript
A quick demo of our in-progress zodiac app
A client-side horoscope dashboard built with vanilla JavaScript ES modules, using a locally fetched JSON data source. Features a zodiac sign grid, daily horoscope display, Big Three generator, compatibility checker, favorites toggling with persistence, and sign search.
python3 -m http.server 4040
Open: http://localhost:4040
| File | Responsibility |
|---|---|
data.json |
All app data — zodiac sign date ranges, horoscope entries, compatibility pairs, moon/rising sign arrays |
dom.js |
Centralized DOM element references |
state.js |
Single state object and pure selector functions |
api.js |
Async data loading with resilience patterns |
render.js |
Orchestrates all DOM updates |
main.js |
Bootstraps app, wires event listeners |
components/ZodiacGrid.js |
Self-contained zodiac grid component |
// Component: ZodiacGrid // Input: { signs, favorites, onSelectSign, onToggleFavorite } // Output: DOM nodes mounted inside `container` // Events: onSelectSign(sign) — called when user clicks a sign card // onToggleFavorite(sign) — called when user clicks the heart // Dependencies: none
data.json is being fetchedlocalStorage across page refreshesAbortControllerall 14 test cases now pass after the fixes | Pass rate: 14/14 (100%)