-
Notifications
You must be signed in to change notification settings - Fork 115
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 #198 from AneekGuha/main
navbar
- Loading branch information
Showing
2 changed files
with
113 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Navbar</title> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
<body> | ||
<ul class="nav"> | ||
<li><a href="#">Home</a></li> | ||
<li><a href="#">About Us</a></li> | ||
<li><a href="#">Sectors</a></li> | ||
<li><a href="#">Contact Us</a></li> | ||
</ul> | ||
</div> | ||
</body> | ||
</html> |
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,94 @@ | ||
body{ | ||
margin:0; | ||
padding:0; | ||
height:100vh; | ||
background-color: black; | ||
} | ||
*{ | ||
margin:0px; | ||
padding:0px; | ||
box-sizing: border-box; | ||
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; | ||
} | ||
/*NAVBAR*/ | ||
@import url('https://fonts.googleapis.com/css?family=Titillium+Web:400,600'); | ||
|
||
/*body { | ||
background: #212121; | ||
padding: 50px 0; | ||
}*/ | ||
|
||
.nav { | ||
font-family: 'Titillium Web'; | ||
text-transform: uppercase; | ||
text-align: center; | ||
font-weight: 600; | ||
} | ||
|
||
.nav * { | ||
box-sizing: border-box; | ||
transition: all .35s ease; | ||
} | ||
|
||
.nav li { | ||
display: inline-block; | ||
list-style: outside none none; | ||
margin: .5em 1em; | ||
padding: 0; | ||
} | ||
|
||
.nav a { | ||
padding: .5em .8em; | ||
color: rgba(255,255,255,.5); | ||
position: relative; | ||
text-decoration: none; | ||
font-size: 20px; | ||
color: #fff; | ||
text-shadow: | ||
0 0 7px #fff, | ||
0 0 10px #fff, | ||
0 0 21px #fff, | ||
0 0 42px #0fa, | ||
0 0 82px #0fa, | ||
0 0 92px #0fa, | ||
0 0 102px #0fa, | ||
0 0 151px #0fa; | ||
} | ||
|
||
.nav a::before, | ||
.nav a::after { | ||
content: ''; | ||
height: 14px; | ||
width: 14px; | ||
position: absolute; | ||
transition: all .35s ease; | ||
opacity: 0; | ||
} | ||
|
||
.nav a::before { | ||
content: ''; | ||
right: 0; | ||
top: 0; | ||
border-top: 3px solid #3E8914; | ||
border-right: 3px solid #2E640F; | ||
transform: translate(-100%, 50%); | ||
} | ||
|
||
.nav a:after { | ||
content: ''; | ||
left: 0; | ||
bottom: 0; | ||
border-bottom: 3px solid #2E640F; | ||
border-left: 3px solid #3E8914; | ||
transform: translate(100%, -50%) | ||
} | ||
|
||
.nav a:hover:before, | ||
.nav a:hover:after{ | ||
transform: translate(0,0); | ||
opacity: 1; | ||
} | ||
|
||
.nav a:hover { | ||
color: #3DA35D; | ||
} |