From 5f312612ac916921e306f3cf98b5d5b085880f60 Mon Sep 17 00:00:00 2001
From: Adarsh Dubey <84132532+inclinedadarsh@users.noreply.github.com>
Date: Fri, 29 Mar 2024 11:25:46 +0530
Subject: [PATCH] fix: remove Team and Partners section
Add conditional logic for displaying CTA in navbar
remove CTA from the navbar
remove Team section
remove Team from the navbar
---
src/components/layout/Navbar/index.jsx | 18 ++++++++++--------
src/components/layout/index.jsx | 5 +++--
src/pages/HomePage.jsx | 4 ++--
src/pages/content.js | 8 ++++----
4 files changed, 19 insertions(+), 16 deletions(-)
diff --git a/src/components/layout/Navbar/index.jsx b/src/components/layout/Navbar/index.jsx
index b5883517..de7a0067 100644
--- a/src/components/layout/Navbar/index.jsx
+++ b/src/components/layout/Navbar/index.jsx
@@ -92,14 +92,16 @@ const NavigationLinks = ({ style, open, setOpen, links, cta }) => {
{link.name}
))}
- setOpen(false)}
- >
- {cta ? cta.name : 'Partner'}
-
+ {cta && (
+ setOpen(false)}
+ >
+ {cta ? cta.name : 'Partner'}
+
+ )}
);
};
diff --git a/src/components/layout/index.jsx b/src/components/layout/index.jsx
index a9edc799..5bcc25ea 100644
--- a/src/components/layout/index.jsx
+++ b/src/components/layout/index.jsx
@@ -25,12 +25,13 @@ export {
const Layout = ({ content, children }) => {
return (
<>
-
+
+ {/* */}
{children}
-
+ {/* */}
>
diff --git a/src/pages/HomePage.jsx b/src/pages/HomePage.jsx
index da68043c..2c47cd81 100644
--- a/src/pages/HomePage.jsx
+++ b/src/pages/HomePage.jsx
@@ -5,7 +5,7 @@ import {
Courses,
Events,
Hero,
- Team,
+ // Team,
} from '@/components/PageComp/HomePage';
import { HomePageContent } from './content';
@@ -19,7 +19,7 @@ const HomePage = () => {
-
+ {/* */}
>
diff --git a/src/pages/content.js b/src/pages/content.js
index e469accb..74e6868a 100644
--- a/src/pages/content.js
+++ b/src/pages/content.js
@@ -50,10 +50,10 @@ export const HomePageContent = {
name: 'Newsroom',
href: '#content',
},
- {
- name: 'Team',
- href: '#team',
- },
+ // {
+ // name: 'Team',
+ // href: '#team',
+ // },
{
name: 'Join',
href: '#join',