Skip to content

practice-react-styling-done#53

Open
fryderyk1991 wants to merge 6 commits intodevmentor-pl:masterfrom
fryderyk1991:master
Open

practice-react-styling-done#53
fryderyk1991 wants to merge 6 commits intodevmentor-pl:masterfrom
fryderyk1991:master

Conversation

@fryderyk1991
Copy link

No description provided.

Copy link
Owner

@devmentor-pl devmentor-pl left a comment

Choose a reason for hiding this comment

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

Fryderyku,

Całość idzie w dobrym kierunku, ale sporo rzeczy jest niedopracowanych.
Nie zostawiłeś mi komentarza więc nie wiem dlaczego tak jest :P
Proponuję dokończyć całość :)

<Col>
<Alert>Uwaga! <em>Styled Components</em> nadchodzi!</Alert>
<Alert variant="primary">Uwaga! <em>Styled Components</em> nadchodzi!</Alert>
<Alert variant="secondary">Uwaga! <em>Styled Components</em> nadchodzi!</Alert>
Copy link
Owner

Choose a reason for hiding this comment

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

👍

<Col>
Button!
<Button variant="primary" size="lg" active>Button!</Button>
<Button variant="secondary" size="sm" disabled>Button!</Button>
Copy link
Owner

Choose a reason for hiding this comment

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

👍

<Breadcrumb.Item href='#'>Home</Breadcrumb.Item>
<Breadcrumb.Item href="https://getbootstrap.com/docs/4.0/components/breadcrumb/">Library</Breadcrumb.Item>
<Breadcrumb.Item active>Data</Breadcrumb.Item>
</Breadcrumb>
Copy link
Owner

Choose a reason for hiding this comment

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

👍

</Col>
</Row>
);
};
Copy link
Owner

Choose a reason for hiding this comment

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

👍

</Col>
</Row>
);
};
Copy link
Owner

Choose a reason for hiding this comment

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

👍

const [isActive, setIsActive] = useState(false);

return (
<ThemeProvider theme={theme}>
Copy link
Owner

Choose a reason for hiding this comment

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

Motyw najlepiej zdefiniować jak najwyżej w strukturze komponentów (np. w App), aby nie trzeba było go definiować wielokrotnie dla każdego elementu. Rozumiem, że w tym zadaniu było tak wygodniej, ale już w projekcie nalezy to zrobić inaczej ;)




const theme = {
Copy link
Owner

Choose a reason for hiding this comment

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

Docelowo w projekcie mamy 1 motyw. Ewentualnie można definiować wartości domyślne tutaj.
Pamiętaj, że motyw to ma być rozwiązanie, które pozwoli Ci nadać kompletnie nowe "kolory i wielkości" bez potrzeby modyfikowania plików "standardowych"

href="#"
>
{title}
<div className="tab__content">{isActive && children}</div>
Copy link
Owner

Choose a reason for hiding this comment

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

Zdecydowanie lepiej byłoby zdefiniować kontent poza element a - aby nie odziedziczyć stylu po nim ;)

};
return (
<>
<StyledTab
Copy link
Owner

Choose a reason for hiding this comment

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

Gdzie odpowiednie ramki dla "zakładek"? :>


const Card = ({children}) => {
return (
<div>{children}</div>
Copy link
Owner

Choose a reason for hiding this comment

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

Dlaczego ten div nie ma odpowiedniego obramowania jak i img nie wypełnia jego zawartości?

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

Comments