diff --git a/src/app/FundsTransfer/page.tsx b/src/app/FundsTransfer/page.tsx deleted file mode 100644 index dcaee1b..0000000 --- a/src/app/FundsTransfer/page.tsx +++ /dev/null @@ -1,170 +0,0 @@ -"use client"; - -import React from 'react'; -import { Card, Button, Grid, Title, Text, Container, Box, Image } from '@mantine/core'; -import NextImage from "next/image"; -import logo from "@/app/image/logo.jpg"; - -import { IconBan, IconRefresh, IconExchange, IconCreditCard, IconBuildingBank, IconMobiledata, IconWallet, IconTransferIn } from '@tabler/icons-react'; -import { IconLogout } from "@tabler/icons-react"; -import { useRouter } from "next/navigation"; - - - - -const options = [ - { - title: 'Transfer within the bank', - subtitle: '₹1 to ₹25 Lacs per day', - }, - { - title: 'IMPS P2A - Instant Transfer', - subtitle: '365 days, 24x7', - }, - { - title: 'Transfer to other bank (NEFT)', - subtitle: 'Also for Credit Cards', - }, - { - title: 'Transfer to other bank (RTGS)', - subtitle: '₹2 Lacs to ₹25 Lacs per day', - }, - { - title: 'IMPS P2P - Instant Transfer', - subtitle: '(IMPS: Mobile No.)', - }, - -]; - - -interface TransactionOptionProps { - title: string; - description: string; - icon: React.ReactNode; -} - -const TransactionOption: React.FC = ({ title, description, icon }) => ( - - - - {icon} - - - {title} - {description} - - - - -); - -const FundsTransferPage: React.FC = () => { - - const router = useRouter(); - - async function handleLogout(e: React.FormEvent) { - e.preventDefault(); - localStorage.removeItem("access_token"); - router.push("/login") - } - - return ( -
- - ebanking - - -
- - {/* @ts-ignore */} - Select Transaction Type - - - } - icon={} - /> - - - - } - /> - - - - } - /> - - - - } - /> - - - - } - /> - - - - - - - - - © 2025 KCC Bank. All rights reserved. {" "} - - - -
- -
- ); -}; - -export default FundsTransferPage; diff --git a/src/app/LayoutWithSidebar.tsx b/src/app/LayoutWithSidebar.tsx new file mode 100644 index 0000000..24bf7e6 --- /dev/null +++ b/src/app/LayoutWithSidebar.tsx @@ -0,0 +1,56 @@ +'use client'; + +import React from 'react'; +import { + AppShell, + Navbar, + Title, + Stack, + Text, + Box, + Button, +} from '@mantine/core'; + +interface LayoutProps { + children: React.ReactNode; +} + +const Sidebar = () => ( + + + + Funds Transfer + + + + + + + + +); + +const LayoutWithSidebar: React.FC = ({ children }) => { + return ( + } + styles={{ + main: { + backgroundColor: '#ffffff', + minHeight: '100vh', + }, + }} + > + {children} + + ); +}; + +export default LayoutWithSidebar; diff --git a/src/app/home/FundsTransfer/layout.tsx b/src/app/home/FundsTransfer/layout.tsx new file mode 100644 index 0000000..dcc186c --- /dev/null +++ b/src/app/home/FundsTransfer/layout.tsx @@ -0,0 +1,71 @@ +"use client"; +import { Button, Group } from '@mantine/core'; +import { IconHome } from '@tabler/icons-react'; +import Link from 'next/link'; +import React from 'react'; + +export default function Layout({ children }: { children: React.ReactNode }) { + return ( +
+
+

Menu

+ + + + + + + + + + + + +
+ + {/* Main content */} +
+ {children} +
+
+ ); +} diff --git a/src/app/home/FundsTransfer/page.tsx b/src/app/home/FundsTransfer/page.tsx new file mode 100644 index 0000000..025e1bc --- /dev/null +++ b/src/app/home/FundsTransfer/page.tsx @@ -0,0 +1,110 @@ +"use client"; + +import { + Box, + Button, + Flex, + Group, + Radio, + Select, + Text, + TextInput, + Title, +} from "@mantine/core"; +import { useState } from "react"; + +export default function FundTransferForm() { + const [paymentMethod, setPaymentMethod] = useState("imps"); + + return ( + + + + Enter Transaction Details + + + {/* Transfer From */} +
+ + Transfer from + +