forked from Yadav106/gdsc-compose-camp
-
Notifications
You must be signed in to change notification settings - Fork 0
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 Yadav106#10 from Yadav106/staging
Staging
- Loading branch information
Showing
6 changed files
with
147 additions
and
4 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,51 @@ | ||
.menu-btn-1 { | ||
height: 5; | ||
width: 5px; | ||
cursor: pointer; | ||
} | ||
|
||
.menu-btn-1 span, | ||
.menu-btn-1 span::before, | ||
.menu-btn-1 span::after { | ||
background: white; | ||
border-radius: 2px; | ||
content: ''; | ||
position: absolute; | ||
width: 20px; | ||
height: 2px; | ||
|
||
-webkit-transition: .3s ease-in-out; | ||
-moz-transition: .3s ease-in-out; | ||
-o-transition: .3s ease-in-out; | ||
transition: .3s ease-in-out; | ||
} | ||
|
||
.menu-btn-1 span::before { | ||
margin-top: -6px; | ||
} | ||
|
||
.menu-btn-1 span::after { | ||
margin-top: 6px; | ||
} | ||
|
||
.menu-btn-1.active span { | ||
background: transparent; | ||
} | ||
|
||
.menu-btn-1.active span::before { | ||
margin-top: 0; | ||
|
||
-webkit-transform: rotate(45deg); | ||
-moz-transform: rotate(45deg); | ||
-o-transform: rotate(45deg); | ||
transform: rotate(45deg); | ||
} | ||
|
||
.menu-btn-1.active span::after { | ||
margin-top: 0; | ||
|
||
-webkit-transform: rotate(-45deg); | ||
-moz-transform: rotate(-45deg); | ||
-o-transform: rotate(-45deg); | ||
transform: rotate(-45deg); | ||
} |
Empty file.
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,6 +1,69 @@ | ||
import "./Header.css"; | ||
"use client"; | ||
import { useState } from "react"; | ||
import "./Hamburger.css"; | ||
|
||
const Header = () => { | ||
return <></>; | ||
const [isActive, setIsActive] = useState(false); | ||
|
||
function toggleActive() { | ||
setIsActive(!isActive); | ||
} | ||
|
||
return ( | ||
<> | ||
<div className="text-gray-50 w-full p-4 md:p-6 flex justify-between items-center"> | ||
<div className="flex md:mx-12 items-center gap-2"> | ||
<a href="#" className="logo"> | ||
<img | ||
className="w-4/5 md:w-full" | ||
src="/gdsc-logo.svg" | ||
alt="gdsc-logo" | ||
/> | ||
</a> | ||
<h1 className="hidden md:block font-bold">GDSC-TCET</h1> | ||
</div> | ||
<ul className="hidden list-none gap-12 my-4 md:mx-12 text-xs md:flex items-center justify-between"> | ||
<li> | ||
<a href="#">Home</a> | ||
</li> | ||
<li> | ||
<a href="#">Contact</a> | ||
</li> | ||
<li> | ||
<a href="#">FAQs</a> | ||
</li> | ||
</ul> | ||
<div | ||
className={`menu-btn-1 md:hidden mx-6 z-20 ${ | ||
isActive ? "active" : "" | ||
}`} | ||
onClick={toggleActive}> | ||
<span></span> | ||
</div> | ||
</div> | ||
{isActive && <HamBurger />} | ||
</> | ||
); | ||
}; | ||
|
||
export default Header; | ||
|
||
const HamBurger = () => { | ||
return ( | ||
<> | ||
<div className="absolute mt-2 rounded-lg border border-gray-50/20 z-10 bg-gray-950/90 drop-shadow-2xl backdrop-filter backdrop-blur-[6px] w-[290px] p-2"> | ||
<ul className="list-none gap-12 my-4 text-xs flex flex-col items-center justify-between"> | ||
<li> | ||
<a href="#">Home</a> | ||
</li> | ||
<li> | ||
<a href="#">Contact</a> | ||
</li> | ||
<li> | ||
<a href="#">FAQs</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</> | ||
); | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.