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

Oscar's Design Handoff #43

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

Conversation

OscarSindemark
Copy link

import Readme2 from '../images/dylan-gillis-YJdCZba0TYE-unsplash.jpg';

export const article = [
{ header: 'Guide for beginners', paragraf: 'Join our growing community and let us support your well-being. If you are a beginner and do not dare to try yoga because you think you are too stiff and immobile for some of the positions, then you have come to the right place!' },

Choose a reason for hiding this comment

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

Overall, the code seems well-written and organized. However, the article constant could have been named differently to avoid confusion with the Article component.

Copy link

@malvinamaria malvinamaria left a comment

Choose a reason for hiding this comment

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

Overall, the code looks well-written and follows best practices of using styled-components to create reusable and maintainable styles for components.
It's good to see that the code is well-organized, with each styled component defined separately.
The use of media queries is a nice touch to ensure responsive design.
The use of alt text on images is also good for accessibility.
The naming conventions for the components and variables are clear and consistent.
The Benefits component is a good example of a functional component that returns JSX.

@@ -0,0 +1,119 @@
import React from 'react'

Choose a reason for hiding this comment

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

Overall, the code looks well-written and follows best practices of using styled-components to create reusable and maintainable styles for components

color: #025323;
margin-top: 1rem;
}
@media (min-width: 768px) {

Choose a reason for hiding this comment

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

The use of media queries is a nice touch to ensure responsive design.

}
`;

const Overlay = styled.div`

Choose a reason for hiding this comment

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

The naming conventions for the components and variables are clear and consistent.

`

const Text = styled.div`
background-image: url("../images/Blob.png");

Choose a reason for hiding this comment

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

It's generally better practice to import images as modules, rather than using their file path directly. This allows webpack to optimize the images and handle them more efficiently.

background-repeat: no-repeat;
background-position: center;
color: green;
margin-top: 1rem;

Choose a reason for hiding this comment

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

Margin-top property set to 1rem, which is then overridden in the media query. It would be more efficient to only set this property once in the media query.

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