Skip to content

Commit

Permalink
Open application portal
Browse files Browse the repository at this point in the history
  • Loading branch information
aidantrabs committed Apr 7, 2024
1 parent 4cd993b commit 24ed733
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/components/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect, useState } from 'react';
import { NavItems, Menu, Button } from '@components';
import { HawkHacksLogo } from '@assets';
import Hamburger from 'hamburger-react';
import { Link } from 'react-router-dom';
// import { Link } from 'react-router-dom';
import { Link as ScrollLink } from 'react-scroll';

const Navbar = () => {
Expand All @@ -15,15 +15,15 @@ const Navbar = () => {
else document.body.classList.remove('overflow-y-hidden');
}, [showMenu]);

// const openInNewTab = (url: string) => {
// const newWindow = window.open(url, '_blank', 'noopener,noreferrer');
// if (newWindow) newWindow.opener = null;
// };
const openInNewTab = (url: string) => {
const newWindow = window.open(url, '_blank', 'noopener,noreferrer');
if (newWindow) newWindow.opener = null;
};

// const handleSubmit = (e: React.MouseEvent<HTMLButtonElement>) => {
// e.preventDefault();
// openInNewTab('https://portal.hawkhacks.ca');
// };
const handleSubmit = (e: React.MouseEvent<HTMLButtonElement>) => {
e.preventDefault();
openInNewTab('https://portal.hawkhacks.ca');
};

return (
<header className="fixed top-0 z-50 flex h-fit w-full items-center justify-between p-3 px-10 lg:justify-normal">
Expand All @@ -48,23 +48,23 @@ const Navbar = () => {
</nav>

<div className="portal-btn hidden transition-all duration-500 ease-in-out lg:mr-32 lg:block">
{/* <Button
<Button
className="relative font-medium mx-auto block w-64 max-[1080px]:w-48 h-16 rounded-r-lg bg-gradient-to-b from-tbrand to-tbrand-hover before:absolute before:inset-0 before:bg-white before:opacity-0 before:transition before:duration-300 before:hover:opacity-10 sm:mx-0"
tabIndex={-1}
type="button"
onClick={handleSubmit}
>
<span className="whitespace-nowrap text-lg font-bold">Application Portal</span>
</Button> */}
<Link to="/coming-soon" className="block">
</Button>
{/* <Link to="/coming-soon" className="block">
<Button
className="relative font-medium mx-auto block w-64 max-[1080px]:w-48 h-16 rounded-r-lg bg-gradient-to-b from-tbrand to-tbrand-hover before:absolute before:inset-0 before:bg-white before:opacity-0 before:transition before:duration-300 before:hover:opacity-10 sm:mx-0"
tabIndex={-1}
type="button"
>
<span className="whitespace-nowrap text-lg font-bold">Application Portal</span>
</Button>
</Link>
</Link> */}
</div>

{/* banner-holder: banner is out of flow, to prevent banner affect the desired flow, adding a placeholder banner holder when the screen is smaller */}
Expand Down

0 comments on commit 24ed733

Please sign in to comment.