I'll create a comprehensive Hindu Panchang/Vikram Samvat calendar app with all the panchang elements (Tithi, Nakshatra, Yoga, Karana), Indian calendar months, and the traditional Bikram Sambat dating system.
I'll create the Vikram Samvat and Panchang calculation utilities.
I'll fix the TypeScript errors in src/utils/panchang.ts.
Now let me update index.html with the appropriate title and Hindi font.
Now let me update src/index.css with the warm saffron/hindu theme.
Now let me create the Calendar context for the Panchang app.
Now let me create the Header component for the Panchang calendar.
Now let me create the DayCell component with Tithi, Nakshatra, and festival badges.
Now let me create the DayDetailPanel component for displaying detailed panchang information.
Now let me create the main CalendarView component.
Now let me create the FestivalsSidebar component.
Now let me create the TithiMoon component and the Footer component.
Now let me create the Footer component.
Now let me update src/App.tsx to integrate all the components.
Now let me check the main.tsx file and update it if needed.
Let me build the project to check for any remaining errors.
The project builds successfully. Let me now improve the Vikram Samvat calculation to be more accurate for the current year and enhance the calendar view.
Now let me enhance the DayCell to show Vikram Samvat dates more prominently.
Now let me update the CalendarView header to show Vikram Samvat year prominently.
Now let me rebuild the project to verify all changes compile successfully.
Excellent! The project builds successfully. Let me update the SPEC.md with the final implementation details.
I've created a complete Hindu Panchang / Vikram Samvat Calendar application. Here's what was built:
Features Implemented:
-
Vikram Samvat Calendar Display
- Primary display shows Vikram Samvat year and month (currently showing विक्रम सम्वत् 2082, आषाढ़ मास)
- Each day shows the lunar day number (Tithi) prominently
- Paksh indicator (शुक्ल/कृष्ण) for waxing/waning moon
-
Panchang Elements (पंचांग)
- तिथि (Tithi) - Lunar day with Devanagari names
- नक्षत्र (Nakshatra) - 27 lunar mansions with pada (quarter) and deity
- योग (Yoga) - 27 yogas with meanings
- करण (Karana) - Half-tithi divisions
- वार (Vara) - Day of week in Devanagari
-
Special Day Markers
- Ekadashi (एकादशी) highlighted with amber background
- Purnima (पूर्णिमा) with golden glow
- Amavasya (अमावस्या) with dark moon indicator
- Festival badges with major/minor distinction
-
Festivals System
- Pre-configured festivals for 2024-2026
- Festival sidebar showing all festivals in the current month
- Click any festival to see detailed panchang for that day
-
Auspicious/Inauspicious Timings
- Rahu Kaal (राहु काल) with striped indicator
- Yamaganda (यमगण्ड)
- Gulikai Kaal (गुलिक काल)
- Sunrise/Sunset times
-
Day Detail Panel
- Click any day to see complete panchang breakdown
- Devanagari typography throughout
- Moon phase visualization
-
Design
- Warm saffron/amber color scheme
- Noto Serif Devanagari font for Sanskrit
- Dark mode support
- Responsive layout
Files built: SPEC.md, src/utils/panchang.ts, index.html, src/index.css, src/context/PanchangContext.tsx, src/components/PanchangHeader.tsx, src/components/DayCell.tsx, src/components/DayDetailPanel.tsx, src/components/CalendarView.tsx, src/components/FestivalsSidebar.tsx, src/components/TithiMoon.tsx, src/components/PanchangFooter.tsx, src/App.tsx