Skip to content

Commit

Permalink
removed pill
Browse files Browse the repository at this point in the history
  • Loading branch information
JoJosuk committed Mar 21, 2023
1 parent 75b76e6 commit 7495229
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet'>
</head>
<body>
<div class="navbar is-active">
<div class="navbar isnt">
<nav>
<div class="container">
<img src="src\images\logo.svg" alt="logo" height="65">
Expand Down
3 changes: 3 additions & 0 deletions src/Scripts/navbar.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
export default()=>{
const mobilebutton=document.querySelector('.menu-mobile') as HTMLElement;
const hamburger = document.querySelector('.hamburger') as HTMLElement;
const navbar = document.querySelector('.navbar') as HTMLElement;
hamburger.addEventListener('click',function(){
this.classList.toggle('is-active');
mobilebutton.classList.toggle('is-open');
navbar.classList.toggle('is-active');
navbar.classList.toggle('isnt');
}
);
const buttons = document.querySelectorAll('div.menu>a');
Expand Down
4 changes: 4 additions & 0 deletions src/Styles/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ body{
margin-right: 25px;
border: 1px solid rgba( 255, 255, 255, 0.18 );
}
&.isnt{
background-color: rgb(0,0,0,0);
}
}

.menu-mobile{
Expand Down Expand Up @@ -214,6 +217,7 @@ body{
}
}


//navbar end

.hero{
Expand Down

0 comments on commit 7495229

Please sign in to comment.