-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Picture Gallery #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Greptile Overview
Summary
Adds a picture gallery component featuring image carousels for DeltaHacks 9, 10, and 11 events. The implementation uses Embla Carousel with autoplay functionality and navigation controls.
Key Changes:
- New
Gallerycomponent as main container - New
GalleryItemcomponent with three variants (DH9, DH10, DH11) - JSON configuration file for gallery images
- Added embla-carousel dependencies
Issues Found:
- PR description missing required
resolves #issue-idreference - Multiple instances of hardcoded rem values violating pixel-based sizing guidelines
- Hardcoded hex colors (
#FFDEA9,#D69E66) instead of Tailwind CSS variables - Using absolute positioning for layout elements
Confidence Score: 3/5
- This PR is functional but has several style guideline violations that should be addressed
- The component implementation is solid with proper React patterns and carousel integration, but violates multiple custom style rules including hardcoded sizing, colors, and absolute positioning. These are non-critical style issues that won't break functionality but should be fixed for consistency.
- Pay attention to
src/components/Gallery.tsxandsrc/components/GalleryItem.tsxfor style guideline compliance
Important Files Changed
File Analysis
| Filename | Score | Overview |
|---|---|---|
| src/components/Gallery.tsx | 3/5 | Main gallery container with layout setup - contains hardcoded colors and uses absolute positioning |
| src/components/GalleryItem.tsx | 3/5 | Gallery carousel items for DH9/10/11 - multiple style violations including hardcoded rem values and hex colors |
| src/assets/gallery/gallery.json | 5/5 | Data structure for gallery images - clean implementation with proper structure |
4 files reviewed, 5 comments
3655e4a to
4f05eb9
Compare
|
@AnkushSarkar10 Address the comments by Gerptile, the ones about hardcoded sizing and colors is valid and against our coding style. |
addressed |
Picture Gallery Component
Add each pictures for DH9, DH10 and DH11 under
public/galleryPicsand add the filenames for the pictures insrc/assets/gallery/gallery.json.