Skip to content
Open

Develop #7503

Show file tree
Hide file tree
Changes from all commits
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
8 changes: 4 additions & 4 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 the `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://Thiago-BRoca.github.io/layout_moyo-header/)
- [TEST REPORT LINK](https://Thiago-BRoca.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 All @@ -39,5 +39,5 @@ The page should match the design Pixel Perfect: all the sizes, colors and distan
- [ ] **CSS Variable** is used for a blue color
- [ ] Pseudo-element is used for a blue line below the active link
- [ ] Code follows all the [Code Style Rules ❗️](./checklist.md)
- [ ] The Google Fonts Configuration follows requirements.
![alt text](./assets/image.png)
- [ ] The Google Fonts Configuration follows requirements.
![alt text](./assets/image.png)
99 changes: 97 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
<!doctype html>
<html lang="en">
<head>
<link
rel="preconnect"
href="https://fonts.googleapis.com"
/>
<link
rel="preconnect"
href="https://fonts.gstatic.com"
crossorigin="anonymous"
/>
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap"
rel="stylesheet"
/>

<title>Moyo Header</title>

<meta charset="UTF-8" />
<meta
name="viewport"
Expand All @@ -10,13 +26,92 @@
http-equiv="X-UA-Compatible"
content="ie=edge"
/>
<title>Moyo header</title>
<link
rel="stylesheet"
href="./style.css"
/>
</head>
<body>
<h1>Moyo header</h1>
<header class="header">
<div class="container">
<a href="#">
<img
src="./images/logo.png"
alt="moyo logo"
class="logo"
/>
</a>

<nav>
<ul class="nav_list">
<li class="nav_items">
<a
class="nav_links is-active"
href="#"
>
Apple
</a>
</li>
<li class="nav_items">
<a
class="nav_links"
href="#"
>
Samsung
</a>
</li>
<li class="nav_items">
<a
class="nav_links"
href="#"
>
Smartphones
</a>
</li>
<li class="nav_items">
<a
class="nav_links"
data-qa="hover"
href="#"
>
Laptops & Computers
</a>
</li>
<li class="nav_items">
<a
class="nav_links"
href="#"
>
Gadgets
</a>
</li>
<li class="nav_items">
<a
class="nav_links"
href="#"
>
Tablets
</a>
</li>
<li class="nav_items">
<a
class="nav_links"
href="#"
>
Photo
</a>
</li>
<li class="nav_items">
<a
class="nav_links"
href="#"
>
Video
</a>
</li>
</ul>
</nav>
</div>
</header>
</body>
</html>
76 changes: 76 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,79 @@
html {
margin: 0;
font-family: Roboto, Arial, sans-serif;
font-style: normal;
font-weight: 500;

--color-primary: #00acdc;
}

body {
margin: 0;
}

.header {
margin: 0;
background-color: #fff;
}

.container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1140px;
margin: 0 auto;
padding: 0 50px;
}

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

.nav_items:not(:last-child) {
margin-right: 20px;
}

.nav_links {
height: 60px;
line-height: 60px;
font-size: 12px;
display: inline-block;
text-transform: uppercase;
}

.logo {
display: flex;
}

.nav_links:link {
text-decoration: none;
color: black;
}

.nav_links:visited {
text-decoration: none;
color: black;
}

.nav_links:hover {
color: var(--color-primary);
}

.nav_links.is-active {
position: relative;
color: var(--color-primary);
}

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