Skip to content

Commit

Permalink
add files for test
Browse files Browse the repository at this point in the history
  • Loading branch information
internal77 committed Sep 19, 2024
1 parent e60c4a1 commit 394fe2a
Show file tree
Hide file tree
Showing 3 changed files with 150 additions and 2 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://internal77.github.io/layout_moyo-header/)
- [TEST REPORT LINK](https://internal77.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: 84 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<!doctype html>
<html lang="en">
<head>
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@500;700&display=swap"
rel="stylesheet"
/>
<meta charset="UTF-8" />
<meta
name="viewport"
Expand All @@ -18,5 +22,85 @@
</head>
<body>
<h1>Moyo header</h1>
<header class="header">
<a
href="/"
class="logo"
>
<img
src="images/logo.png"
alt="Company Logo"
/>
</a>
<nav>
<ul class="nav_list">
<li class="nav_item">
<a
href="/apple"
class="nav_link is-active"
>
APPLE
</a>
</li>
<li class="nav_item">
<a
href="/samsung"
class="nav_link"
>
SAMSUNG
</a>
</li>
<li class="nav_item">
<a
href="/smartphones"
class="nav_link"
>
SMARTPHONES
</a>
</li>
<li class="nav_item">
<a
href="/laptops"
class="nav_link"
data-qa="hover"
>
LAPTOPS & COMPUTERS
</a>
</li>
<li class="nav_item">
<a
href="/gadgets"
class="nav_link hover"
>
GADGETS
</a>
</li>
<li class="nav_item">
<a
href="/tablets"
class="nav_link"
>
TABLETS
</a>
</li>
<li class="nav_item">
<a
href="/photo"
class="nav_link"
>
PHOTO
</a>
</li>
<li class="nav_item">
<a
href="/video"
class="nav_link"
>
VIDEO
</a>
</li>
</ul>
</nav>
</header>
</body>
</html>
64 changes: 64 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,67 @@
html {
font-family: Roboto, sans-serif;
}

body {
margin: 0;
}

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

.logo {
display: flex;
margin: 0;
padding: 0;
justify-content: center;
}

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

.nav_item {
font-size: 12px;
line-height: 14px;
font-weight: 500;
text-transform: uppercase;
margin-left: 20px;
}

.nav_item:first-child {
margin-left: 0;
}

.nav_link {
display: block;
line-height: 60px;
color: black;
text-decoration: none;
}

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

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

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

0 comments on commit 394fe2a

Please sign in to comment.