keronblackdev commited on
Commit
9d8ccd4
·
verified ·
1 Parent(s): 5f46aaa

You are a world-class frontend engineer. Generate a complete, deployable frontend for the Moto Money system. This frontend will be fully functional, responsive, and ready to integrate with an existing PHP/PDO backend API (api.php). Focus on web-first design but optimized for mobile devices. Use HTML5, CSS3, JavaScript (ES6+), Tailwind CSS, Bootstrap 5, Font Awesome, and Axios for API calls.

Browse files

Requirements

1. User Interfaces

Rider App:

Registration & Login pages (email/password).

Wallet Dashboard: balance, transactions, deposit/withdraw forms.

Loan page: apply for loan, view active/pending loans.

Notifications center: in-app notifications, alerts.

Offline mode support: queue transactions for sync.

Ambassador App:

Dashboard: list linked riders, wallet balances, commission overview.

Rider linking form.

Group lending overview & approvals.

Notifications center for messages to riders.

Admin Dashboard:

User management: view, edit, create riders/ambassadors.

Wallets/Transactions overview.

Payments/withdrawal approvals.

Reports: export to CSV, view KPIs.

Analytics overview (basic charts).

2. UX/Design

Mobile-first, responsive layout.

Use Tailwind CSS utilities + Bootstrap components.

Font Awesome icons for buttons/actions.

Clean, modern UI: cards, tables, modals, forms, alerts.

Multi-language support: English + placeholder for translations.

Consistent header/navigation/sidebar across pages.

3. Frontend Features

SPA-like behavior with AJAX requests (Axios) to api.php.

Session handling: store JWT or session token locally, attach to API requests.

Loading spinners & error/success alerts for async actions.

Form validation (client-side) for all inputs.

Table sorting/search/filtering for lists (transactions, riders, loans).

Modal dialogs for create/edit actions.

Dashboard charts for KPIs using Chart.js or lightweight charts library.

Push notifications UI stub (ready to connect to backend notifications module).

4. Project Structure

public/ for HTML pages.

public/assets/css/ for Tailwind/Bootstrap + custom styles.

public/assets/js/ for scripts (modular JS, e.g., wallet.js, loans.js, ambassador.js).

Components reusable via HTML partials or JS templates (modals, alerts, cards, tables).

index.html or landing page with links to Rider, Ambassador, Admin dashboards.

5. Integration Ready

Every action interacts with backend API endpoints (api.php?module=&action=).

Example Axios requests for login, deposit, withdrawal, loan apply, notifications.

Include placeholders for environment variables (API_BASE_URL) for dev/prod switching.

6. Extras

Offline-first design: forms queue locally (IndexedDB or localStorage) and retry when online.

Light animations: transitions on modals, buttons, alerts.

Clear separation of HTML, CSS, JS for maintainability.

Provide sample seed data in JS for testing (transactions, notifications, riders).

Deliverables

Complete folder structure with HTML/CSS/JS ready for deployment.

Fully functional pages for Rider, Ambassador, and Admin dashboards.

Readme describing how to integrate with backend API.

Commented JS and CSS for maintainability.

Acceptance Criteria

Visiting the landing page shows links to Rider, Ambassador, Admin.

Login/registration pages work visually and simulate API calls (can use mocked JSON responses if backend not available).

Dashboards are fully responsive and interactive: tables, modals, charts, notifications.

Code is clean, modular, and documented.

Ready to drop into a server that hosts the PHP backend.

Files changed (1) hide show
  1. README.md +8 -5
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Deepsite Project
3
- emoji: 🏆
4
- colorFrom: blue
5
- colorTo: yellow
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: DeepSite Project
3
+ colorFrom: gray
4
+ colorTo: gray
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://deepsite.hf.co).