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 challenge 1 / Daniel Castro #10

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

Conversation

dcastrowolf
Copy link

No description provided.

@dcastrowolf dcastrowolf reopened this Jul 25, 2021
@@ -1,38 +1,25 @@
import React, { useLayoutEffect } from 'react';
import React from 'react';

Choose a reason for hiding this comment

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

very nice work with components!

import styled from 'styled-components';
import { MdAccountCircle } from 'react-icons/md';

export const AvatarIcon = styled(MdAccountCircle)`

Choose a reason for hiding this comment

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

Cool, it is nice to use this icon library 👍

Comment on lines +12 to +22
<CardContainer>
<CardImgWrapper to={`/video/${videoId}`}>
<CardImg alt={`${title} | Image Video`} src={imgSrc} />
</CardImgWrapper>
<CardTitle>{title}</CardTitle>
<CardDescription>
{description}
<span>#{channel}</span>
<span>{publishedDate}</span>
</CardDescription>
</CardContainer>

Choose a reason for hiding this comment

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

I like this component hirarchy!


function CardList() {
return (
<CardGrid>

Choose a reason for hiding this comment

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

Very nice use of styles for responsive view

@@ -0,0 +1,34 @@
import { createGlobalStyle } from 'styled-components';

export const GlobalStyle = createGlobalStyle`

Choose a reason for hiding this comment

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

I liked so much this approach, I learned something new!

@andresSaldanaAguilar
Copy link

Review (Mini challenge 1)

Nice job Daniel! You're doing a great job here, I found your work very clean, well-arranged, you made great use of components, styled components, theme, and global styles, congrats and keep it like that!
I saw that the header on the navbar overflows when screen is small, maybe you can use an icon in that case, or you can pull the search bar and other functionality to a dropdown menu when the screen is small.

Acceptance Criteria (Mini challenge 1)

  • The header is rendered correctly.
  • A list of videos obtained from a mock file is displayed in the Home View.
  • CSS styles are applied correctly using the styled-components approach.

Bonus Points (Mini challenge 1)

  • No warnings or errors are logged in the browser console.
  • The UI is responsive.

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