Skip to content
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

#704 update landing page #748

Closed
wants to merge 15 commits into from
Closed

#704 update landing page #748

wants to merge 15 commits into from

Conversation

davidemmolino
Copy link
Member

@davidemmolino davidemmolino commented Nov 15, 2022

Addresses issue #704

  • Installed additional MUI packages to support dropdown and icons for new designs
  • bumped types/react version to support MUI packages
  • updated and removed unused text
  • created an accordions component

Preview screenshots
Screen Shot 2022-11-14 at 4 32 19 PM
Screen Shot 2022-11-14 at 4 32 24 PM
Screen Shot 2022-11-14 at 4 32 27 PM
Screen Shot 2022-11-14 at 4 32 32 PM
Screen Shot 2022-11-14 at 4 57 23 PM

Before changes
Screen Shot 2022-11-14 at 4 27 41 PM

After changes
Screen Shot 2022-11-14 at 4 32 12 PM

@davidemmolino
Copy link
Member Author

Performance is really low, might be due to having a bunch of PNG's on the page. Although, pretty sure Lighthouse is doing it's performance test on the development build of the site. Might be better in prod version of the build.

Not sure if you want to consider lazy loading a landing page or fetching those images from a remote database.

I heard MUI isn't great in terms of performance and that a headless UI could be a better and less bloated option but if we're on a time crunch it's probably best to put the idea on the backburner.

Copy link
Member

@aahvocado aahvocado left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet, thanks for the big chunk of work! I left some comments inline. I'll be sure to respond quicker this time.

I'm going to see if I can ask design for .svg files to reduce that initial load size because these images do indeed have a big hit on performance.

.gitignore Show resolved Hide resolved
Comment on lines +7 to +12
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@material-ui/core": "^4.11.2",
"@material-ui/icons": "^4.11.2",
"@mui/icons-material": "^5.10.9",
"@mui/material": "^5.10.13",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which of these new packages are necessary? Let's try to stay contained within our used third-party libraries unless needed. We can find alternate icons or work with design if we're missing some.

We also aren't using styled-components, and you can just use plain css for now if needed, so let's remove them.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

icons-material is for the arrow in the accordion, don't necessarily need it.
The rest are needed to generate the MUI accordion itself.
Are you suggesting just building the accordion from scratch?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also found this info which I thought was interesting.. Don't usually work with MUI so it was nice to learn
https://mui.com/material-ui/guides/minimizing-bundle-size/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

icons-material is for the arrow in the accordion, don't necessarily need it. The rest are needed to generate the MUI accordion itself. Are you suggesting just building the accordion from scratch?

What I mean is we already have material-ui v4 which has an accordion component and the arrows if you look for ExpandMore and ExpandLess. No need to bring in another package with v5

Copy link
Member Author

@davidemmolino davidemmolino Dec 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. I'll stick to v4. BTW both links go to the same url, could you update the url for accordion, please?

@sydneywalcoff
Copy link
Member

sydneywalcoff commented Feb 4, 2023

Closing to rebuild this.

@aahvocado aahvocado deleted the #704-update-landing-page branch February 23, 2023 02:43
aahvocado added a commit that referenced this pull request Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants