Skip to content

Commit

Permalink
86b2rcabb:updated header to handle singupclick
Browse files Browse the repository at this point in the history
  • Loading branch information
AynulAmna committed Nov 7, 2024
1 parent e6f012c commit e840ca4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions venue-reservation/src/app/layouts/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
"use client";
import React, { useState } from "react";
import Logo from "./Logo";
import { useRouter } from "next/navigation";
const Header = () => {
const [isOpen, setIsOpen] = useState(false);
const router =useRouter();

const handleSignupClick = () => {
router.push("/signup-landing");
};

return (
<header className="bg-white shadow-lg z-1">
Expand Down Expand Up @@ -41,6 +47,7 @@ const Header = () => {
Login
</button>
<button
onClick={handleSignupClick}
style={{ backgroundColor: "#584822" }}
className="text-white px-4 py-2 rounded hover:bg-[#6A5B3A] transition duration-200 ease-in-out"
>
Expand Down Expand Up @@ -80,6 +87,7 @@ const Header = () => {
Login
</button>
<button
onClick={handleSignupClick}
style={{ backgroundColor: "#584822" }}
className="text-white w-full text-left px-4 py-2 rounded hover:bg-[#6A5B3A] transition duration-200 ease-in-out text-sm"
>
Expand Down

0 comments on commit e840ca4

Please sign in to comment.