Skip to content

resolved tasks 1-5#207

Open
marrcelp wants to merge 21 commits into
devmentor-pl:masterfrom
marrcelp:master
Open

resolved tasks 1-5#207
marrcelp wants to merge 21 commits into
devmentor-pl:masterfrom
marrcelp:master

Conversation

@marrcelp

Copy link
Copy Markdown

No description provided.

@devmentor-pl devmentor-pl left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Marcelu,

Całość prezentuje się dobrze, ale potrzeba parę poprawek.
Postaraj się je zrobić - jeśli coś jest nie jasne, to pisz na Slacku albo omów się na spotkanie :)

Comment thread 01/index.html
© All rights reserved.
</div>
</footer>

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

Comment thread 02/styles/index.css

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

Comment thread 03/styles/style.css Outdated
}

.child--last {
max-width: calc(40% - 10px);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Zwróć uwagę, że ostatni nie musi mieć -10px - masz tylko 2 odstępy tj. między 1 i 2 oraz między 2 i 3.
Gdy zmienisz na 40% to w pierwszym zadaniu nie zadziała dlatego, że masz "białe znaki". Wystarczy, że je usuniesz i będzie ok. Po prostu elementy inline (czy też inline-block) interpretują białe znaki co oznacza, że 30% + 30% +40%+ enter, daje więcej niż 100% :)

Comment thread 04/style.css

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Zabrakło mi w tym pliku rozwijania tj. kodu, który po najechaniu zamieni display: none na display: block (lub podobny). Można to zrealizować przez np.

li:hover > .dropdown {
    display: block;
}

Czyli należy to rozumieć jako: każdy najechany li, który posiada jako dziecko .dropdown ma ma ten element posiadać "display: block".

Dodatkowy problem jest taki, że Twoje ul ma ustawioną wysokość, która jest mniejsza niż li i taki li traci efekt hover, co nie pozwala utrzymać efektu rozwiniaja. Postaraj się to poprawić.

Comment thread 04/style.css Outdated

}

.navbar__element:nth-child(2):active > .dropdown,

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Raczej staramy się pisać bardziej uniwersalne selektory zamiast dokładnie wskazywać :nth-child(2), co jeśli klient będzie chciał rozwinąć sobie element "kontakt". Będziemy specjalnie dopisywać CSS do takiego rozwiązania?

Comment thread 05/index.html Outdated
</div>
</nav>

<div class="hero">

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Raczej użyłbym section

Comment thread 05/index.html Outdated
</p>
</div>

<div class="hero__element">

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Skoro mamy h1 i p to raczej dałbym tutaj article

@devmentor-pl devmentor-pl left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Marcelu,

Super, o to chodziło! 👍

Comment thread 03/index.html
Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis praesentium in possimus!</div>
<div class="child child--last">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Delectus, iure?</div>
<div class="child child--first">Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo, asperiores.</div><div class="child child--middle">Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis praesentium in possimus!</div><div class="child child--last">Lorem ipsum dolor sit amet consectetur adipisicing elit. Delectus, iure?</div>

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Można też dodać komentarze, aby było to bardziej czytelne tj.

    <div>dsadas</div><!--
    -->div>...

W takim wypadku zawartość komentarze nie jest interpretowana przez przeglądarkę.

Comment thread 03/styles/style.css
.child--last {
max-width: calc(40% - 10px);
/* max-width: calc(40% - 10px); */
max-width: 40%;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

Comment thread 05/index.html
</nav>

<div class="hero">
<section class="hero">

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

Comment thread 05/index.html
<div class="hero__container">

<div class="hero__element">
<article class="hero__element">

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

@devmentor-pl devmentor-pl left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

Comment thread 04/index.html
</li>

<li class="dropdown__item">
<li class="dropdown__item dropdown__item--children">

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

Comment thread 04/style.css


.navbar__element:hover .dropdown {
display: block;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

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