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

Design handoff, Vio #32

Open
wants to merge 40 commits into
base: master
Choose a base branch
from
Open

Conversation

code-and-cats
Copy link

Copy link

@dannebrob dannebrob left a comment

Choose a reason for hiding this comment

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

Nice work Vio, be proud! You finished the black-lvl, great work!

  • As we discussed over the week, comments can be hard to get right. So I left some feedback on some that catched my eye.
  • I'm missing some meta data in the index.html (in public folder), its always nice.
  • There are some responsive issues on chrome, not sure if you gotten the width px from the UX designer, mostly close to the break-points, with buttons and carusell. Images and descriptions below.

Missing some spacing on the smallest screens of the buttons
image

Overlapping divs and also some overflow?
image

Other than that I have nothing to add, except to repeat my self (This is not DRY) great work on the project.

Comment on lines +9 to +15
const StyledAnnualBox = styled.div`
background-color: ${props => props.selected ? "#F4E4D7" : "#D0C4B8"};
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.25);
border-radius: 12px;
width: ${props => props.selected ? "342px" : "304px"};
margin-top: 35px;
};

Choose a reason for hiding this comment

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

Nice use of Styled Components

Comment on lines +10 to +11
I wish I had more time to implement more funtions.
The onclick from different components, for example! */

Choose a reason for hiding this comment

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

This is a comment that really tells a story; maybe you could think who are you writing a comment to Is it for yourself or someone to continue on your code? My personal preference is to keep it short and informative.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks! This is a comment to myself mostly, for when I come back to implement some of the things I set up for but didn't have time to finish during the week. I know I will have forgotten a lot so the comments are long to help me remember 🙂

`

const Nutrition = () => {
const isMobile = useMediaQuery('(max-width: 767px)'); // Hook to check screen size.

Choose a reason for hiding this comment

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

Nice use of useMediaQuery, I did not know about it before!

/* Rendering the different titles depending on screen size. I think this could be done with
props and a title component, but I've not gotten it to work on resize of screen,
only on first render of site.
Instead I have installed an npm package to solve this. Might not be the best solution. */

Choose a reason for hiding this comment

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

NPM packages are there to help right? I would say that this is a great solution. But if you want you could do some css magic with ::before and media queries in css (use the content property to specify the content to insert depending on screen size), but I think this is a cleaner way that you have done it.


const vidRefs = useRef([]);

const handleToggleVideo = (index) => {

Choose a reason for hiding this comment

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

I'm not 100% sure how this vidRef is working, this might be a good place to insert a comment.

@code-and-cats
Copy link
Author

Thank you for taking the time to go through the code! 🌟
I've fixed the overlapping pricing slider issue. The min width of the design spec is 380px, so responsivity below that is not implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants