-
Notifications
You must be signed in to change notification settings - Fork 2
Issue 8 individual art pages #41
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
…/game-dev into issue-8/art-page
…flict Issue 8 resolve merge conflict
laurenpudz
left a comment
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.
Just a couple of notes regarding some (mostly) frontend things I've picked up on. I'd also like to get someone else's review on the backend work you've done. This PR is looking good though, keep up the good work :)
| <div> | ||
| <div | ||
| data-layer="Right Panel" | ||
| className="RightPanel flex flex-col justify-start gap-2.5 py-5" |
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.
What effect does the RightPanel class have here?
| data-layer="Right Panel" | ||
| className="RightPanel flex flex-col justify-start gap-2.5 py-5" | ||
| > | ||
| <div data-layer="Frame 1163" className="Frame1163 relative"> |
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.
It would be good to give the data-layer attribute a more descriptive name than "Frame 1163". We probably don't technically need the data-layer attributes but if you would like to keep them then please rename them to something more descriptive
| <div data-layer="Frame 1163" className="Frame1163 relative"> | ||
| <div | ||
| data-layer="Contributors" | ||
| className="Contributors text-light-3 justify-start font-['Jersey_10'] text-4xl font-normal tracking-wide" |
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.
You should be able to just use font-jersey10 here to change the font. Let me know if you have issues getting this to work and I can help sort it out
|
|
||
| .bg-neutral-1 { | ||
| background-color: var(--neutral-1); | ||
| } | ||
| .bg-dark-2 { | ||
| background-color: var(--dark-2); | ||
| } | ||
| .bg-light-2 { | ||
| background-color: var(--light-2); | ||
| } | ||
| .text-light-1 { | ||
| color: var(--light-1); | ||
| } | ||
| .outline-neutral-1 { | ||
| outline-color: var(--neutral-1); | ||
| } | ||
| .text-light-3 { | ||
| color: var(--light-3); | ||
| } | ||
| .border-light-2 { | ||
| border-color: var(--light-2); | ||
| } | ||
| .bg-error { | ||
| background-color: var(--error); | ||
| } |
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.
You should be applying your styling using tailwind classes rather than defining your own custom css classes. e.g. you should be able to replicate the effects of .bg-neutral-1 class with the tailwind class background-neutral_1. You can find the variable names with which to refer to each colour in tailwind.config.ts. Please remove these and switch to using tailwind classes instead. Happy to help or explain if you need any assistance
- Changed Art model from CharField to ImageField for media - Added ImageField with upload_to='art_images/' - Created migration 0006 for field rename - Added discord_url and instagram_url to ArtContributor model - Created migration 0007 for social media fields - Updated serializers for both Art and ArtContributor models - Updated TypeScript types for Art model - Added artwork index and detail pages with dynamic routing - Replaced hardcoded SVG icons with react-social-icons library - Configured Next.js to allow localhost images - Fixed duplicate color definitions in globals.css - Updated Tailwind config for consistent HSL colors - Created test data script with sample images and social links
- Changed discord_url and instagram_url to use blank=True with default='' - Removed null=True to follow Django best practices for string fields - Updated migration 0007 accordingly
Change Summary
Improved responsive design and refactored artwork pages to follow Next.js best practices. Centralized mock data generation into a reusable hook and added proper error handling for empty database states.
Changes Made
ButtonGallerycomponent to use Next.jsLinkcomponent properlyuseArtworkData.tshookgetServerSidePropsto return mock data when API fails or DB is emptyChange Form
Other Information
Testing Notes:
Related issue