-
Notifications
You must be signed in to change notification settings - Fork 9
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
UI for Multiple Classrooms #526
Conversation
…. Rename ExitClassroomModal to LeaveClassroomModal.
✅ Deploy Preview for voluble-nougat-015dd1 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Looks good to me - tested in my local environment and behaved as expected. I will just make a commit to remove a console.log from the API call. This was used for testing.
<Header> | ||
<Heading> | ||
You are about to leave the following classroom:{" "} | ||
<s.ColorAccent>{currentClassroom.name}</s.ColorAccent> |
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.
While I think blue is a nice contrast colour - my first intuition was that I could click it as a link. This might just be me and Blue = Link association, but just a not.
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.
Good observation! I'll change 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.
For now, I've decided to go with dark orange (gold) as the brighter one is challenging to read (not enough contrast).
I think in the future we could consider adding more shades in between these colors (similarly as with blue) for improved variety and contrast in some instances (e.g. buttons).
Orange (discarded) | Dark orange (selected) |
---|---|
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.
I agree with the bolder option!
src/articles/ClassroomArticles.js
Outdated
setStudentJoinedCohort(student.cohort_id !== null), | ||
); // eslint-disable-next-line | ||
api.getStudent((student) => { | ||
console.log(student); |
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.
This console.log might have been me, but we should remove 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.
great work!
works together with the branch: 198-students-invisible-when-joining-second-classroom (zeeguu/api#206) in the API repo
UI for multiple classrooms
Desktop view (animated):
Mobile View (not animated):
Implementation
- New components are introduced:
FullWidthListItem.js
FullWidthListContainer.js
- Changes to the error message:
- Modal is introduced:
Other
Classrooms.js
page and its associated modalLeaveClassroomModal
has been grouped together and placed n theClassrooms
folderFullWidthErrorMsg
component has been moved to thecomponents
folderFuture improvements
can exist as separate, individual, importable styled-components instead, without their associated react function - I will gradually take care of this change