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

Develop #5360

Closed
wants to merge 15 commits into from
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://github.com/Krrampuss/layout_moyo-header)
- [TEST REPORT LINK](https://github.com/Krrampuss/layout_moyo-header)

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

Expand Down
90 changes: 89 additions & 1 deletion src/index.html
Krrampuss marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,96 @@
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=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"
Krrampuss marked this conversation as resolved.
Show resolved Hide resolved
rel="stylesheet"
/>
Krrampuss marked this conversation as resolved.
Show resolved Hide resolved
</head>
<body>
<h1>Moyo header</h1>
<header>
<a href="#">
<img
src="images/logo.png"
alt="logo"
/>
Krrampuss marked this conversation as resolved.
Show resolved Hide resolved
Krrampuss marked this conversation as resolved.
Show resolved Hide resolved
</a>
<nav class="nav">
<ul class="nav__list">
<li class="nav__list__item">
<a
class="nav__list__item__link is-active"
href="#"
>
Krrampuss marked this conversation as resolved.
Show resolved Hide resolved
Apple
</a>
</li>
<li class="nav__list__item">
<a
class="nav__list__item__link"
href="#"
>
Samsung
</a>
</li>
<li class="nav__list__item">
<a
class="nav__list__item__link"
href="#"
>
Smartphones
</a>
</li>
<li class="nav__list__item">
<a
class="nav__list__item__link"
data-qa="hover"
href="#"
>
Laptops & Computers
</a>
</li>
<li class="nav__list__item">
<a
class="nav__list__item__link"
href="#"
>
Gadgets
</a>
</li>
<li class="nav__list__item">
<a
class="nav__list__item__link"
href="#"
>
Tablets
</a>
</li>
<li class="nav__list__item">
<a
class="nav__list__item__link"
href="#"
>
Photo
</a>
</li>
<li class="nav__list__item">
<a
class="nav__list__item__link"
href="#"
>
Video
</a>
</li>
</ul>
Krrampuss marked this conversation as resolved.
Show resolved Hide resolved
</nav>
</header>
</body>
</html>
68 changes: 68 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,71 @@
* {
margin: 0;
padding: 0;
}
Krrampuss marked this conversation as resolved.
Show resolved Hide resolved

html {
--header-link-color: #00acdc;
}

body {
margin: 0;
}

img {
display: block;
}

header {
display: flex;
Krrampuss marked this conversation as resolved.
Show resolved Hide resolved
justify-content: space-between;
align-items: center;
padding: 0 50px;
font-family: Roboto, sans-serif;
font-size: 12px;
font-weight: 500;
}

.nav__list {
display: flex;
list-style: none;
margin: 0;
padding: 0;
}

.nav__list__item {
Krrampuss marked this conversation as resolved.
Show resolved Hide resolved
margin-right: 20px;
}

.nav__list__item:last-child {
margin-right: 0;
}

.nav__list__item__link {
Krrampuss marked this conversation as resolved.
Show resolved Hide resolved
display: flex;
align-items: center;
height: 60px;
color: #000;
text-decoration: none;
text-transform: uppercase;
}

.nav__list__item__link:hover {
color: var(--header-link-color);
}

.is-active {
position: relative;
color: var(--header-link-color);
}

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