Live Sehar & Iftar countdown with a full 30-day calendar β built for Bangladesh.
Tailwind is compiled at build time, so the deployed site is pure static HTML/CSS/JS.
- Live countdown to the next Sehar or Iftar with a progress bar
- 30-day calendar β full Ramadan timetable at a glance, today auto-highlighted
- 10 cities β Dhaka, Chittagong, Sylhet, Rajshahi, Khulna, Barishal, Rangpur, Comilla, Mymensingh, Gazipur
- Bengali / English toggle β UI, dates, and numbers switch instantly
- Prayer times tray β Fajr through Isha in an expandable panel
- Hijri date and live clock in the header
- Fullscreen mode for a clean, immersive view
- Installable PWA β works offline after first load via service worker
- Ramadan day counter β "Day X of 30" when it's Ramadan
Prayer times come from the Aladhan API (Method 1 β University of Islamic Sciences, Karachi). The app fetches the full month's calendar once per city, caches it in localStorage, and handles everything else client-side β countdown, progress bar, language switching, time formatting.
The 30-day calendar fetches both February and March data, filters for Hijri month 9 (Ramadan), and renders the full timetable.
git clone https://github.com/tanvir-cpp/ramadan-2026.git
cd ramadan-2026
npm install
npm run buildOpen index.html directly, or serve it:
npx serve .During development, run npm run watch to auto-rebuild CSS on any change.
βββ index.html # Main page β countdown, cards, prayer tray
βββ calendar.html # 30-day Ramadan calendar
βββ manifest.json # PWA manifest
βββ sw.js # Service worker (offline caching)
βββ tailwind.config.js # Tailwind theme (colors, fonts)
βββ package.json # Build scripts
βββ css/
β βββ input.css # Source CSS (Tailwind directives + custom)
β βββ style.css # Built output (minified)
βββ js/
β βββ shared.js # Shared data β cities, utilities, helpers
β βββ app.js # Main page logic β countdown, API, rendering
β βββ calendar.js # Calendar page logic β fetch, render, scroll
βββ assets/
βββ hero-bg.jpg # Compressed background (243 KB)
βββ icon.svg # PWA icon (crescent moon)
- Tailwind CSS (CDN) β styling and layout
- Lucide Icons β map-pin, calendar, moon-star, utensils, chevrons
- Google Fonts β Inter, Outfit, Noto Sans Bengali
- Aladhan API β prayer time data