-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from VaithiSniper/NewNavbar1
New navbar1
- Loading branch information
Showing
7 changed files
with
139 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
Add your name here along with the issue you solved 👇 If your PR will be submitted in Hacktoberfest period It'll be counted | ||
Add your name here along with the issue you solved 👇 If your PR will be submitted in Hacktoberfest period It'll be counted | ||
|
||
VaithiSniper : Added navbar1 to pulkithanda/navbars-hf, issue link - https://github.com/pulkithanda/navbars-hf/issues/2#issue-102159599. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" > | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>CodePen - A Pen by Vaithee</title> | ||
<link rel="stylesheet" href="./style.css"> | ||
|
||
</head> | ||
<body> | ||
<!-- partial:index.partial.html --> | ||
<html> | ||
|
||
<head> | ||
|
||
</head> | ||
|
||
<body> | ||
<div class="navbar"> | ||
<a href="#home" class="navbar-brand"><img src="https://img.icons8.com/ios/50/000000/logo.png" /></a> | ||
<div id="navbarLinks"> | ||
<a href="#home">Home</a> | ||
<hr id="divider"> | ||
<a href="#team">Team</a> | ||
<hr id="divider"> | ||
<a href="#contact">Contact</a> | ||
<hr id="divider"> | ||
<a href="#about">About</a> | ||
</div> | ||
<a href="javascript:void(0);" class="icon" onclick="myFunction()"> | ||
<img src="https://img.icons8.com/material-outlined/48/000000/menu--v1.png" id="menu" /> | ||
</a> | ||
</div> | ||
<hr id="divider-end"> | ||
</body> | ||
|
||
</html> | ||
<!-- partial --> | ||
<script src="./script.js"></script> | ||
|
||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
function myFunction() { | ||
var x = document.getElementById("navbarLinks"); | ||
if (x.style.display === "block") { | ||
x.style.display = "none"; | ||
} else { | ||
x.style.display = "block"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* navbar styling */ | ||
.navbar { | ||
overflow: hidden; | ||
position: relative; | ||
} | ||
|
||
/* navbar links are hidden by-default */ | ||
.navbar #navbarLinks { | ||
display: none; | ||
text-align: center; | ||
} | ||
|
||
/* Styling for nav links*/ | ||
.navbar a { | ||
color: black; | ||
font-family: Helvetica; | ||
font-weight: 800; | ||
padding: 14px 16px; | ||
text-decoration: none; | ||
font-size: 17px; | ||
display: block; | ||
} | ||
|
||
/* On hover effect */ | ||
.topnav a:hover { | ||
background-color: #ddd; | ||
color: black; | ||
} | ||
/* Hamburger styling */ | ||
#menu { | ||
right: 3%; | ||
top: 8%; | ||
display: block; | ||
position: absolute; | ||
padding: 0.6%; | ||
} | ||
/* nav links divider */ | ||
#divider { | ||
width: 10rem; | ||
color: #ddd; | ||
} | ||
/* navbar end divider */ | ||
#divider-end { | ||
width: 100%; | ||
text-align: center; | ||
border-color: #ddd; | ||
margin-top: 0; | ||
padding-top: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters