Skip to content

Commit

Permalink
add task solution
Browse files Browse the repository at this point in the history
  • Loading branch information
coroh committed Dec 30, 2024
1 parent f2d4745 commit 72f0e10
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 3 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,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://coroh.github.io/layout_moyo-header/)
- [TEST REPORT LINK](https://coroh.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
67 changes: 66 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,73 @@
rel="stylesheet"
href="./style.css"
/>
<link
href="https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap&subset=cyrillic"
rel="stylesheet"
/>
</head>
<body>
<h1>Moyo header</h1>
<header class="menu-wraper">
<a
href="https://www.moyo.ua/"
class="menu-logo image-logo"
>
<img
src="images/logo.png"
alt="moyo logo"
/>
</a>
<nav class="menu-list">
<a
href="#"
class="menu-item is-active"
>
Apple
</a>
<a
href="#"
class="menu-item"
>
Samsung
</a>
<a
href="#"
class="menu-item"
>
Smartphones
</a>
<a
href="#"
data-qa="hover"
class="menu-item"
>
Laptops & Computers
</a>
<a
href="#"
class="menu-item"
>
Gadgets
</a>
<a
href="#"
class="menu-item"
>
Tablets
</a>
<a
href="#"
class="menu-item"
>
Photo
</a>
<a
href="#"
class="menu-item"
>
Video
</a>
</nav>
</header>
</body>
</html>
55 changes: 55 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,58 @@
* {
box-sizing: border-box;
}

body {
margin: 0;
font-family: Roboto, sans-serif;
}

.menu-wraper {
display: flex;
justify-content: space-between;
padding: 0 50px;
height: 60px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.menu-logo,
.menu-list {
display: flex;
align-items: center;
}

.menu-item {
margin-right: 20px;
padding: 23px 0;
line-height: 14px;
text-decoration: none;
font-weight: 500;
font-size: 12px;
font-style: normal;
text-transform: uppercase;
color: #000;
}

.menu-item:last-child {
margin-right: 0;
}

.menu-item:hover {
color: #00acdc;
}

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

.is-active::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 4px;
border-radius: 8px;
background-color: #00acdc;
}

0 comments on commit 72f0e10

Please sign in to comment.