Skip to content

Commit

Permalink
Merge pull request #198 from AneekGuha/main
Browse files Browse the repository at this point in the history
navbar
  • Loading branch information
IshitaSatpathy authored Oct 16, 2022
2 parents d193f99 + 4aea0b7 commit 4a915ec
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Aneek Navbar/index.html
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>
94 changes: 94 additions & 0 deletions Aneek Navbar/style.css
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;
}

0 comments on commit 4a915ec

Please sign in to comment.