Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add solution #4829

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Moyo header

Create HTML page with the header using `flexbox` based on the [Figma Mockup](https://www.figma.com/file/1sog2rmfyCjnVxkeZ3ptnc/MOYO-%2F-Header?node-id=0%3A1&mode=dev).

The page should match the design Pixel Perfect: all the sizes, colors and distanced MUST be the same as on the design.
Expand Down Expand Up @@ -27,8 +28,8 @@ The page should match the design Pixel Perfect: all the sizes, colors and distan

❗️ Replace `<your_account>` with your Github username and copy the links to `Pull Request` description:

- [DEMO LINK](https://<your_account>.github.io/layout_moyo-header/)
- [TEST REPORT LINK](https://<your_account>.github.io/layout_moyo-header/report/html_report/)
- [DEMO LINK](https://seriuksergii.github.io/layout_moyo-header/)
- [TEST REPORT LINK](https://seriuksergii.github.io/layout_moyo-header/report/html_report/)

❗️ Copy this `Checklist` to the `Pull Request` description after links, and put `- [x]` before each point after you checked it.

Expand Down
88 changes: 87 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,92 @@
/>
</head>
<body>
<h1>Moyo header</h1>
<header class="header">
<div class="header__container">
<a href="#">
<img
class="header__logo"
src="images/logo.png"
alt="Logo"

Choose a reason for hiding this comment

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

Follow the standard format.
For logos, use the format: "[Organization name] logo."

image

/>
</a>
<nav class="header__menu">
<ul class="menu__list">
<li class="menu__item is-active">
<a
class="menu__link is-active"
href="#"
>
Apple
</a>
</li>

<li class="menu__item">
<a
class="menu__link"
href="#"
>
Samsung
</a>
</li>

<li class="menu__item">
<a
class="menu__link"
href="#"
>
Smartphones
</a>
</li>

<li class="menu__item">
<a
data-qa="hover"
class="menu__link"
href="#"
>
Laptops & Computers
</a>
</li>

<li class="menu__item">
<a
class="menu__link"
href="#"
>
Gadgets
</a>
</li>

<li class="menu__item">
<a
class="menu__link"
href="#"
>
Tablets
</a>
</li>

<li class="menu__item">
<a
class="menu__link"
href="#"
>
Photo
</a>
</li>

<li class="menu__item">
<a
class="menu__link"
href="#"
>
Video
</a>
</li>
</ul>
</nav>
</div>
</header>
</body>
</html>
80 changes: 80 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,83 @@
/* stylelint-disable-next-line import-notation */
@import url(https://fonts.googleapis.com/css?family=Roboto:100,100italic,300,300italic,regular,italic,500,500italic,700,700italic,900,900italic&display=swap);

a {
text-decoration: none;
}

ul,
li {
list-style: none;
}

body {
padding: 0;
margin: 0;
font-family: Roboto, sans-serif;
font-size: 12px;
font-weight: 500;
color: #000;
}

.header {
display: flex;
}

.header__container {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0 auto;
padding: 0 50px;
min-height: 60px;
}

.header__menu {
margin: 0 0 0 419px;
}

.menu__list {
display: flex;
}

.menu__item {
text-transform: uppercase;
}

.menu__item:nth-child(4) {
color: #00acdc;
}

.menu__item:not(:last-child) {
margin: 0 20px 0 0;
}

.is-active {
color: #00acdc;
}

.menu__link {
position: relative;
color: inherit;
line-height: 14px;
}

.menu__link::after {
content: '';
position: absolute;
left: 0;
bottom: -18px;
width: 100%;
height: 4px;
background-color: #fff;
border-radius: 8px;
}

.menu__link:hover {
color: #00acdc;
}

.menu__link:hover::after,
.menu__link.is-active::after {
background-color: #00acdc;
}
Loading