Commit Graph

7 Commits

Author SHA1 Message Date
e127115f41 Update ContributionCalendar to adjust weeks displayed based on mobile view
- Modified the logic for determining the number of weeks to show in the ContributionCalendar component, reducing the count from 20 to 19 when in mobile view and not expanded.
- This change aims to optimize the calendar display for better usability on smaller screens.
2025-06-15 16:43:22 +02:00
6d9ae02f2a Refactor ContributionCalendar to use UTC for date calculations
- Updated date handling in ContributionCalendar to work entirely in UTC, ensuring consistency with Gitea's date representation.
- Adjusted logic for calculating the start date of the 52-week period and generating calendar days accordingly.
- Improved comments for clarity regarding the use of UTC in date manipulations.
- Cleaned up redundant code and ensured proper date formatting in the rendering of calendar days.
- Minor adjustments in the development.astro file to comment out a collapsible intro section for better organization.
2025-06-15 16:37:06 +02:00
075359d1db Refactor ContributionCalendar component by removing mobile scroll indicator
- Eliminated the scroll indicator functionality for mobile users to streamline the component.
- Retained calendar reference for future use while simplifying the rendering logic.
- Adjusted related useEffect hooks to enhance performance and maintainability.
2025-06-07 14:05:28 +02:00
7ce6c1390f Enhance ContributionCalendar component for mobile responsiveness and user experience
- Added mobile detection and state management to handle screen size changes.
- Implemented a scroll indicator for mobile users to enhance navigation.
- Introduced a toggle button for expanding the calendar view to show the full year.
- Adjusted the rendering logic to display a limited number of weeks based on the mobile state.
2025-06-07 12:26:56 +02:00
aa37cb23cf Enhance ContributionCalendar and development.astro for dark mode support and improved commit display
- Refactor ContributionCalendar to support light and dark color schemes based on user preference.
- Implement dark mode detection using a MutationObserver to dynamically adjust styles.
- Update development.astro to include a new CollapsibleIntro component for better user experience.
- Improve commit display logic to format messages with bullet points and enhance layout for clarity.
2025-06-06 23:36:00 +02:00
673d1b7c29 Enhance ContributionCalendar component and update development.astro for better contribution visualization
- Modify getCalendarDays function to start the week on Monday and improve date calculations.
- Add getMonthLabels function to generate month labels for the contribution calendar.
- Update styling and structure of the ContributionCalendar for improved layout and responsiveness.
- Integrate ContributionCalendar into development.astro to visually represent code contributions over the past year, enhancing project transparency.
2025-06-06 22:14:49 +02:00
f01ac6f675 Enhance commit fetching in development.astro with improved API integration
- Update GITEA_COMMITS_URL to include additional query parameters for better data retrieval.
- Implement authorization header for secure API access if a token is present.
- Refactor commit display logic to handle potential missing data gracefully.
2025-06-06 21:51:11 +02:00