Skip to content

Commit

Permalink
add task solution
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidKuznets committed Oct 11, 2024
1 parent 22e24b2 commit 3593d76
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 2 deletions.
62 changes: 61 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,66 @@
<title>Document</title>
</head>
<body>
Hello, world!
<header class="header">
<a
class="aimg"
href="logo"
>
<img
src="moyo_1.png"
alt="logo"
/>
</a>
<nav class="nav">
<a
class="nav_link is_active"
href="1"
>
Apple
</a>
<a
class="nav_link"
href="2"
>
Samsung
</a>
<a
class="nav_link"
href="3"
>
Smartphones
</a>
<a
class="nav_link La"
href="4"
>
Laptops & Computers
</a>
<a
class="nav_link"
href="5"
>
Gadgets
</a>
<a
class="nav_link"
href="6"
>
Tablets
</a>
<a
class="nav_link"
href="7"
>
Photo
</a>
<a
class="nav_link"
href="8"
>
Video
</a>
</nav>
</header>
</body>
</html>
33 changes: 32 additions & 1 deletion src/style.css
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
/* styles go here */
body {
background-color: #858585;
font-family: Roboto, sans-serif;
margin: 0;
}

.nav {
justify-content: flex-end;
font-size: 15px;
background-color: #fff;
display: flex;
align-items: center;
}

.nav__link {
padding: 25px;
text-decoration: none;
}

.aimg {
position: absolute;
margin-top: 10px;
margin-left: 50px;
}

.is_active::after {
content: '';
height: 4px;
background-color: black;
display: block;
color: #00acdc;
}

0 comments on commit 3593d76

Please sign in to comment.