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 header #4862

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 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
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/backstop-config": "latest",
"@mate-academy/bemlint": "latest",
"@mate-academy/linthtml-config": "latest",
"@mate-academy/scripts": "^1.7.3",
"@mate-academy/scripts": "^1.8.1",
"@mate-academy/stylelint-config": "latest",
"backstopjs": "6.2.2",
"jest": "^29.7.0",
Expand Down
40 changes: 29 additions & 11 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,37 @@
<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"
/>
<meta
http-equiv="X-UA-Compatible"
content="ie=edge"
/>
<title>Moyo header</title>
<link
rel="stylesheet"
href="./style.css"
content="width=device-width, initial-scale=1.0"
/>
<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" rel="stylesheet">

<link rel="stylesheet" href="style.css">
<title>MOYO</title>
</head>
<body>
<h1>Moyo header</h1>
<nav class="navbar">
<div class="container">
<img
src="./images/logo.png"
alt="moyo_icon"
class="navbar-icon">
</div>

<div class="navbar-wrap">
<ul class="navbar-menu">
<li><a href="#" class="nav__link active">Apple</a></li>
<li><a href="#">Samsung</a></li>
<li><a href="#">Smartphones</a></li>
<li><a href="#" class="nav__link active">Laptops & Computers</a></li>
<li><a href="#">Gadgets</a></li>
<li><a href="#">Tablets</a></li>
<li><a href="#">Photo</a></li>
<li><a href="#">Video</a></li>
</ul>
</div>
</nav>
<span class="line"></span>
</body>
</html>
60 changes: 59 additions & 1 deletion src/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,61 @@
body {
margin: 0;
font-family: Roboto, sans-serif;
font-weight: 400;
font-style: normal;
font-size: 12px;
}

.navbar {
display: flex;
justify-content: space-between;
align-items: center;
width: 1200px;
height: 60px;
}

.navbar-menu {
list-style-type: none;
padding-left: 0;
margin-bottom: 0;
padding-right: 50px;
line-height: 50%;
}

a {
cursor: pointer;
color: #000;
text-transform: uppercase;

}

.navbar-menu li a {
display: inline-block;
text-decoration: none;
margin-left: 20px;
}

.navbar-menu li {
display: inline-block;
}

img {
cursor: pointer;
}

.line {
display: block;
width: 37px;
height: 4px;
background-color: #00ACDC;
border-radius: 8px;
margin-left: 498px;
}

.container {
margin-left: 50px;
line-height: 50%;
}

.active {
color: #00ACDC;
}
Loading