Skip to content

Commit

Permalink
updated task solution
Browse files Browse the repository at this point in the history
  • Loading branch information
leraMeleshchenko committed Oct 28, 2024
1 parent ea81dee commit 2ed4c0c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
20 changes: 10 additions & 10 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
</head>
<body>
<header class="header">
<a href="#">
<a href="/">
<img
src="images/logo.png"
alt="logo"
alt="Moyo logo"
class="logo"
/>
</a>
Expand All @@ -46,7 +46,7 @@
<ul class="nav__list">
<li class="nav__link">
<a
href="#"
href="/apple"
class="is-active nav__item"
>
Apple
Expand All @@ -55,7 +55,7 @@

<li class="nav__link">
<a
href="#"
href="/samsung"
class="nav__item"
>
Samsung
Expand All @@ -64,7 +64,7 @@

<li class="nav__link">
<a
href="#"
href="/smartphones"
class="nav__item"
>
Smartphones
Expand All @@ -73,7 +73,7 @@

<li class="nav__link">
<a
href="#"
href="/laptop-Computers"
class="nav__item"
data-qa="hover"
>
Expand All @@ -83,7 +83,7 @@

<li class="nav__link">
<a
href="#"
href="/gadgets"
class="nav__item"
>
Gadgets
Expand All @@ -92,7 +92,7 @@

<li class="nav__link">
<a
href="#"
href="/tablets"
class="nav__item"
>
Tablets
Expand All @@ -101,7 +101,7 @@

<li class="nav__link">
<a
href="#"
href="/photo"
class="nav__item"
>
Photo
Expand All @@ -110,7 +110,7 @@

<li class="nav__link">
<a
href="#"
href="/video"
class="nav__item"
>
Video
Expand Down
6 changes: 0 additions & 6 deletions src/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,3 @@ table {
border-collapse: collapse;
border-spacing: 0;
}

a,
ul {
text-decoration: none;
color: black;
}
15 changes: 10 additions & 5 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
:root {
--blue-color: #00acdc;
}

body {
margin: 0;
}
Expand All @@ -16,6 +20,7 @@ body {
.nav__list {
display: flex;
margin: 0;
text-decoration: none;
}

.nav__link {
Expand All @@ -29,24 +34,24 @@ body {
.nav__item {
display: flex;
/* stylelint-disable-next-line font-family-name-quotes */
font-family: 'Roboto', serif;
font-family: 'Roboto', sans-serif;
color: black;
height: 60px;
font-weight: 500;
font-size: 12px;
text-decoration: none;
text-align: center;
text-transform: uppercase;
text-decoration: none;
justify-content: center;
align-items: center;
}

.nav__item:hover {
color: #00acdc;
color: var(--blue-color);
}

.is-active {
color: #00acdc;
color: var(--blue-color);
position: relative;
}

Expand All @@ -58,5 +63,5 @@ body {
width: 100%;
height: 4px;
border-radius: 8px;
background-color: #00acdc;
background-color: var(--blue-color);
}

0 comments on commit 2ed4c0c

Please sign in to comment.