Skip to content

Commit

Permalink
Fixed elements class name
Browse files Browse the repository at this point in the history
  • Loading branch information
vadym-valchak committed May 7, 2024
1 parent 0be2560 commit 0fff24c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 34 deletions.
64 changes: 34 additions & 30 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,82 +29,86 @@
/>
</head>
<body>
<!-- <h1>Moyo header</h1> -->
<header class="header">
<div class="logo">
<a
class="logo-link"
href="#"
>
<img
class="logo-img"
src="./images/logo.png"
alt="logo"
/>
</a>
</div>
<a
class="header__link"
href="#"
>
<img
class="header__logo"
src="./images/logo.png"
alt="logo"
/>
</a>
<nav class="nav">
<ul class="menu-items">
<li class="menu-item">
<ul class="nav__list">
<li class="nav__item">
<a
href="#"
class="is-active menu-link"
class="is-active nav__link"
>
Apple
</a>
</li>
<li class="menu-item">

<li class="nav__item">
<a
class="menu-link"
class="nav__link"
href="#"
>
Samsung
</a>
</li>
<li class="menu-item">

<li class="nav__item">
<a
class="menu-link"
class="nav__link"
href="#"
>
Smartphones
</a>
</li>
<li class="menu-item">

<li class="nav__item">
<a
class="menu-link"
class="nav__link"
href="#"
data-qa="hover"
>
Laptops & Computers
</a>
</li>
<li class="menu-item">

<li class="nav__item">
<a
class="menu-link"
class="nav__link"
href="#"
>
Gadgets
</a>
</li>
<li class="menu-item">

<li class="nav__item">
<a
class="menu-link"
class="nav__link"
href="#"
>
Tablets
</a>
</li>
<li class="menu-item">

<li class="nav__item">
<a
class="menu-link"
class="nav__link"
href="#"
>
Photo
</a>
</li>
<li class="menu-item">

<li class="nav__item">
<a
class="menu-link"
class="nav__link"
href="#"
>
Video
Expand Down
7 changes: 3 additions & 4 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ body {
padding: 0 50px;
}

.menu-items {
.nav__list {
display: flex;
list-style: none;
column-gap: 20px;
Expand All @@ -36,12 +36,11 @@ body {
margin-right: 0;
}

.menu-link {
.nav__link {
display: block;
position: relative;
align-items: center;
font-weight: 500;
font-style: normal;
line-height: 60px;
color: black;
text-transform: uppercase;
Expand All @@ -60,6 +59,6 @@ body {
}

.is-active,
.menu-link:hover {
.nav__link:hover {
color: var(--active-menu);
}

0 comments on commit 0fff24c

Please sign in to comment.