-
Couldn't load subscription status.
- Fork 16
Resource dropdown boxes & rendering fake data #50
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
Conversation
KHVBui
commented
Aug 11, 2022
- Installed react-youtube for future video dropdowns in tutorials
- Installed prop-types to resolve linter props validation error
- render fakedata for resource tabs with appropriate CSS for list items
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.
There is an mistake with padding & margin I made in the tab content, so I will fix it later. I think the styling for title should be changed
- react-youtube for later video dropdowns - prop-types resolves linter errors for typing
- Code from Pull Request #31, with edits since rendering occurs in separate files - Reduces repetitive code for creating individual buttons
1a4352d to
c7e3b02
Compare
- box-shadows changed to border-bottom for clarity - Transitions added for titles and descriptions - Padding adjusted for resources-content to be wider - fixed bug where resources-container wasn't adjusting its height as contents grew
c7e3b02 to
a3e337f
Compare
|
It's good so far. I think we should discuss general patterns for each page to unify design. I'll start reviewing it |
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.
Hey Kevin, there are some redundant codes in className for all three sub pages js file. I gives some comments for css enhancement. Please read through.
- li's can't be under another li, so switched resource-list-description to divs - Readings need a key for its ToggleItem
- "resource-list-title-active" and "resource-list-description-active" reduced to just an .active class now - Instead of using the CSS "white-space: pre-line;" and new line chars (\n), switched to <p> tags
resources-container: - Top margins now don't leave a huge gap on mobile - max-width to prevent too much stretching - min-height unnecessary with bottom padding resources-tabs button - Used "min" to make title font responsive since "Organizations" kept getting cut off on smaller screens resource-content - % for padding more responsive - overall box doesn't need a border resource-list-item & button - Creates the dividing lines - override default button formatting (particularly the bezeling) resource-list-title - 2rem is too large for padding - border controlled by resource-list-item now - font is now responsive resource-list-title.active - border controlled by resource-list-item now resource-list-description - Newlines are created using <p> now - font is now responsive resource-list-description.active - 2 rem is too much for padding - border controlled by resource-list-item now resource-list-description p - controls formatting of <p>
- where the top and bottom are the same and left and right are the same, can reduce to two values
|
I think I got all the comments you made Minh. Let me know if there's anything else. |
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.
The code and page look pretty nice! There is only one thing that, you need to refactor import of fakeData in three subpages and change mapping in those pages. Edit it and you're ready to go :)
- removed "require" and used "import" instead for clarity - removed unnecessary "React" import in "Resources"
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.
Very nice!

