📖 Table of Contents
🌟 Overview
Mujahed Kanban Board is a single-page productivity app that combines three ideas in one place:
- A classic Kanban board (To Do / In Progress / Completed) with drag-and-drop.
- A Quran player streaming Mishary Alafasy recitation via the public alquran.cloud API.
- A breathing relaxer built with pure CSS animations to help you reset between tasks.
Everything is saved to localStorage — no backend, no account, no tracking. Open the page and start working.
📸 Screenshots
Desktop — Kanban Board
Quran Player
Breathing Relaxer
Drag & Drop Between Lists
Responsive Layout
✨ Features
Core
- ✅ Add / Edit / Delete tasks — click +Add, type inline (
contenteditable), delete with the icon or Backspace on empty.
- ✅ Drag & drop tasks between To Do, In Progress, and Completed.
- ✅ Persistent order — every task is stored with an explicit
order field so the board looks identical after reload.
- ✅ Autosave to
localStorage (debounced during typing to avoid jank).
- 🕌 Full Quran player — all 114 surahs, ayah-by-ayah playback via the alquran.cloud REST API.
- Resume from the exact ayah you stopped on — even after a page reload (always restarts from the beginning of that ayah).
- Auto-advance to the next surah after the last ayah.
Restart button to replay the current surah from the first ayah.
- 🌬️ Breathing relaxer — a 7.5s In/Hold/Out cycle driven entirely by CSS animations and
setTimeout.
- 🕐 Live clock & date — updates every second.
- ⌨️ Keyboard-first — full navigation via
Tab, Enter/Space, and Escape.
🛠️ Tech Stack
| Layer |
Technology |
| Markup |
HTML5 (semantic) |
| Styling |
CSS3 — custom properties, flexbox, conic-gradient, keyframe animations |
| Logic |
Vanilla JavaScript (ES2020) — modules, async/await, drag-and-drop API |
| Audio |
HTML5 <audio> + alquran.cloud REST API |
| Icons |
Ionicons 7 |
| Font |
Alkatra (Google Fonts) |
| Storage |
localStorage |
No frameworks, no bundler, no build step. Just three files.
🚀 Getting Started
Option 1 — Live demo
👉 https://mujKanbanBoard.netlify.app/
Option 2 — Run locally
git clone https://github.com/MucahidDeveloper/MyKanbanBoard.git
cd MyKanbanBoard
Because the app fetches from https://api.alquran.cloud, some browsers block file:// requests. Serve it locally:
# Python
python -m http.server 8000
# Node
npx serve .
# VS Code
# → Right-click index.html → "Open with Live Server"
Then open http://localhost:8000.
⚙️ How It Works
Data model
Each task is a small object stored as part of its column’s array:
{ "id": "42.13579", "value": "Write the README", "order": 0 }
localStorage keys:
| Key |
Value |
listNew |
array of To Do tasks |
listWorking |
array of In Progress tasks |
listFinish |
array of Completed tasks |
surahNumber |
current surah (1–114) |
ayahIndex |
current ayah index in that surah (0-based) |
Quran player state machine
The player uses an integer token to cancel stale playback sessions:
- Every
play() / next() / prev() / restart() / surah change increments token.
- The playback loop compares
myToken against the live token after every await and bails out if it changed.
audio.currentTime is reset to 0 before each ayah — for adab, we never resume mid-verse.
Order preservation
On every drop and every write, the column’s DOM is snapshotted into an array and each item is given a fresh order equal to its index. On reload, arrays are sorted by order, so the visual layout is deterministic.
♿ Accessibility
- ARIA roles and labels on all interactive icons (
role="button", aria-label, aria-pressed, aria-haspopup).
- Full keyboard support:
Tab / Shift+Tab to navigate.
Enter / Space to activate buttons.
Escape to close the relaxer dialog.
Delete / Backspace on an empty task to remove it.
- Relaxer is announced as
role="dialog" aria-modal="true" with aria-live="polite" on the changing prompt.
- Decorative icons and shapes marked
aria-hidden="true".
📁 Project Structure
MyKanbanBoard/
├── index.html
├── script.js
├── style/
│ ├── style.css # global styles, colors, layout
│ ├── listContent.css # task cards, drag states
│ ├── relaxer.css # breathing circle & modal
│ └── media.css # responsive breakpoints
├── img/
│ ├── favicon.png
│ └── Qimg.png
└── docs/
└── screenshots/
├── desktop.png
├── quran-player.png
├── relaxer.png
├── drag-and-drop.png
└── responsive.png
🗺️ Roadmap
Planned enhancements — issues and PRs welcome:
🤝 Contributing
- Fork the repository.
- Create a feature branch:
git checkout -b feat/your-feature.
- Follow Conventional Commits (
feat:, fix:, refactor:, docs:).
- Keep PRs small and focused — one logical change per PR.
- Open a Pull Request with a clear description and screenshot if UI changes.
Bug reports and feature suggestions are welcome in Issues.
👤 Author
Mujahed
📄 License
Released under the MIT License.
Built with 💚 while learning pure JavaScript.
If this project helped or inspired you, a ⭐ on the repo means a lot.
评论