added pages for top header nav links
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
import { top_header_data } from "../../utils/data";
|
import { top_header_data } from "../../utils/data";
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
import styles from "./header.module.css";
|
import styles from "./header.module.css";
|
||||||
|
import { RouteHandler } from "../../router/routes";
|
||||||
|
|
||||||
const TopHeader = () => {
|
const TopHeader = () => {
|
||||||
return (
|
return (
|
||||||
@@ -8,27 +10,35 @@ const TopHeader = () => {
|
|||||||
<ul className="flex flex-col justify-center items-center pt-[0.4rem] text-[13px] font-light">
|
<ul className="flex flex-col justify-center items-center pt-[0.4rem] text-[13px] font-light">
|
||||||
{["Open An Account", "Internet Banking", "Contact Us"].map((text) => (
|
{["Open An Account", "Internet Banking", "Contact Us"].map((text) => (
|
||||||
<li key={text} className="w-full">
|
<li key={text} className="w-full">
|
||||||
<a href="#" className={`p-2 cursor-pointer text-white w-full items-center justify-center flex`}>
|
<a
|
||||||
|
href="#"
|
||||||
|
className={`p-2 cursor-pointer text-white w-full items-center justify-center flex`}
|
||||||
|
>
|
||||||
{text}
|
{text}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
<li className="w-full flex items-center justify-center">
|
<li className="w-full flex items-center justify-center">
|
||||||
<a href="#" className={`p-2 mt-2 flex gap-2 bg-[#74449E] cursor-pointer text-white w-full items-center justify-center`}>
|
<a
|
||||||
|
href="#"
|
||||||
|
className={`p-2 mt-2 flex gap-2 bg-[#74449E] cursor-pointer text-white w-full items-center justify-center`}
|
||||||
|
>
|
||||||
<p className="uppercase">Today's Share price:</p>
|
<p className="uppercase">Today's Share price:</p>
|
||||||
<span className="text-[#F8B51F] text-base md:text-lg">$ 4.00</span>
|
<span className="text-[#F8B51F] text-base md:text-lg">
|
||||||
</a>
|
$ 4.00
|
||||||
</li>
|
</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.top_header}>
|
<div className={styles.top_header}>
|
||||||
<div className="containerMode flex justify-between w-full text-white font-medium text-[11px] md:text-[13px]">
|
<div className="containerMode flex justify-between w-full text-white font-medium text-[11px] md:text-[13px]">
|
||||||
<ul className="flex items-center py-[0.4rem] flex-wrap">
|
<ul className="flex items-center py-[0.4rem] flex-wrap">
|
||||||
{top_header_data.map(({ id, name }) => (
|
{top_header_data.map(({ id, name, href }) => (
|
||||||
<li key={id}>
|
<li key={id}>
|
||||||
<a href="#" className={`py-[11px] px-[15px]`}>
|
<Link to={href} className={`py-[11px] px-[15px]`}>
|
||||||
{name}
|
{name}
|
||||||
</a>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import React from "react";
|
||||||
|
import { HomeLayout } from "../layouts";
|
||||||
|
|
||||||
|
const BusinessBankingPage: React.FC = () => {
|
||||||
|
return <HomeLayout>Business Banking</HomeLayout>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default BusinessBankingPage;
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import React from 'react'
|
||||||
|
import { HomeLayout } from '../layouts'
|
||||||
|
|
||||||
|
const CooperateBankingPage: React.FC = () => {
|
||||||
|
return (
|
||||||
|
<HomeLayout>
|
||||||
|
Cooperate Banking
|
||||||
|
</HomeLayout>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default CooperateBankingPage
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import React from 'react'
|
||||||
|
import { HomeLayout } from '../layouts'
|
||||||
|
|
||||||
|
const PersonalBankingPage: React.FC = () => {
|
||||||
|
return (
|
||||||
|
<HomeLayout>
|
||||||
|
Personal Banking
|
||||||
|
</HomeLayout>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default PersonalBankingPage
|
||||||
@@ -2,7 +2,7 @@ import React from "react";
|
|||||||
import { HomeLayout } from "../layouts";
|
import { HomeLayout } from "../layouts";
|
||||||
import { TsAndCs } from "../components";
|
import { TsAndCs } from "../components";
|
||||||
|
|
||||||
const TermsAndConditionPage = () => {
|
const TermsAndConditionPage: React.FC = () => {
|
||||||
return (
|
return (
|
||||||
<HomeLayout>
|
<HomeLayout>
|
||||||
<TsAndCs />
|
<TsAndCs />
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ import DashboardProfilePage from "./DashboardProfilePage";
|
|||||||
import DashboardVerificationPage from "./DashboardVerificationPage";
|
import DashboardVerificationPage from "./DashboardVerificationPage";
|
||||||
import DashboardpaymentsPage from "./DashboardPaymentsPage";
|
import DashboardpaymentsPage from "./DashboardPaymentsPage";
|
||||||
import TermsAndConditionPage from "./TermsAndConditionPage";
|
import TermsAndConditionPage from "./TermsAndConditionPage";
|
||||||
|
import PersonalBankingPage from "./PersonalBankingPage";
|
||||||
|
import BusinessBankingPage from "./BusinessBankingPage";
|
||||||
|
import CooperateBankingPage from "./CooperateBankingPage";
|
||||||
|
|
||||||
export {
|
export {
|
||||||
HomePage,
|
HomePage,
|
||||||
@@ -18,4 +21,7 @@ export {
|
|||||||
DashboardVerificationPage,
|
DashboardVerificationPage,
|
||||||
DashboardpaymentsPage,
|
DashboardpaymentsPage,
|
||||||
TermsAndConditionPage,
|
TermsAndConditionPage,
|
||||||
|
PersonalBankingPage,
|
||||||
|
BusinessBankingPage,
|
||||||
|
CooperateBankingPage
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ import {
|
|||||||
DashboardVerificationPage,
|
DashboardVerificationPage,
|
||||||
DashboardpaymentsPage,
|
DashboardpaymentsPage,
|
||||||
TermsAndConditionPage,
|
TermsAndConditionPage,
|
||||||
|
BusinessBankingPage,
|
||||||
|
CooperateBankingPage,
|
||||||
|
PersonalBankingPage,
|
||||||
} from "../pages";
|
} from "../pages";
|
||||||
import { DashboardAuth } from "../components";
|
import { DashboardAuth } from "../components";
|
||||||
|
|
||||||
@@ -23,6 +26,10 @@ const Routers = () => {
|
|||||||
path={RouteHandler.termsAndConditions}
|
path={RouteHandler.termsAndConditions}
|
||||||
element={<TermsAndConditionPage />}
|
element={<TermsAndConditionPage />}
|
||||||
/>
|
/>
|
||||||
|
<Route path={RouteHandler.businessBanking} element={<BusinessBankingPage />} />
|
||||||
|
<Route path={RouteHandler.cooperateBanking} element={<CooperateBankingPage />} />
|
||||||
|
<Route path={RouteHandler.personalBanking} element={<PersonalBankingPage />} />
|
||||||
|
|
||||||
<Route element={<DashboardAuth />}>
|
<Route element={<DashboardAuth />}>
|
||||||
<Route
|
<Route
|
||||||
path={RouteHandler.dashboardHome}
|
path={RouteHandler.dashboardHome}
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
export class RouteHandler {
|
export class RouteHandler {
|
||||||
static homepage = "/";
|
static homepage = "/";
|
||||||
static loginpage = "/login";
|
static loginpage = "/login";
|
||||||
|
static personalBanking = "/personal-banking";
|
||||||
|
static businessBanking = "/business-banking";
|
||||||
|
static cooperateBanking = "/cooperate-banking";
|
||||||
static getStarted = "/get-started";
|
static getStarted = "/get-started";
|
||||||
static dashboardHome = "/dashboard/home";
|
static dashboardHome = "/dashboard/home";
|
||||||
static dashboardProfile = "/dashboard/profile";
|
static dashboardProfile = "/dashboard/profile";
|
||||||
|
|||||||
+5
-4
@@ -7,12 +7,13 @@ import XWhite from "../assets/images/socials/twitterx.svg";
|
|||||||
import WhatsappWhite from "../assets/images/socials/whatsapp.svg";
|
import WhatsappWhite from "../assets/images/socials/whatsapp.svg";
|
||||||
import YoutubeWhite from "../assets/images/socials/youtube.svg";
|
import YoutubeWhite from "../assets/images/socials/youtube.svg";
|
||||||
import InstagramWhite from "../assets/images/socials/instagram.svg";
|
import InstagramWhite from "../assets/images/socials/instagram.svg";
|
||||||
|
import { RouteHandler } from "../router/routes";
|
||||||
|
|
||||||
export const top_header_data = [
|
export const top_header_data = [
|
||||||
{ id: 1, name: "HOME" },
|
{ id: 1, name: "HOME", href: RouteHandler.homepage },
|
||||||
{ id: 2, name: "PERSONAL" },
|
{ id: 2, name: "PERSONAL", href: RouteHandler.personalBanking },
|
||||||
{ id: 3, name: "BUSINESS" },
|
{ id: 3, name: "BUSINESS", href: RouteHandler.businessBanking },
|
||||||
{ id: 4, name: "CORPORATE" },
|
{ id: 4, name: "CORPORATE", href: RouteHandler.cooperateBanking },
|
||||||
];
|
];
|
||||||
|
|
||||||
export const lowerMenuItems = [
|
export const lowerMenuItems = [
|
||||||
|
|||||||
Reference in New Issue
Block a user