Skip to content

Commit

Permalink
add moyo-header
Browse files Browse the repository at this point in the history
  • Loading branch information
SerhiyPaziyc committed Sep 1, 2024
1 parent e60c4a1 commit d5e1851
Show file tree
Hide file tree
Showing 3 changed files with 169 additions and 4 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://SerhiyPaziyc.github.io/layout_moyo-header/)
- [TEST REPORT LINK](https://SerhiyPaziyc.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
96 changes: 94 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,111 @@
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
content="width=device-width, initial-scale=1.0"
/>
<meta
http-equiv="X-UA-Compatible"
content="ie=edge"
/>
<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:wght@500&display=swap"
rel="stylesheet"
/>
<title>Moyo header</title>
<link
rel="stylesheet"
href="./style.css"
/>
</head>
<body>
<h1>Moyo header</h1>
<header class="header">
<a
href="index.html"
class="container_logo"
>
<img
class="logo"
src="images/logo.png"
alt="MOYO"
/>
</a>
<nav class="container_menu">
<ul class="menu">
<li>
<a
class="link is-active"
href="#"
>
APPLE
</a>
</li>
<li>
<a
class="link"
href="#"
>
SAMSUNG
</a>
</li>
<li>
<a
class="link"
href="#"
>
SMARTPHONES
</a>
</li>
<li>
<a
class="link"
href="#"
data-qa="hover"
>
LAPTOPS & COMPUTERS
</a>
</li>
<li>
<a
class="link"
href="#"
>
GADGETS
</a>
</li>
<li>
<a
class="link"
href="#"
>
TABLETS
</a>
</li>
<li>
<a
class="link"
href="#"
>
PHOTO
</a>
</li>
<li>
<a
class="link"
href="#"
>
VIDEO
</a>
</li>
</ul>
</nav>
</header>
</body>
</html>
73 changes: 73 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,76 @@
body {
margin: 0;
font-family: Roboto, 'Times New Roman', serif;
}

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

.logo {
width: 40px;
height: 40px;
padding: 3px 0 0;
}

.menu {
font-size: 12px;
display: flex;
list-style: none;
margin: 0;
padding: 0;
}

.link {
position: relative;
margin: 0 10px;
height: 60px;
align-items: center;
text-decoration: none;
color: #000;
display: flex;
}

.menu li:first-child a {
margin-left: 0;
}

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

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

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

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

.link:hover::after {
background-color: rgba(0, 172, 220, 1);
}

.container_logo {
width: 40px;
}

.free {
flex-grow: 1;
}

0 comments on commit d5e1851

Please sign in to comment.