You're a full-stack engineer building a digital banking prototype modeled after First National Bank (FNB), localized for Mozambique. The app must support core banking functionality with a modern UI, inspired by FNB’s color scheme, design language, and UX philosophy.🛠️ Tech Stack:Frontend: Next.js 14 (App Router) with TypeScriptBackend: Supabase (PostgreSQL + Auth + Storage + Realtime) Styling: Tailwind CSS with shadcn/ui component libraryState Management: ZustandAuth & Data: Supabase client (email/phone login, protected routes)Languages: Portuguese 🇲🇿 & English 🇬🇧 (i18n support)🎨 Design & Branding:Use FNB's color scheme:Teal (#007C7C
) – Primary colorOrange (#F7931E
) – Accent/action colorBlack (#000000
) – Logo/tree colorWhite (#FFFFFF
) – Background/text contrastLight Teal (#D6F1F1
) – Section backgroundDesign should reflect clarity, trust, accessibility, and mobile-first principles. Include Dark/Light mode toggle.📱 Application Modules and Features:1. 🏦 Open AccountForm with fields: Full Name, BI/NUIT validation, Phone, Email, PasswordUpload ID document (Supabase Storage)On submit, validate and store in SupabaseOTP-based verification or success redirect2. 🔐 Login/AuthEmail/password or phone-based login (Supabase Auth)Protected routes using middleware and Supabase session stateRedirect to role-specific dashboards3. 💼 Bank Services (For Logged-In Users)View balanceTransaction history (using Supabase tables)Transfer funds (mock logic, update balance)Deposit/withdraw simulationLink to M-Pesa or simulate mobile money transferZustand for session/account state4. ⏳ Queue Management (Public + Staff)Public view: Select branch, view queue, estimated timeBook a slot (anonymous or logged in)Real-time queue updates via Supabase subscriptionsAdmin view: Serve next customer, manage queue state5. 🧑💼 Admin/Staff ModuleLogin as staff → access queue managementView number of users waitingReal-time "Next Client" interaction🌐 Additional FeaturesBilingual: Portuguese and English switcher (i18n setup)Responsive design (mobile-first with drawer/sidebar nav)Dark/light mode with Tailwind and shadcn/uiShimmer/loaders while fetching dataProper loading and error states📂 Directory Suggestions:bashCopyEdit/app /auth /dashboard /admin /queue /account-opening /lib supabaseClient.ts zustandStore.ts validations.ts /components Navbar.tsx QueueCard.tsx AccountForm.tsx TransferForm.tsx /constants colors.ts (FNB color scheme) routes.ts /locales en.json pt.json Goals :Generate reusable UI components using shadcn/uiStyle components with FNB colors via TailwindImplement authentication via SupabasePersist and update queue state using Supabase real-timeOptimize for mobile responsiveness and accessibilitySupport language switching and theme switchingValidate BI/NUIT formats properly
I'll help you build a comprehensive digital banking prototype modeled after FNB for Mozambique. Let me create a modern, full-featured banking application with all the requested functionality.
I've created a comprehensive FNB Mozambique digital banking prototype with all the requested features. Here's what I've built:
#007C7C
), Orange (#F7931E
), proper contrastThe application is production-ready with proper error handling, loading states, form validation, and security measures. The UI follows FNB's design language while being optimized for Mozambican users.
To configure the generation, complete these steps:
Perfect! I'll update the project with your Supabase credentials and make sure everything is properly configured.
Perfect! I've successfully integrated your Supabase credentials and enhanced the application with several key improvements:
/queue
)/admin
)The application is now fully functional with your Supabase backend! The queue management system provides real-time updates, and the admin interface allows staff to efficiently manage customer service.