Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
fix: remove Team and Partners section
Browse files Browse the repository at this point in the history
Add conditional logic for displaying CTA in navbar
remove CTA from the navbar
remove Team section
remove Team from the navbar
  • Loading branch information
inclinedadarsh committed Mar 29, 2024
1 parent c63687b commit 5f31261
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
18 changes: 10 additions & 8 deletions src/components/layout/Navbar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,16 @@ const NavigationLinks = ({ style, open, setOpen, links, cta }) => {
{link.name}
</HeaderLink>
))}
<ArrowLink
className={styles.cta}
as={ButtonLink}
href={cta ? cta.href : '#partnerwithus'}
onClick={() => setOpen(false)}
>
{cta ? cta.name : 'Partner'}
</ArrowLink>
{cta && (
<ArrowLink
className={styles.cta}
as={ButtonLink}
href={cta ? cta.href : '#partnerwithus'}
onClick={() => setOpen(false)}
>
{cta ? cta.name : 'Partner'}
</ArrowLink>
)}
</nav>
);
};
5 changes: 3 additions & 2 deletions src/components/layout/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ export {
const Layout = ({ content, children }) => {
return (
<>
<Navbar links={content.header} cta={content.CTA} />
<Navbar links={content.header} />
{/* <Navbar links={content.header} cta={content.CTA} /> */}
<main className='main'>
{children}
<JoinUs />
<Faq faq={content.faq} />
<Partner />
{/* <Partner /> */}
</main>
<Footer />
</>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/HomePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
Courses,
Events,
Hero,
Team,
// Team,
} from '@/components/PageComp/HomePage';

import { HomePageContent } from './content';
Expand All @@ -19,7 +19,7 @@ const HomePage = () => {
<Courses />
<Events />
<Content />
<Team />
{/* <Team /> */}
</Layout>
<Banner />
</>
Expand Down
8 changes: 4 additions & 4 deletions src/pages/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ export const HomePageContent = {
name: 'Newsroom',
href: '#content',
},
{
name: 'Team',
href: '#team',
},
// {
// name: 'Team',
// href: '#team',
// },
{
name: 'Join',
href: '#join',
Expand Down

0 comments on commit 5f31261

Please sign in to comment.