Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit 5a7198b

Browse files
refactored code
1 parent 21c8d7a commit 5a7198b

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
<head>
55
<meta charset="UTF-8">
6+
<meta name="description" content=" Intro section with dropdown navigation - Frontend Mentor">
7+
<meta name="keywords" content=" Intro section with dropdown navigation,Frontend Mentor ">
68
<meta name="viewport" content="width=device-width, initial-scale=1.0">
79
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
810
<title>Frontend Mentor | Intro section with dropdown navigation</title>
@@ -35,7 +37,8 @@ <h1>
3537
</li>
3638
<li class="company-btn">
3739
<button>Company
38-
<img src="./images/icon-arrow-down.svg" alt="" aria-hidden="true" /></button>
40+
<img src="./images/icon-arrow-down.svg" alt="" aria-hidden="true" />
41+
</button>
3942
<ul class="hidden-company">
4043
<li><a href="/">History</a></li>
4144
<li><a href="/">Our Team</a></li>

styles.css

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ header.active::before {
109109
background-color: rgba(6, 6, 6, 0.15);
110110
backdrop-filter: blur(3px);
111111
height: 100%;
112-
width: 20rem;
112+
width: 100%;
113113
top: 0;
114-
left: -15%;
114+
left: 0;
115115
}
116116
header.active .nav-menu {
117117
position: static;
@@ -144,19 +144,11 @@ nav ul button {
144144
background-color: transparent;
145145
border: none;
146146
}
147-
/* nav ul button:hover img {
148-
transform: rotate(180deg);
149-
transition: var(--transition);
150-
}
151-
nav ul button img {
152-
height: max-content;
153-
transition: var(--transition);
154-
} */
155147
.hamburger {
156148
cursor: pointer;
157149
z-index: 99;
158150
position: fixed;
159-
margin-left: 80%;
151+
margin-left: 85%;
160152
}
161153
header.active .hamburger {
162154
content: url("./images/icon-close-menu.svg");
@@ -179,13 +171,9 @@ header.active .hamburger {
179171
}
180172
.hidden-features.active,
181173
.hidden-company.active {
182-
/* position: static; */
183174
display: flex;
184175
flex-direction: column;
185176
gap: 1rem;
186-
/* margin-top: 1rem; */
187-
/* padding: 1rem; */
188-
/* background-color: var(--almost-white); */
189177
width: max-content;
190178
border-radius: 10px;
191179
position: absolute;

0 commit comments

Comments
 (0)