From 93fc2d7866d7c4f5f266c966aa4f2241b3a517c4 Mon Sep 17 00:00:00 2001 From: neha Date: Fri, 14 Jun 2024 18:18:13 +0100 Subject: [PATCH] navigation config update --- app/(marketing)/page.tsx | 8 ++++---- components/Header.tsx | 4 ++-- config/{marketing.tsx => home.tsx} | 30 ++---------------------------- config/navigation.tsx | 30 ++++++++++++++++++++++++++++++ types/index.ts | 7 +++++-- 5 files changed, 43 insertions(+), 36 deletions(-) rename config/{marketing.tsx => home.tsx} (86%) create mode 100644 config/navigation.tsx diff --git a/app/(marketing)/page.tsx b/app/(marketing)/page.tsx index 4e99a21..88de323 100644 --- a/app/(marketing)/page.tsx +++ b/app/(marketing)/page.tsx @@ -3,7 +3,7 @@ import SectionHeader from "@/components/SectionHeader"; import Workshop from "@/components/Workshop"; import { buttonVariants } from "@/components/Button"; import { cn } from "@/lib/utils"; -import { MARKETING } from "@/config/marketing"; +import { HOMEPAGE } from "@/config/home"; import SignupForMeetupCard from "@/components/SignupForMeetupCard"; export default async function page() { @@ -13,7 +13,7 @@ export default async function page() {
@@ -57,7 +57,7 @@ export default async function page() {
- {MARKETING.Achievements.map((achievement) => { + {HOMEPAGE.Achievements.map((achievement) => { return (
@@ -89,7 +89,7 @@ export default async function page() {
- {MARKETING.PreviousTalks.map((previousTalk, index) => { + {HOMEPAGE.PreviousTalks.map((previousTalk, index) => { return (
- +
); diff --git a/config/marketing.tsx b/config/home.tsx similarity index 86% rename from config/marketing.tsx rename to config/home.tsx index 2695a07..f9c6844 100644 --- a/config/marketing.tsx +++ b/config/home.tsx @@ -1,33 +1,7 @@ -import { MarketingData } from "@/types"; +import { Home } from "@/types"; import speakerImage from "public/assets/hero_image_guest_v1.png"; -export const MARKETING: MarketingData = { - Navigation: [ - { - title: "Home", - href: "/", - }, - { - title: "Meetups", - href: "/meetups", - }, - { - title: "Jobs", - href: "/jobs", - }, - { - title: "Speakers", - href: "/speakers", - }, - { - title: "Collaboration", - href: "/collaboration", - }, - { - title: "About", - href: "/about", - }, - ], +export const HOMEPAGE: Home = { Achievements: [ { title: "10,000+ Members", diff --git a/config/navigation.tsx b/config/navigation.tsx new file mode 100644 index 0000000..127cdcb --- /dev/null +++ b/config/navigation.tsx @@ -0,0 +1,30 @@ +import { Navigation } from "@/types"; + +export const NAVIGATION: Navigation = { + Navigation: [ + { + title: "Home", + href: "/", + }, + { + title: "Meetups", + href: "/meetups", + }, + { + title: "Jobs", + href: "/jobs", + }, + { + title: "Speakers", + href: "/speakers", + }, + { + title: "Collaboration", + href: "/collaboration", + }, + { + title: "About", + href: "/about", + }, + ] +}; diff --git a/types/index.ts b/types/index.ts index 8c8ba0f..aa12409 100644 --- a/types/index.ts +++ b/types/index.ts @@ -32,12 +32,15 @@ export interface WorkShopData { workshopDate: string; } -export interface MarketingData { - Navigation: NavItem[]; +export interface Home { Achievements: AchievementItem[]; PreviousTalks: TalkItem[]; WorkshopData: WorkShopData; } + +export interface Navigation { + Navigation: NavItem[]; +} export interface FooterData { QuickLinks: FooterItem[]; FollowUs: FooterItem[];