Skip to content

Commit

Permalink
add task solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfofff committed Nov 27, 2024
1 parent f2d4745 commit 342a6d4
Show file tree
Hide file tree
Showing 3 changed files with 173 additions and 4 deletions.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ The page should match the design Pixel Perfect: all the sizes, colors and distan

## Checklist

❗️ Replace `<your_account>` with your Github username and copy the links to `Pull Request` description:
❗️ Replace `Wolfofff` 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://Wolfofff.github.io/layout_moyo-header/)
- [TEST REPORT LINK](https://Wolfofff.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
92 changes: 91 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,98 @@
rel="stylesheet"
href="./style.css"
/>
<link
rel="preconnect"
href="https://fonts.googleapis.com"
/>
<link
rel="preconnect"
href="https://fonts.gstatic.com"
/>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
rel="stylesheet"
/>
</head>
<body>
<h1>Moyo header</h1>
<header class="navigation">
<div class="navigation__wraper">
<div class="navigation__logo">
<img
src="images/logo.png"
alt="moyo logo"
/>
</div>
</div>
<nav class="navigation__nav">
<ul class="navigation__list">
<li class="navigation__item">
<a
href="#"
class="navigation__link is-active"
>
APPLE
</a>
</li>
<li class="navigation__item">
<a
href="#"
class="navigation__link"
>
SAMSUNG
</a>
</li>
<li class="navigation__item">
<a
href="#"
class="navigation__link"
>
SMARTPHONES
</a>
</li>
<li class="navigation__item">
<a
href="#"
class="navigation__link"
data-qa="hover"
>
LAPTOPS & COMPUTERS
</a>
</li>
<li class="navigation__item">
<a
href="#"
class="navigation__link"
>
GADGETS
</a>
</li>
<li class="navigation__item">
<a
href="#"
class="navigation__link"
>
TABLETS
</a>
</li>
<li class="navigation__item">
<a
href="#"
class="navigation__link"
>
PHOTO
</a>
</li>
<li class="navigation__item">
<a
href="#"
class="navigation__link"
>
VIDEO
</a>
</li>
</ul>
</nav>
</header>
</body>
</html>
79 changes: 79 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,82 @@
body {
margin: 0;
font-family: Roboto, sans-serif;
src: url('https://fonts.googleapis.com/css?family=Roboto:500&display=swap');
}

ul {
list-style: none;
padding: 0;
margin: 0;
}

a {
text-decoration: none;
}

.navigation__wraper {
display: flex;
padding: 0 50px;
justify-content: space-between;
align-items: center;
}

.navigation__logo {
align-self: center;
justify-content: center;
height: 40px;
}

.navigation__list {
display: flex;
}

.navigation__item:not(:first-child) {
margin-left: 20px;
}

.navigation__link {
font-weight: 500;
font-size: 12px;
line-height: 14px;
text-transform: uppercase;
text-align: center;
display: flex;
align-items: center;
color: #000;
height: 60px;
}

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

.navigation__link:active {
color: #00acdc;
box-shadow: 0 4px 0 #00acdc;
}

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

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

.navigation__nav {
margin-right: 50px;
}

.navigation {
display: flex;
justify-content: space-between;
}

0 comments on commit 342a6d4

Please sign in to comment.