Skip to content

TASK-6 create second landing pade#6

Open
pollyv wants to merge 9 commits intomainfrom
TASK-6
Open

TASK-6 create second landing pade#6
pollyv wants to merge 9 commits intomainfrom
TASK-6

Conversation

@pollyv
Copy link
Copy Markdown
Owner

@pollyv pollyv commented Jun 10, 2024

This landing page has a structured and modern layout that includes several key sections. At the top there is a site header with a logo, navigation and a call to action (CTA) button. The main background contains an image that gives the site visual appeal. The “Hero” section includes a large headline, text, and two CTA buttons that call to action. This is followed by blocks with the features and benefits of the product, equipped with icons and descriptions. The details section contains information about specific offers with buttons for interaction. The page ends with a section with prices and a call to purchase, as well as a footer with information about the company and social network icons.

Copy link
Copy Markdown

@L1s-is L1s-is left a comment

Choose a reason for hiding this comment

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

Все хорошо, обрати внимание на наличие адаптива, именование классов по БЭМ и верное использование тегов

}

.header__logo {
padding-right: 66px;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Это здесь лишнее https://imgur.com/NZn1eYq

Comment thread landing_page/index.html
<meta name="theme-color" content="#ffffff" />
</head>
<body>
<div class="background__container">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Нарушение методологии БЭМ, элемент background__container не может быть без блока background. Да и в целом немного странное решение использовать отдельный пустой див ради фона. Можно было просто навесить условный .background на body, либо сделать это изображение фоновым для первой секции, и абсолютно спозиционировать шапку сайта, либо с помощью transform спозиционировать первую секцию на уровень шапки, в общем, вариантов много)

body {
min-inline-size: 375px;
max-inline-size: 1440px;
margin: 0 auto;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Не нужно навешивать подобные стили на body, можно было сделать условно класс-обертку для задания ширины контента

Comment thread landing_page/index.html
<main>
<section class="hero">
<div class="hero__content">
<h2 class="hero__title">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Наверно это все же h1 должен быть. Страница не должна оставаться без заголовка первого уровня

Comment thread landing_page/index.html
Introduce Your Product Quickly & Effectively
</h2>
<div class="hero__text">
<p class="hero__text-one">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Не используй цифры в именовании классов. В целом это лишние классы, раз они не задают никаких стилей

Comment thread landing_page/index.html
</section>
<!--detailes-->
<section class="detailes">
<article class="detaile detaile__lotos">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Наверно имелся в виду модификатор detaile detaile--lotos ? Также присутствует опечатка в слове detail

Comment thread landing_page/index.html
<!--detailes-->
<section class="detailes">
<article class="detaile detaile__lotos">
<div class="detaile__image"><img class="detaile__image-pic detaile__lotos-image-pic" src="./images/detailes_lotos.png" alt="image"></div>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Бессмысленно в атрибуте alt писать "image" или что-то подобное. Содержимое alt выводится, если не подгрузилась картинка, он нужен, чтобы описать то, что на картинке происходит, а что это image(изображение) итак понятно

Если lotos это модификатор (а он должен быть им), то так именовать нельзя detaile__lotos-image-pic
Можно стилизовать как .detail--lotos .detail__image-pic {}

Comment thread landing_page/index.html
</section>
<!--detailes-->
<section class="detailes">
<article class="detaile detaile__lotos">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Это скорее section, поскольку article является самостоятельным контентом, который можно вставить в любую часть сайта без потери смысла

Comment thread landing_page/index.html
</li>
</ul>
</nav>
<nav class="footer__socials">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Здесь не может использоваться тег nav, поскольку в nav может храниться только навигация по сайту, список социальных сетей это явно не то)

Comment thread landing_page/index.html
<nav class="header__nav nav">
<ul class="header__nav-list nav-list">
<li class="header__nav-item nav-item">
<a href="#" class="header__nav-link nav-link">Home</a>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nav-list, nav-item, nav-link - это все не по БЭМ, должно быть nav__list итд по аналогии

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