Skip to content

Commit c1c77e7

Browse files
committed
add nav menu to header
1 parent 2b2ac58 commit c1c77e7

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

index.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<link rel="stylesheet" href="css/style.css">
77
<link rel="icon" type="image/x-icon" href="favicon/favicon.ico"><!--Link to favicon-->
88
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'><!--Link to boxicons-->
9+
<script src="scripts/script.js"></script> <!--Link to script file-->
910
</head>
1011
<body>
1112
<header>
@@ -17,15 +18,22 @@
1718
</map>
1819

1920
<!--Insert hamburger menu-->
20-
<i class='bx bx-menu'></i>
21+
<i class='bx bx-menu' id="hamburger"></i>
2122

2223
<!--Create navigation bar-->
24+
<nav id="navMenu">
25+
<ul>
26+
<li><a href="#home">Home</a></li>
27+
<li><a href="#about">About</a></li>
28+
<li><a href="#projects">Projects</a></li>
29+
</ul>
30+
</nav>
2331

2432
</header>
2533
<main>
2634

2735
<!--Create hero section-->
28-
<section class="heroSection">
36+
<section class="heroSection" id="home">
2937

3038
<!--Insert video background-->
3139
<video autoplay loop muted playsinline class="videoBackground">
@@ -45,7 +53,7 @@ <h2>Welcome to ScriptLab</h2>
4553
</section>
4654

4755
<!--About section-->
48-
<section class="sectionBg">
56+
<section class="sectionBg" id="about">
4957
<h2>About ScriptLab</h2>
5058

5159

0 commit comments

Comments
 (0)