Skip to content

add static web page based on Webscope project#187

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

add static web page based on Webscope project#187
MagdalenaKoltuniak wants to merge 2 commits intodevmentor-pl:masterfrom
MagdalenaKoltuniak:master

Conversation

@MagdalenaKoltuniak
Copy link
Collaborator

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.

Magdo,

Projekt prezentuje się bardzo dobrze! 👍
Zostawiłem parę mniej istotnych uwag w komentarzach, które głównie skupiają się na semantyce ;)

styles/index.css Outdated
height: 100px;
}

.header__logo img {
Copy link
Owner

Choose a reason for hiding this comment

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

Jeśli korzystamy z BEM to nawet taki img powinien mieć klasę :)

index.html Outdated
Comment on lines 22 to 28
<nav class="header__menu">
<ul class="header__menu-list">
<li><a class="header__menu-link" href="">The Team</a></li>
<li><a class="header__menu-link" href="">Pricing</a></li>
<li><a class="header__menu-link" href="">Features</a></li>
</ul>
</nav>
Copy link
Owner

Choose a reason for hiding this comment

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

Sporo tych "Elementów" w Bloku header. Spokojnie można dodać kolejne Bloki tj. np.

<nav class="header__menu menu"><!-- nowy blok o nazwie "menu"
    <ul class="menu__list"><!-- nowy element tego bloku o nazwie "list"

Mniejsze grupy (bloki) będą czytelniejsze.
TO co zrobiłaś to nie jest błąd, ale można trochę usprawnić :)

index.html Outdated
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap" rel="stylesheet">
Copy link
Owner

Choose a reason for hiding this comment

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

Pytanie czy faktycznie potrzebujesz rozmiarów od 100 do 900 - może nie korzystasz ze wszystkich? Warto ograniczyć do wykorzystywanych, aby obniżyć ilośc pobieranych KB.

index.html Outdated
</header>
<main>
<section class="features container">
<div class="features__header box">
Copy link
Owner

Choose a reason for hiding this comment

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

Spokojnie można użyć znacznika header - on nie jest wykorzystywany jedynie w nagłówku strony, ale może też być nagłówkiem dla sekcji lub artykułu.

index.html Outdated
</ul>
</nav>
</div>
<div class="header__cta box">
Copy link
Owner

Choose a reason for hiding this comment

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

Wrzuciłbym znacznik article, bo to jedna spójna treść, która znajduje się wew.

index.html Outdated
</div>
</section>

<section class="logos container">
Copy link
Owner

Choose a reason for hiding this comment

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

Może nawet aside - bo te grafiki to coś mniej istotnego.

index.html Outdated
</section>

<section class="pricing container">
<div class="pricing__header box">
Copy link
Owner

Choose a reason for hiding this comment

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

Też bym dał header

index.html Outdated
Comment on lines 101 to 102
<div class="pricing__options box">
<div class="pricing-card">
Copy link
Owner

Choose a reason for hiding this comment

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

Tutaj jest lista cen więc ponownie bym zrobił ul > li

index.html Outdated
</section>

<section class="team container">
<div class="team__header box">
Copy link
Owner

Choose a reason for hiding this comment

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

header

index.html Outdated
Comment on lines 139 to 140
<div class="team__members box">
<div class="team-card">
Copy link
Owner

Choose a reason for hiding this comment

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

Lista członków zespołu więc proponuję ul > li

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.

Magdo,

Zmiany są jak najbardziej ok 👍 🥇
Zostawiłem jeszcze jeden komentarz dot. pobierania fontów.

}

.header__logo img {
.header__logo .header__image {
Copy link
Owner

Choose a reason for hiding this comment

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

Teraz raczej powinno już wystarczyć samo .header__image jeśli tak nie jest to należy użyć modyfikatora tj. np. .header__image--active

}

.header__menu-list {
.menu__list {
Copy link
Owner

Choose a reason for hiding this comment

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

👍

<ul class="menu__list">
<li><a class="menu__link" href="">The Team</a></li>
<li><a class="menu__link" href="">Pricing</a></li>
<li><a class="menu__link" href="">Features</a></li>
Copy link
Owner

Choose a reason for hiding this comment

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

👍

</nav>
</div>
<div class="header__cta box">
<article class="header__cta box">
Copy link
Owner

Choose a reason for hiding this comment

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

👍

</div>
<div class="feature-card">
</li>
<li class="feature-card">
Copy link
Owner

Choose a reason for hiding this comment

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

👍

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Montserrat&display=swap" rel="stylesheet">
Copy link
Owner

Choose a reason for hiding this comment

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

W ten sposób pobieramy tylko 1 wersję fontu tj. domyślną (400). To rozwiązanie jest szybie, ale powoduje, że przeglądarka sama "pogrubia" wskazane elementy. To może spowodować, że na różnych przeglądarkach może to wyglądać inaczej. Najlepszym kompromisem jest wskazanie konkretnych fontów z jakich korzystasz tj. https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap

Jeśli potrzebujesz również wersji pochylonej to możesz zrobić to tak:
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">

</div>
<div class="pricing-card">
</li>
<li class="pricing-card">
Copy link
Owner

Choose a reason for hiding this comment

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

👍

</div>
<div class="team-card">
</li>
<li class="team-card">
Copy link
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

Comments