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 solution #5803

Open
wants to merge 4 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
55 changes: 55 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,60 @@
</head>
<body>
<h1>Moyo header</h1>

<header class="header">
<div class="image">
<img
src="./images/logo.png"
alt="logo Moyo"
/>
</div>

<nav>
<ul>
<li>
<a
href="index.html"
Elvira-Bariieva marked this conversation as resolved.
Show resolved Hide resolved
class="is-active"
>
Apple
</a>
</li>

<li>
<a href="index.html">Samsung</a>
Elvira-Bariieva marked this conversation as resolved.
Show resolved Hide resolved
</li>

<li>
<a href="index.html">Smartphones</a>
Elvira-Bariieva marked this conversation as resolved.
Show resolved Hide resolved
</li>

<li>
<a
href="index.html"
Elvira-Bariieva marked this conversation as resolved.
Show resolved Hide resolved
data-qa="hover"
>
Laptops & Computers
</a>
</li>

<li>
<a href="index.html">Gadgets</a>

Choose a reason for hiding this comment

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

The href attribute for this link is set to index.html. Check if this should link to a different page for 'Gadgets'.

</li>

<li>
<a href="index.html">Tablets</a>
Elvira-Bariieva marked this conversation as resolved.
Show resolved Hide resolved
</li>

<li>
<a href="index.html">Photo</a>
Elvira-Bariieva marked this conversation as resolved.
Show resolved Hide resolved
</li>

<li>
<a href="index.html">Video</a>
Elvira-Bariieva marked this conversation as resolved.
Show resolved Hide resolved
</li>
</ul>
</nav>
</header>
</body>
</html>
73 changes: 73 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,76 @@
body {
margin: auto;
Elvira-Bariieva marked this conversation as resolved.
Show resolved Hide resolved
font-style: Roboto;
Elvira-Bariieva marked this conversation as resolved.
Show resolved Hide resolved
background: rgba(229, 229, 229, 1);
}

:root {
--blue-color: #00acdc;
}

* {
box-sizing: border-box;
margin: 0;
font-family: Roboto, sans-serif;
font-size: 12px;
}

.header {
padding: 0 50px;
width: 100%;
display: flex;
justify-content: space-evenly;
align-items: center;
background-color: rgba(255, 255, 255, 1);
}

img {
height: 40px;
margin-top: 10px;
}

a {
display: block;
text-decoration: none;
line-height: 60px;
height: 60px;
color: rgba(0, 0, 0, 1);
}

nav a {
text-transform: uppercase;
}

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

.is-active::after {
content: '';
position: absolute;
background-color: var(--blue-color);
width: 100%;
height: 4px;
border-radius: 8px;
left: 0;
bottom: 0;
right: 0;
}

ul {
list-style: none;
display: flex;
}

li:not(:first-child) {
margin-left: 20px;
}

li:last-child {
margin-right: 0;
}

a:hover {
color: var(--blue-color);
}
Loading