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

completed task #5362

Open
wants to merge 4 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
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://nadiia21.github.io/layout_moyo-header/)
- [TEST REPORT LINK](https://nadiia21.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
84 changes: 83 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,88 @@
/>
</head>
<body>
<h1>Moyo header</h1>
<header class="header">
<a
class="logo_link"
href="index.html"
>
<img
class="logo_img"
src="./images/logo.png"
nadiia21 marked this conversation as resolved.
Show resolved Hide resolved
alt="logo"
nadiia21 marked this conversation as resolved.
Show resolved Hide resolved
/>
</a>
<nav class="nav">
<ul class="nav_list">
nadiia21 marked this conversation as resolved.
Show resolved Hide resolved
<li class="nav_item">
<a
href="#"
class="is-active nav_link"
>
Apple
</a>
nadiia21 marked this conversation as resolved.
Show resolved Hide resolved
</li>
<li class="nav_item">
<a
href="#"
class="nav_link"
>
Samsung
nadiia21 marked this conversation as resolved.
Show resolved Hide resolved
</a>
</li>
<li class="nav_item">
<a
href="#"
class="nav_link"
>
Smartphones
nadiia21 marked this conversation as resolved.
Show resolved Hide resolved
</a>
</li>
<li
class="nav_item"
data-qa="hover"
>
<a
href="#"
class="nav_link"
>
Laptops & Computers
nadiia21 marked this conversation as resolved.
Show resolved Hide resolved
</a>
</li>
<li class="nav_item">
<a
href="#"
class="nav_link"
>
Gadgets
nadiia21 marked this conversation as resolved.
Show resolved Hide resolved
</a>
</li>
<li class="nav_item">
<a
href="#"
class="nav_link"
>
Tablets
nadiia21 marked this conversation as resolved.
Show resolved Hide resolved
</a>
</li>
<li class="nav_item">
<a
href="#"
class="nav_link"
>
Photo
nadiia21 marked this conversation as resolved.
Show resolved Hide resolved
</a>
</li>
<li class="nav_item">
<a
href="#"
class="nav_link"
>
Video
nadiia21 marked this conversation as resolved.
Show resolved Hide resolved
</a>
</li>
</ul>
</nav>
nadiia21 marked this conversation as resolved.
Show resolved Hide resolved
</header>
</body>
</html>
69 changes: 69 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,72 @@
@import 'https://fonts.googleapis.com/css2?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';

:root {
--color: #00acdc;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
nadiia21 marked this conversation as resolved.
Show resolved Hide resolved
}

body {
margin: 0;
font-family: Roboto, 'Open Sans', 'Helvetica Neue', sans-serif;
nadiia21 marked this conversation as resolved.
Show resolved Hide resolved
}

.header {
padding-inline: 50px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}

.nav_list {
nadiia21 marked this conversation as resolved.
Show resolved Hide resolved
gap: 20px;
display: flex;
margin: 0;
padding: 0;
flex-direction: row;
list-style: none;
}

.nav_link {
display: flex;
align-items: center;
justify-content: center;
height: 60px;
text-decoration: none;
font-size: 12px;
color: #000;
font-weight: 500;
text-transform: uppercase;
}

.nav_item {
position: relative;
}

.is-active {
color: var(--color);
}

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

.nav_link:hover {
color: var(--color);
}

.logo_img {
display: block;
}
Loading