-
Notifications
You must be signed in to change notification settings - Fork 3
fix homepage testimonials font #1568
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
|
@mbilalmughal Here is a screenshot with the updated font size for the title. How do you recommend we address this issue for a long title that wraps? |
ChristopherChudzicki
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.
I left a few small comments about the title / subtitle for homepage testimonials section.
A more annoying issue is... I believe the changes to the "AttestantBlock" component are currently affecting testimonials on the unit pages, too.
The two cases are currently using the same AttestantBlock component, differentiated by variant=start | end named, I presume, because the image placement is different).
Suggestion: I think we should just have separate Attestant components for the two usages. The styles are generally different between them (font, spacing, color, arrangement of elements).
| return ( | ||
| <Section> | ||
| <Container id="hamster-noises"> | ||
| <HeaderContainer id="hamster-noises"> |
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.
Hamsters make weird noises, so we probably don't want those noises on the website. Suggest removing this.
No offense to hamsters.
| <Section> | ||
| <Container id="hamster-noises"> | ||
| <HeaderContainer id="hamster-noises"> | ||
| <Typography component="h2" variant="h2"> |
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.
Looking at Figma, this should be
| <Typography component="h2" variant="h2"> | |
| <Typography component="h2" typography={{xs: "h3", sm: "h2"}}> |
| <Typography variant="body1"> | ||
| Millions of learners are reaching their goals with MIT's non-degree | ||
| learning resources. Here's what they're saying. | ||
| </Typography> |
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.
Looking at figma, I guess this should have textAlign: center.
Could be styled(...), or Typography has a prop for that.
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 HeaderContainer styled component handles this with alignItems: "center", do we really need a duplicate centering rule?
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.
2acbb19 to
610180e
Compare
ChristopherChudzicki
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.
Looks good, but probably still want to text align.
|
Merging for carey, he's on vacation |




What are the relevant tickets?
Closes https://github.com/mitodl/hq/issues/5360
Description (What does it do?)
This PR adjusts the font and layout of the homepage testimonials section to match the current designs in Figma
Screenshots (if appropriate):
How can this be tested?
mit-learnon this branch