Skip to content

practice htm and css#198

Open
Sebpie0203 wants to merge 12 commits intodevmentor-pl:masterfrom
Sebpie0203:master
Open

practice htm and css#198
Sebpie0203 wants to merge 12 commits intodevmentor-pl:masterfrom
Sebpie0203:master

Conversation

@Sebpie0203
Copy link
Copy Markdown

Hi. I have made all your five exercises.

Copy link
Copy Markdown
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.

Sebastianie,

Kod wygląda dobrze! 👍
Trzeba jedynie poprawić zadanie 03 i popracować jeszcze trochę nad BEM :)
Szczegóły znajdziesz w komentarzach :)

01/index.html Outdated
Comment on lines +20 to +21
<li><a href="./">Element 1</a></li>
<ul>
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.

Tutaj uwaga na zagnieżdżenie. Zawsze kolejny ul jest wew. li tj. <ul> <li> <a>...</a> <ul> ... tak jak robiłeś to wyżej.

01/index.html Outdated
<span>Sebastian Pietrzykowski</span>
</div>

<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.

Często też dla img używa się figurę zamiast zwykłego div

Comment on lines +126 to +136
<div>
<p>
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Esse
reprehenderit expedita rerum, voluptatum non quidem aliquam eaque
hic amet quam?
</p>
</div>
<div>
<p>Sylvester Stallone</p>
<p>data utworzenia</p>
</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.

Osobiście napisałbym to tak:

<article>
    <p>komentarz</p>
    <footer>
        <a rel="author"></a>
        <time datetime="2008-02-14 20:00">wczoraj</time>
   </footer>
<article> 
    
  • article - bo komentarz to niezależny element|
  • footer - bo to element mniej istotny - dodatek do treści
  • rel="author" - wskazuje, że to autor
  • time - tworzę jasny znacznik czasowy dla robotów wyszukiwarek

height: 230px;
} No newline at end of file
height: 230px;
}
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.

👍

03/style.css Outdated
Comment on lines +15 to +22
.parent--inline-block {
display: flex;
}
.parent--float {
display: flex;
}
.parent--flexbox {
display: flex;
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.

Każdy z tych elementów, miał być pozycjonowany we wskazany sposób tj. inline-block czy float, a nie zawsze flexbox - trzeba poprawić ;)

<li class="nav__list--item menu__display">
<a href="#items">Items <span class="arrow-down">▼</span></a>

<ul class="nav__under">
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.

Tutaj ul-le są dobrze zagnieżdżone! 👍

/* Remove details summary webkit styles */
::-webkit-details-marker {
display: none;
} No newline at end of file
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.

👍

04/index.html Outdated
<li class="nav__list--under menu__display--right">
<a href="">Item 2<span class="arrow-right">▶</span></a>
<ul class="nav__side">
<li class="nav__list--side"><a href="">Item 2.1</a></li>
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.

Modyfikator z BEM sam nie występuje, musi być też element tj. cała klasa powinna wyglądać tak: nav__list nav__list--side. Tutaj znajdziesz więcej informacji: https://devmentor.pl/b/metodologia-bem-w-css-i-sass

05/index.html Outdated
Comment on lines +13 to +14
<div class="header__nav--logo"></div>
<div class="header__nav--menu"></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.

Podobnie jak wcześniej Modyfikator z BEM nie występuje sam, bez Elementu czy Blocku.

}
.section__about-us--two {
width: 50%;
height: 40vh;
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.

Lepiej używać do wysokości wartości minimalny niż sztywnych tj. min-height ponieważ jak pojawi się więcej treści to nie będą się mieścić i będzie to brzydko wyglądać.

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