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

Mini challenge5 #62

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

Conversation

ruth-avelar
Copy link

No description provided.

@@ -0,0 +1 @@
REACT_APP_API_KEY = AIzaSyCvXyI17JpqteOyWUvL_w7gjwXKOZXnbaI

Choose a reason for hiding this comment

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

Normally this type of secret needs to be added to the .gitignore file for security reasons.

const ModalFavorite = styled.div`
width: 30%;
height: 100%;
background-color: white;

Choose a reason for hiding this comment

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

If you defined a theme, maybe you could pull the color values from it.

padding: 10px;
height: 50px;
border-bottom-style: solid;
border-bottom-color: #e6e6e6;

Choose a reason for hiding this comment

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

Pull color value from theme.

`;

const ModalContent = styled.div`
background-color: #fefefe;

Choose a reason for hiding this comment

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

Pull color value from theme.

@@ -14,7 +14,7 @@ html {
box-sizing: inherit;
}

body {
/* body {

Choose a reason for hiding this comment

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

There is no need for a global.css file if you are using styled-components. In that case, what you can do is create a global stylesheet via styled-components.

Reference: https://styled-components.com/docs/api#createglobalstyle

@@ -1,5 +1,7 @@
.homepage {
text-align: center;
overflow: scroll;

Choose a reason for hiding this comment

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

You can avoid mixing css files and styled-components files.

Copy link

@guillermo-rebolledo guillermo-rebolledo left a comment

Choose a reason for hiding this comment

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

Looking good! Left some comments.

Overall this is solid! My advice would be to avoid mixing CSS and CSS-in-JS. Use one or the other. I think in this case CSS-in-JS (styled-components) would be better since the bootcamp covered it. Use the APIs that it gives you to the fullest, global styles, theme provider, etc.

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