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

add moyo #4731

Open
wants to merge 3 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@mate-academy/bemlint": "latest",
"@mate-academy/eslint-config": "0.0.27",
"@mate-academy/linthtml-config": "latest",
"@mate-academy/scripts": "^1.7.2",
"@mate-academy/scripts": "^1.7.3",
"@mate-academy/stylelint-config": "latest",
"@parcel/transformer-sass": "2.10.2",
"backstopjs": "^6.2.2",
Expand Down
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://yanamomot.github.io/layout_moyo-header/)
- [TEST REPORT LINK](https://yanamomot.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
98 changes: 97 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,104 @@
rel="stylesheet"
href="./style.css"
/>
<link
rel="preconnect"
href="https://fonts.googleapis.com"
/>
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap"
rel="stylesheet"
/>
</head>

<body>
<h1>Moyo header</h1>
<header class="header">
<a
class="logo"
href="#home"
>
<img
src="images/logo.png"
alt="logo"
class="logo__img"
/>
</a>
<nav class="nav">
<ul class="nav__list">
<li class="nav__item">
<a
class="nav__link is-active"
href="#apple"
>
Apple
</a>
</li>

<li class="nav__item">
<a
class="nav__link"
href="#samsung"
>
Samsung
</a>
</li>

<li class="nav__item">
<a
class="nav__link"
href="#smartphones"
>
Smartphones
</a>
</li>

<li class="nav__item">
<a
class="nav__link blue"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see class blue definition anywhere

href="#laptopsAndComputers"
data-qa="hover"
>
Laptops & Computers
</a>
</li>

<li class="nav__item">
<a
class="nav__link"
href="#gadgets"
>
Gadgets
</a>
</li>

<li class="nav__item">
<a
class="nav__link"
href="#tablets"
>
Tablets
</a>
</li>

<li class="nav__item">
<a
class="nav__link"
href="#photo"
>
Photo
</a>
</li>

<li class="nav__item">
<a
class="nav__link"
href="#video"
>
Video
</a>
</li>
</ul>
</nav>
</header>
</body>
</html>
54 changes: 54 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,57 @@
html {
font-family: Roboto, sans-serif;
}

body {
margin: 0;
padding: 0;
}

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

.logo__img {
display: block;
}

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

.nav__link {
display: block;
margin-right: 10px;
line-height: 60px;
height: 60px;
color: black;
text-decoration: none;
text-transform: uppercase;
font-size: 12px;
font-weight: 500;
}

.nav__link:hover {
color: rgba(0, 172, 220, 1);
}

.is-active {
position: relative;
color: rgba(0, 172, 220, 1);
}

.is-active::after {
position: absolute;
display: block;
content: '';
height: 4px;
background-color: rgba(0, 172, 220, 1);
width: 100%;
border-radius: 8px;
}
Loading