Skip to content

practice htm and css#198

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

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

Conversation

@Sebpie0203

Copy link
Copy Markdown

Hi. I have made all your five exercises.

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

Sebastianie,

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

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

Comment thread 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 thread 01/index.html
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

Comment thread 02/styles/index.css
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.

👍

Comment thread 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ć ;)

Comment thread 04/index.html
<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! 👍

Comment thread 04/reset.css
/* 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.

👍

Comment thread 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

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

Comment thread 05/style.css
}
.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