-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Update front page to MUI components 1547 #1554
Update front page to MUI components 1547 #1554
Conversation
…stom sx properties, still need to be resolved
…dex.scss, changed heading tags to Typography
Want to review this pull request? Take a look at this documentation for a step by step guide! From your project repository, check out a new branch and test the changes.
|
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 solution to me looks like overkill. The project already has a provided theme (see /client/src/theme/index.js
), I think we can add your additional CSS properties there if necessary rather than creating a whole new ThemeProvider.
@spiteless on reviewing the page in browser it looks like the |
@spiteless some new changes are made, can you please review them. I guess the font and the alignment is achieved but if you remove the |
Looks like we don't need to modify the theme.js file at all actually. just need to pass the required css to the sx prop. I have a working version locally but had to run off to work. Will provide some more guidance in a little bit. |
// Defined outside Home function
const h1sx = {
fontFamily: 'aliseoregular',
fontWeight: 'bold',
fontSize: {xs: "5.3rem"},
}
const h2sx = {
...h1sx,
fontSize: {xs: '2.8rem'},
} <Box className="home-headers">
<Typography sx={h1sx} variant='h1'>
VRMS
</Typography>
<Typography sx={h2sx} variant='h2'>
Volunteer Relationship Management System
</Typography>
</Box> Still needs some finagling on line height/padding, etc |
…property along with fixing the margins
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 good! Please edit the properties slightly, particularly line height on h2
and font size on h1
as per below:
const h1sx = {
fontFamily: 'aliseoregular',
fontWeight: 'bold',
fontSize: {xs: "6.0rem"},
marginBottom: `0rem`,
}
const h2sx = {
...h1sx,
fontSize: {xs: '2.8rem'},
marginTop: '-0.9rem',
lineHeight: '0.9',
}
const h4sx = {
...h1sx,
fontSize: {xs: '1.8rem'},
}
@spiteless I've tried to edit your working solution I guess it is pretty close, but a problem is arose after I updated the feature branch with the
maybe some recent commits to the |
Heard on your error, please run yarn install again in the client folder |
@freaky4wrld No worries if you'd rather use Ultimately the exact numbers don't matter much, it'll get changes later on when a new version of the login page is made, but I'd prefer if the total size of the |
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.
Thanks! One page down :)
@spiteless sorry for the naiveness, the error had me this time, so can't check on the changes it
Thanks for helping throughout the issue 🥇 |
Fixes #1547
What changes did you make and why did you make them ?
<div>
with<Box>
<h1>,<h2>,<h4>
withTypography
Screenshots of Proposed Changes Of The Website (if any, please do not screen shot code changes)
Visuals before changes are applied
Visuals after changes are applied