From aabb7c03eee00d6d48b3eeed784ff88df23cb8f9 Mon Sep 17 00:00:00 2001
From: QuadAces <107918856+QuadAces@users.noreply.github.com>
Date: Thu, 18 Apr 2024 19:20:01 +1000
Subject: [PATCH 1/6] added id for sponsors and added hamburger menu
---
components/Hamburger.tsx | 46 +++++++++++++++++++++++++++++++++++
components/Navbar.tsx | 6 ++++-
components/Sponsors/index.tsx | 2 +-
components/styles.css | 40 ++++++++++++++++++++++++++++++
package-lock.json | 33 +++++++++++++++++++++++++
package.json | 1 +
6 files changed, 126 insertions(+), 2 deletions(-)
create mode 100644 components/Hamburger.tsx
create mode 100644 components/styles.css
diff --git a/components/Hamburger.tsx b/components/Hamburger.tsx
new file mode 100644
index 0000000..c0b5090
--- /dev/null
+++ b/components/Hamburger.tsx
@@ -0,0 +1,46 @@
+import React from "react";
+import { AnimatePresence, motion, useCycle } from "framer-motion";
+import Link from "next/link";
+
+export default function Hamburger () {
+
+ const [isOpen, toggleOpen] = useCycle(false, true);
+
+ return (
+
+ );
+}
diff --git a/components/Navbar.tsx b/components/Navbar.tsx
index 9e395bb..a32bb6e 100644
--- a/components/Navbar.tsx
+++ b/components/Navbar.tsx
@@ -1,6 +1,7 @@
import Image from 'next/image';
import Link from 'next/link';
import { useEffect, useState } from 'react';
+import Hamburger from './Hamburger';
const Navbar = () => {
const [path, setPath] = useState('');
@@ -28,7 +29,7 @@ const Navbar = () => {
01
{'//'} about us
-
+
02
{'//'} events
@@ -41,6 +42,9 @@ const Navbar = () => {
{'//'} sponsors
+
+
+
);
diff --git a/components/Sponsors/index.tsx b/components/Sponsors/index.tsx
index 46190e4..69c24b6 100644
--- a/components/Sponsors/index.tsx
+++ b/components/Sponsors/index.tsx
@@ -8,7 +8,7 @@ const Sponsors = () => {
'xl:p-16 p-10 flex justify-center items-center xl:col-span-3 sm:col-span-5 col-span-10 xl:row-start-2 xl:row-end-3 sm:row-start-4 sm:row-end-5 sm:h-auto h-36';
return (
-