Skip to content

Comments

finsh project#163

Open
AdamKoszela wants to merge 2 commits intodevmentor-pl:masterfrom
AdamKoszela:master
Open

finsh project#163
AdamKoszela wants to merge 2 commits intodevmentor-pl:masterfrom
AdamKoszela:master

Conversation

@AdamKoszela
Copy link
Collaborator

zrobiony projekt :)

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.

Adamie,

Kierunek jest ok 👍
Jest jednak parę ważnych rzeczy do poprawy - postaraj się je wdrożyć :)

padding-right: 75px;
margin-left: auto;
margin-right: auto;
max-width: 1150px;
Copy link
Owner

Choose a reason for hiding this comment

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

Maksymalną rozdzielczość ustawiamy dla zawartości, ale nie tła. Tło powinno być nadane elementowi o 100% szerokości, aby nie wyglądało to na ucięte - tak jak obecnie.

Zobacz jak to u mnie wygląda:
image

PS. Zobacz jeszcze komentrz do pliku CSS

index.html Outdated
</head>
<body>
<!--section first with logo menu and first content-->
<header class="header container">
Copy link
Owner

Choose a reason for hiding this comment

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

Aby rozwiązać problem, o którym piszę przy pliku CSS wystarczy zrobić coś takiego:

<header class="header">
   <div class="container">

Wtedy tło będzie na 100%, a zawartość będzie ograniczona.

styles/base.css Outdated
}
.header {
background: radial-gradient(rgb(194, 74, 126), rgb(105, 86, 235));
height: 364px;
Copy link
Owner

Choose a reason for hiding this comment

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

Lepszym rozwiązaniem jest pozwolenie, aby zawartość wypełniła element i ona określała jej wysokość - nigdy nie wiemy czy nie będzie ona większa lub mniejsza i wtedy będzie źle wyglądałą wysokość na sztywno. Jeśli potrzebujesz odstępów to robisz je przy pomocy np. padding.

styles/base.css Outdated
}
.collaborate__container {
background-color: rgb(249, 250, 250);
height: 45px;
Copy link
Owner

Choose a reason for hiding this comment

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

W większości przypadków ta wysokość jest raczej nie potrzebna.

index.html Outdated
Pick any of our super affordable pricing plans
</h2>
</div>
<div class="price__list block">
Copy link
Owner

Choose a reason for hiding this comment

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

Dość małe to wszystko wygląda:
image

Musisz wiać pod uwagę, że strona będzie oglądana na różnych rozdzielczościach. Jeśli masz mały ekran w laptopie to powinieneś obejrzeć projekt na innym monitorze i ocenić czy jest ok. Musimy pamiętać, że nie tylko my przeglądamy stronę, którą wykonujemy :)

index.html Outdated
</h2>
</div>
<div class="price__list block">
<div class="list__first">
Copy link
Owner

Choose a reason for hiding this comment

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

Zobacz sama nazwa klasy wzkzuje, żę to lista to może każdy element to li zamiast div, a ich rodzicem zrobić ul zamiast div? PS. Tak można mieć listę w liście ;)

index.html Outdated
Comment on lines 119 to 121
<h4 class="list__offer bold">
Up to 7 Projects 2 Additional Developers
</h4>
Copy link
Owner

Choose a reason for hiding this comment

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

Ten element to lista elementów wchodzących w skład pakietu więc zrobiłbym:

<ul>
  <li>Up to 7 Projects</li>
  <li>2 Additional Developers</li>
   ...
</ul>

index.html Outdated
Comment on lines 128 to 130
<h4 class="list__offer bold">
Up to 7 Projects 2 Additional Developers
</h4>
Copy link
Owner

Choose a reason for hiding this comment

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

Ułatwiłeś sobie trochę, bo ta lista w każdym pakiecie jest dłuższa ;P

index.html Outdated
<h3 class="member__description light">
The one that puts it all together
</h3>
<h4 class="member__contact">
Copy link
Owner

Choose a reason for hiding this comment

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

Czy faktycznie aż tyle tych nagłówków jest tutaj potrzebnych? Zdecydowanie zrezygnowałbym z h4, może nawet h3 na rzecz odpowiednio div oraz p

index.html Outdated
<div class="specifications__table--background">
<img
src="/images/responsive.svg"
class="specifications__table--img"
Copy link
Owner

Choose a reason for hiding this comment

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

Jesli używamy modyfikatora z BEM to powinien on występować razme z Elementem czyli tutaj:
specifications__table specifications__table--img. Więcej znajdziesz tutaj: https://devmentor.pl/b/metodologia-bem-w-css-i-sass

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.

Adamie,

Zdecydowanie lepiej! Gratuluję!
Zostawiłem parę drobnych uwag :)

<img class="ads__img" src="images/screen.png" />
</aside>
<header class="header">
<div class="header_container container">
Copy link
Owner

Choose a reason for hiding this comment

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

Tutaj raczej 2x _ czyli header__container. Jeśli chcesz mieć nazwę z 2 słów to użyj - tj. header-container

Beautiful Free Nova <br />
template.
</h1>
<h2 class="article__text regular">
Copy link
Owner

Choose a reason for hiding this comment

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

Tutaj raczej użyłbym samego p- ale nie jest to błąd ;)

A top notch premium quality<br />
template for your next web <br />project.
</h2>
<h3>
Copy link
Owner

Choose a reason for hiding this comment

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

Natomiast tutaj nie używałbym już h3 - to raczej normalny button, nie trzeba go "zaznaczać" przez nagłówek.

Comment on lines +141 to +143
<div class="price__list--text regular">
Up to 25 Projects 2 Additional Develepers Unlimited Support
</div>
Copy link
Owner

Choose a reason for hiding this comment

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

Tutaj raczej zrobiłbym ul > li bo to lista elementów pakietu cenowego

margin-left: auto;
margin-right: auto;
max-width: 1150px;
padding: 10px 20px;
Copy link
Owner

Choose a reason for hiding this comment

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

Tutaj jeszcze zabrakło margin: 0 auto, aby wyśrodkować zawartość. Na mniejszym ekranie tego nie widać, ale jak masz większy to lepiej, aby odstępy pojawiły się po bokach niż całość była przykjelona do lewego boku.

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