Compare commits

...

1 Commits

Author SHA1 Message Date
Flatlogic Bot
fda5370844 V1 2026-01-22 15:00:20 +00:00
5 changed files with 435 additions and 505 deletions

View File

@ -1,346 +1,229 @@
:root { :root {
--color-bg: #ffffff; --primary-green: #059669;
--color-text: #1a1a1a; --primary-blue: #1E3A8A;
--color-primary: #2563EB; /* Vibrant Blue */ --accent-gold: #D4AF37;
--color-secondary: #000000; --bg-light: #F9FAFB;
--color-accent: #A3E635; /* Lime Green */ --text-dark: #111827;
--color-surface: #f8f9fa; --text-muted: #6B7280;
--font-heading: 'Space Grotesk', sans-serif; --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--font-body: 'Inter', sans-serif;
--border-width: 2px;
--shadow-hard: 5px 5px 0px #000;
--shadow-hover: 8px 8px 0px #000;
--radius-pill: 50rem;
--radius-card: 1rem;
} }
body { body {
font-family: var(--font-body); background-color: var(--bg-light);
background-color: var(--color-bg); font-family: 'Inter', system-ui, -apple-system, sans-serif;
color: var(--color-text); color: var(--text-dark);
overflow-x: hidden; padding-bottom: 2rem;
} }
h1, h2, h3, h4, h5, h6, .navbar-brand {
font-family: var(--font-heading);
letter-spacing: -0.03em;
}
/* Utilities */
.text-primary { color: var(--color-primary) !important; }
.bg-black { background-color: #000 !important; }
.text-white { color: #fff !important; }
.shadow-hard { box-shadow: var(--shadow-hard); }
.border-2-black { border: var(--border-width) solid #000; }
.py-section { padding-top: 5rem; padding-bottom: 5rem; }
/* Navbar */
.navbar { .navbar {
background: rgba(255, 255, 255, 0.9); background: white;
backdrop-filter: blur(10px); box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
border-bottom: var(--border-width) solid transparent; padding: 0.75rem 1rem;
transition: all 0.3s;
padding-top: 1rem;
padding-bottom: 1rem;
} }
.navbar.scrolled { .navbar-brand {
border-bottom-color: #000; font-weight: 700;
padding-top: 0.5rem; color: var(--primary-blue);
padding-bottom: 0.5rem; display: flex;
align-items: center;
gap: 0.5rem;
} }
.brand-text { .navbar-brand span {
color: var(--primary-green);
}
.currency-badge {
background: #E5E7EB;
border-radius: 9999px;
padding: 0.25rem 0.75rem;
font-size: 0.875rem;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
}
.currency-badge:hover {
background: #D1D5DB;
}
/* Wallet Cards Slider */
.wallet-slider {
display: flex;
overflow-x: auto;
gap: 1rem;
padding: 1rem 0;
scrollbar-width: none; /* Firefox */
}
.wallet-slider::-webkit-scrollbar {
display: none; /* Safari and Chrome */
}
.wallet-card {
min-width: 280px;
background: white;
border-radius: 12px;
padding: 1.25rem;
box-shadow: var(--card-shadow);
border-left: 4px solid var(--primary-blue);
transition: transform 0.2s;
}
.wallet-card:active {
transform: scale(0.98);
}
.wallet-card.tontine { border-left-color: var(--accent-gold); }
.wallet-card.savings { border-left-color: var(--primary-green); }
.wallet-type {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
margin-bottom: 0.5rem;
font-weight: 600;
}
.wallet-balance {
font-size: 1.5rem; font-size: 1.5rem;
font-weight: 800;
}
.nav-link {
font-weight: 500;
color: var(--color-text);
margin-left: 1rem;
position: relative;
}
.nav-link:hover, .nav-link.active {
color: var(--color-primary);
}
/* Buttons */
.btn {
font-weight: 700; font-weight: 700;
font-family: var(--font-heading); color: var(--text-dark);
padding: 0.8rem 2rem;
border-radius: var(--radius-pill);
border: var(--border-width) solid #000;
transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
box-shadow: var(--shadow-hard);
} }
.btn:hover { .wallet-currency {
transform: translate(-2px, -2px); font-size: 0.875rem;
box-shadow: var(--shadow-hover); color: var(--text-muted);
margin-left: 0.25rem;
} }
.btn:active { /* Quick Actions */
transform: translate(2px, 2px); .action-grid {
box-shadow: 0 0 0 #000; display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0.75rem;
margin-top: 1.5rem;
} }
.btn-primary { .action-btn {
background-color: var(--color-primary);
border-color: #000;
color: #fff;
}
.btn-primary:hover {
background-color: #1d4ed8;
border-color: #000;
color: #fff;
}
.btn-outline-dark {
background-color: #fff;
color: #000;
}
.btn-cta {
background-color: var(--color-accent);
color: #000;
}
.btn-cta:hover {
background-color: #8cc629;
color: #000;
}
/* Hero Section */
.hero-section {
min-height: 100vh;
padding-top: 80px;
}
.background-blob {
position: absolute;
border-radius: 50%;
filter: blur(80px);
opacity: 0.6;
z-index: 1;
}
.blob-1 {
top: -10%;
right: -10%;
width: 600px;
height: 600px;
background: radial-gradient(circle, var(--color-accent), transparent);
}
.blob-2 {
bottom: 10%;
left: -10%;
width: 500px;
height: 500px;
background: radial-gradient(circle, var(--color-primary), transparent);
}
.highlight-text {
background: linear-gradient(120deg, transparent 0%, transparent 40%, var(--color-accent) 40%, var(--color-accent) 100%);
background-repeat: no-repeat;
background-size: 100% 40%;
background-position: 0 88%;
padding: 0 5px;
}
.dot { color: var(--color-primary); }
.badge-pill {
display: inline-block;
padding: 0.5rem 1rem;
border: 2px solid #000;
border-radius: 50px;
font-weight: 700;
background: #fff;
box-shadow: 4px 4px 0 #000;
font-family: var(--font-heading);
font-size: 0.9rem;
}
/* Marquee */
.marquee-container {
overflow: hidden;
white-space: nowrap;
border-top: 2px solid #000;
border-bottom: 2px solid #000;
}
.rotate-divider {
transform: rotate(-2deg) scale(1.05);
z-index: 10;
position: relative;
margin-top: -50px;
margin-bottom: 30px;
}
.marquee-content {
display: inline-block;
animation: marquee 20s linear infinite;
font-family: var(--font-heading);
font-weight: 700;
font-size: 1.5rem;
letter-spacing: 2px;
}
@keyframes marquee {
0% { transform: translateX(0); }
100% { transform: translateX(-50%); }
}
/* Portfolio Cards */
.project-card {
border: 2px solid #000;
border-radius: var(--radius-card);
overflow: hidden;
background: #fff;
transition: transform 0.3s ease;
box-shadow: var(--shadow-hard);
height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center;
gap: 0.5rem;
background: white;
border: none;
border-radius: 12px;
padding: 1rem 0.5rem;
box-shadow: var(--card-shadow);
transition: background 0.2s;
} }
.project-card:hover { .action-btn:active {
transform: translateY(-10px); background: #F3F4F6;
box-shadow: 8px 8px 0 #000;
} }
.card-img-holder { .action-icon {
height: 250px; width: 40px;
height: 40px;
border-radius: 10px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border-bottom: 2px solid #000; background: #EFF6FF;
position: relative; color: var(--primary-blue);
font-size: 4rem;
} }
.placeholder-art { .action-btn.tontine .action-icon {
transition: transform 0.3s ease; background: #FEF3C7;
color: #B45309;
} }
.project-card:hover .placeholder-art { .action-label {
transform: scale(1.2) rotate(10deg); font-size: 0.7rem;
font-weight: 600;
color: var(--text-dark);
text-align: center;
} }
.bg-soft-blue { background-color: #e0f2fe; } /* Activity List */
.bg-soft-green { background-color: #dcfce7; } .activity-section {
.bg-soft-purple { background-color: #f3e8ff; } margin-top: 2rem;
.bg-soft-yellow { background-color: #fef9c3; }
.category-tag {
position: absolute;
top: 15px;
right: 15px;
background: #000;
color: #fff;
padding: 5px 12px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 700;
} }
.card-body { padding: 1.5rem; } .section-header {
display: flex;
.link-arrow { justify-content: space-between;
text-decoration: none;
color: #000;
font-weight: 700;
display: inline-flex;
align-items: center; align-items: center;
margin-top: auto; margin-bottom: 1rem;
} }
.link-arrow i { transition: transform 0.2s; margin-left: 5px; } .section-title {
.link-arrow:hover i { transform: translateX(5px); } font-size: 1.125rem;
font-weight: 700;
/* About */
.about-image-stack {
position: relative;
height: 400px;
width: 100%;
} }
.stack-card { .activity-item {
position: absolute; background: white;
width: 80%; border-radius: 12px;
height: 100%;
border-radius: var(--radius-card);
border: 2px solid #000;
box-shadow: var(--shadow-hard);
left: 10%;
transform: rotate(-3deg);
background-size: cover;
}
/* Forms */
.form-control {
border: 2px solid #000;
border-radius: 0.5rem;
padding: 1rem; padding: 1rem;
font-weight: 500; display: flex;
background: #f8f9fa; align-items: center;
gap: 1rem;
margin-bottom: 0.75rem;
box-shadow: var(--card-shadow);
} }
.form-control:focus { .activity-icon {
box-shadow: 4px 4px 0 var(--color-primary); width: 40px;
border-color: #000; height: 40px;
background: #fff; border-radius: 50%;
background: #F3F4F6;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
} }
/* Animations */ .activity-details {
.animate-up { flex-grow: 1;
opacity: 0;
transform: translateY(30px);
animation: fadeUp 0.8s ease forwards;
} }
.delay-100 { animation-delay: 0.1s; } .activity-name {
.delay-200 { animation-delay: 0.2s; } font-weight: 600;
font-size: 0.9rem;
@keyframes fadeUp {
to {
opacity: 1;
transform: translateY(0);
}
} }
/* Social */ .activity-meta {
.social-links a { font-size: 0.75rem;
transition: transform 0.2s; color: var(--text-muted);
display: inline-block;
}
.social-links a:hover {
transform: scale(1.2) rotate(10deg);
color: var(--color-accent) !important;
} }
/* Responsive */ .activity-amount {
@media (max-width: 991px) { font-weight: 700;
.rotate-divider { text-align: right;
transform: rotate(0); }
margin-top: 0;
margin-bottom: 2rem; .amount-positive { color: var(--primary-green); }
} .amount-negative { color: #DC2626; }
.hero-section { .status-badge {
padding-top: 120px; font-size: 0.65rem;
text-align: center; padding: 0.1rem 0.4rem;
min-height: auto; border-radius: 4px;
padding-bottom: 100px; text-transform: uppercase;
} font-weight: 700;
}
.display-1 { font-size: 3.5rem; }
.status-pending { background: #FEF3C7; color: #92400E; }
.blob-1 { width: 300px; height: 300px; right: -20%; } .status-success { background: #D1FAE5; color: #065F46; }
.blob-2 { width: 300px; height: 300px; left: -20%; }
/* Modal Styles */
.modal-content {
border-radius: 16px;
border: none;
}
.modal-header {
border-bottom: 1px solid #F3F4F6;
} }

View File

@ -1,73 +1,52 @@
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
const exchangeRates = {
// Smooth scrolling for navigation links 'XOF': 1,
document.querySelectorAll('a[href^="#"]').forEach(anchor => { 'GHS': 0.02, // Mock: 1 XOF = 0.02 GHS (fake)
anchor.addEventListener('click', function (e) { 'GNF': 13.5 // Mock: 1 XOF = 13.5 GNF (fake)
e.preventDefault();
const targetId = this.getAttribute('href');
if (targetId === '#') return;
const targetElement = document.querySelector(targetId);
if (targetElement) {
// Close mobile menu if open
const navbarToggler = document.querySelector('.navbar-toggler');
const navbarCollapse = document.querySelector('.navbar-collapse');
if (navbarCollapse.classList.contains('show')) {
navbarToggler.click();
}
// Scroll with offset
const offset = 80;
const elementPosition = targetElement.getBoundingClientRect().top;
const offsetPosition = elementPosition + window.pageYOffset - offset;
window.scrollTo({
top: offsetPosition,
behavior: "smooth"
});
}
});
});
// Navbar scroll effect
const navbar = document.querySelector('.navbar');
window.addEventListener('scroll', () => {
if (window.scrollY > 50) {
navbar.classList.add('scrolled', 'shadow-sm', 'bg-white');
navbar.classList.remove('bg-transparent');
} else {
navbar.classList.remove('scrolled', 'shadow-sm', 'bg-white');
navbar.classList.add('bg-transparent');
}
});
// Intersection Observer for fade-up animations
const observerOptions = {
threshold: 0.1,
rootMargin: "0px 0px -50px 0px"
}; };
const observer = new IntersectionObserver((entries) => { const currencySymbols = {
entries.forEach(entry => { 'XOF': 'CFA',
if (entry.isIntersecting) { 'GHS': 'GH₵',
entry.target.classList.add('animate-up'); 'GNF': 'FG'
entry.target.style.opacity = "1"; };
observer.unobserve(entry.target); // Only animate once
let currentCurrency = 'XOF';
const currencyBadge = document.getElementById('currencyBadge');
const balanceElements = document.querySelectorAll('[data-base-balance]');
function updateBalances(newCurrency) {
currentCurrency = newCurrency;
currencyBadge.textContent = newCurrency;
balanceElements.forEach(el => {
const baseBalance = parseFloat(el.getAttribute('data-base-balance'));
const converted = baseBalance * exchangeRates[newCurrency];
// Formatting
let formatted;
if (newCurrency === 'XOF') {
formatted = new Intl.NumberFormat('fr-FR').format(Math.round(converted));
} else {
formatted = new Intl.NumberFormat('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 }).format(converted);
} }
el.innerHTML = `${formatted} <span class="wallet-currency">${currencySymbols[newCurrency]}</span>`;
}); });
}, observerOptions); }
// Select elements to animate (add a class 'reveal' to them in HTML if not already handled by CSS animation) currencyBadge.addEventListener('click', () => {
// For now, let's just make sure the hero animations run. const currencies = ['XOF', 'GHS', 'GNF'];
// If we want scroll animations, we'd add opacity: 0 to elements in CSS and reveal them here. let nextIndex = (currencies.indexOf(currentCurrency) + 1) % currencies.length;
// Given the request, the CSS animation I added runs on load for Hero. updateBalances(currencies[nextIndex]);
// Let's make the project cards animate in.
const projectCards = document.querySelectorAll('.project-card');
projectCards.forEach((card, index) => {
card.style.opacity = "0";
card.style.animationDelay = `${index * 0.1}s`;
observer.observe(card);
}); });
// Mock Quick Actions
document.querySelectorAll('.action-btn').forEach(btn => {
btn.addEventListener('click', () => {
const action = btn.querySelector('.action-label').textContent;
alert(`${action} module coming soon!`);
});
});
}); });

View File

@ -1,8 +1,8 @@
<?php <?php
// Generated by setup_mariadb_project.sh — edit as needed. // Generated by setup_mariadb_project.sh — edit as needed.
define('DB_HOST', '127.0.0.1'); define('DB_HOST', '127.0.0.1');
define('DB_NAME', 'app_37667'); define('DB_NAME', 'app_37709');
define('DB_USER', 'app_37667'); define('DB_USER', 'app_37709');
define('DB_PASS', '55d5e20b-59a5-479e-ab6f-3a1378ad6227'); define('DB_PASS', '55d5e20b-59a5-479e-ab6f-3a1378ad6227');
function db() { function db() {

View File

@ -0,0 +1,28 @@
-- Initial schema for AfriPay-Tontine
CREATE TABLE IF NOT EXISTS users (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100) NOT NULL,
phone VARCHAR(20) NOT NULL UNIQUE,
country VARCHAR(50) DEFAULT 'Togo',
currency_pref ENUM('XOF', 'GHS', 'GNF') DEFAULT 'XOF',
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE IF NOT EXISTS wallets (
id INT AUTO_INCREMENT PRIMARY KEY,
user_id INT NOT NULL,
type ENUM('current', 'savings', 'tontine', 'securities', 'escrow') NOT NULL,
balance DECIMAL(15, 2) DEFAULT 0.00,
currency VARCHAR(10) DEFAULT 'XOF',
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
FOREIGN KEY (user_id) REFERENCES users(id)
);
-- Seed initial user and wallets if not exists
INSERT IGNORE INTO users (id, name, phone, country, currency_pref) VALUES (1, 'Koffi Mensah', '+22890000000', 'Togo', 'XOF');
INSERT IGNORE INTO wallets (user_id, type, balance, currency) VALUES
(1, 'current', 250000.00, 'XOF'),
(1, 'savings', 1250000.00, 'XOF'),
(1, 'tontine', 50000.00, 'XOF'),
(1, 'securities', 0.00, 'XOF'),
(1, 'escrow', 15000.00, 'XOF');

322
index.php
View File

@ -1,150 +1,190 @@
<?php <?php
declare(strict_types=1); require_once 'db/config.php';
@ini_set('display_errors', '1');
@error_reporting(E_ALL);
@date_default_timezone_set('UTC');
$phpVersion = PHP_VERSION; // Fetch initial user data (Koffi)
$now = date('Y-m-d H:i:s'); try {
?> $stmt = db()->prepare("SELECT * FROM users WHERE id = 1");
<!doctype html> $stmt->execute();
<html lang="en"> $user = $stmt->fetch();
<head>
<meta charset="utf-8" /> $stmt = db()->prepare("SELECT * FROM wallets WHERE user_id = 1");
<meta name="viewport" content="width=device-width, initial-scale=1" /> $stmt->execute();
<title>New Style</title> $wallets = $stmt->fetchAll();
<?php
// Read project preview data from environment // Index wallets by type for easy access
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? ''; $walletMap = [];
foreach ($wallets as $w) {
$walletMap[$w['type']] = $w;
}
} catch (Exception $e) {
die("Error connecting to database: " . $e->getMessage());
}
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'AfriPay-Tontine: Comprehensive financial services for West Africa.';
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? ''; $projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
?> ?>
<?php if ($projectDescription): ?> <!DOCTYPE html>
<!-- Meta description --> <html lang="en">
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' /> <head>
<!-- Open Graph meta tags --> <meta charset="UTF-8">
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" /> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Twitter meta tags --> <title>AfriPay-Tontine | Dashboard</title>
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
<?php endif; ?> <!-- Meta Tags -->
<?php if ($projectImageUrl): ?> <meta name="description" content="<?= htmlspecialchars($projectDescription) ?>">
<!-- Open Graph image --> <meta property="og:title" content="AfriPay-Tontine Dashboard">
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" /> <meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>">
<!-- Twitter image --> <?php if ($projectImageUrl): ?>
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" /> <meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>">
<?php endif; ?> <?php endif; ?>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <!-- Fonts & Icons -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
<style> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
:root {
--bg-color-start: #6a11cb; <!-- CSS -->
--bg-color-end: #2575fc; <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
--text-color: #ffffff; <link rel="stylesheet" href="assets/css/custom.css?v=<?= time() ?>">
--card-bg-color: rgba(255, 255, 255, 0.01);
--card-border-color: rgba(255, 255, 255, 0.1);
}
body {
margin: 0;
font-family: 'Inter', sans-serif;
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
color: var(--text-color);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
text-align: center;
overflow: hidden;
position: relative;
}
body::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M-10 10L110 10M10 -10L10 110" stroke-width="1" stroke="rgba(255,255,255,0.05)"/></svg>');
animation: bg-pan 20s linear infinite;
z-index: -1;
}
@keyframes bg-pan {
0% { background-position: 0% 0%; }
100% { background-position: 100% 100%; }
}
main {
padding: 2rem;
}
.card {
background: var(--card-bg-color);
border: 1px solid var(--card-border-color);
border-radius: 16px;
padding: 2rem;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}
.loader {
margin: 1.25rem auto 1.25rem;
width: 48px;
height: 48px;
border: 3px solid rgba(255, 255, 255, 0.25);
border-top-color: #fff;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.hint {
opacity: 0.9;
}
.sr-only {
position: absolute;
width: 1px; height: 1px;
padding: 0; margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap; border: 0;
}
h1 {
font-size: 3rem;
font-weight: 700;
margin: 0 0 1rem;
letter-spacing: -1px;
}
p {
margin: 0.5rem 0;
font-size: 1.1rem;
}
code {
background: rgba(0,0,0,0.2);
padding: 2px 6px;
border-radius: 4px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
footer {
position: absolute;
bottom: 1rem;
font-size: 0.8rem;
opacity: 0.7;
}
</style>
</head> </head>
<body> <body>
<main>
<div class="card"> <!-- Top Navigation -->
<h1>Analyzing your requirements and generating your website…</h1> <nav class="navbar sticky-top">
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes"> <div class="container-fluid d-flex justify-content-between align-items-center">
<span class="sr-only">Loading…</span> <a class="navbar-brand" href="#">
</div> <i class="bi bi-shield-check-fill"></i>
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p> AfriPay<span>Tontine</span>
<p class="hint">This page will update automatically as the plan is implemented.</p> </a>
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p> <div class="d-flex align-items-center gap-3">
<span id="currencyBadge" class="currency-badge"><?= $user['currency_pref'] ?></span>
<div class="rounded-circle bg-light d-flex align-items-center justify-content-center" style="width: 35px; height: 35px;">
<i class="bi bi-person-fill text-muted"></i>
</div>
</div>
</div>
</nav>
<div class="container mt-3">
<!-- Welcome Header -->
<div class="mb-4">
<h5 class="fw-bold mb-1">Hello, <?= explode(' ', $user['name'])[0] ?> 👋</h5>
<p class="text-muted small">Your financial overview in <?= $user['country'] ?></p>
</div>
<!-- Wallets Slider -->
<div class="wallet-slider">
<!-- Current Account -->
<div class="wallet-card">
<div class="wallet-type">Current Account</div>
<div class="wallet-balance" data-base-balance="<?= $walletMap['current']['balance'] ?>">
<?= number_format((float)$walletMap['current']['balance'], 0, ',', ' ') ?> <span class="wallet-currency">CFA</span>
</div>
<div class="mt-2 small text-muted">Available Balance</div>
</div>
<!-- Savings Account -->
<div class="wallet-card savings">
<div class="wallet-type">Savings</div>
<div class="wallet-balance" data-base-balance="<?= $walletMap['savings']['balance'] ?>">
<?= number_format((float)$walletMap['savings']['balance'], 0, ',', ' ') ?> <span class="wallet-currency">CFA</span>
</div>
<div class="mt-2 small text-success"><i class="bi bi-graph-up-arrow"></i> +2.5% p.a.</div>
</div>
<!-- Tontine Account -->
<div class="wallet-card tontine">
<div class="wallet-type">Tontine Pot</div>
<div class="wallet-balance" data-base-balance="<?= $walletMap['tontine']['balance'] ?>">
<?= number_format((float)$walletMap['tontine']['balance'], 0, ',', ' ') ?> <span class="wallet-currency">CFA</span>
</div>
<div class="mt-2 small text-warning"><i class="bi bi-people-fill"></i> 3 active groups</div>
</div>
<!-- Escrow Account -->
<div class="wallet-card">
<div class="wallet-type">Escrow (SafePay)</div>
<div class="wallet-balance" data-base-balance="<?= $walletMap['escrow']['balance'] ?>">
<?= number_format((float)$walletMap['escrow']['balance'], 0, ',', ' ') ?> <span class="wallet-currency">CFA</span>
</div>
<div class="mt-2 small text-muted">Funds locked for delivery</div>
</div>
</div>
<!-- Quick Actions Grid -->
<div class="action-grid">
<button class="action-btn">
<div class="action-icon"><i class="bi bi-plus-lg"></i></div>
<div class="action-label">Deposit</div>
</button>
<button class="action-btn">
<div class="action-icon"><i class="bi bi-send"></i></div>
<div class="action-label">Send</div>
</button>
<button class="action-btn tontine">
<div class="action-icon"><i class="bi bi-people"></i></div>
<div class="action-label">Tontine</div>
</button>
<button class="action-btn">
<div class="action-icon"><i class="bi bi-safe"></i></div>
<div class="action-label">Escrow</div>
</button>
</div>
<!-- Recent Activity -->
<div class="activity-section">
<div class="section-header">
<div class="section-title">Recent Activity</div>
<a href="#" class="text-primary text-decoration-none small">See all</a>
</div>
<div class="activity-item">
<div class="activity-icon text-success"><i class="bi bi-arrow-down-left"></i></div>
<div class="activity-details">
<div class="activity-name">MTN Mobile Money</div>
<div class="activity-meta">Today, 10:45 AM Deposit</div>
</div>
<div class="activity-amount">
<div class="amount-positive">+15 000</div>
<span class="status-badge status-success">Success</span>
</div>
</div>
<div class="activity-item">
<div class="activity-icon text-primary"><i class="bi bi-globe"></i></div>
<div class="activity-details">
<div class="activity-name">Ghana Tontine <span class="small">🇬🇭</span></div>
<div class="activity-meta">Yesterday Contribution</div>
</div>
<div class="activity-amount">
<div class="amount-negative">-50 000</div>
<span class="status-badge status-pending">Pending</span>
</div>
</div>
</div>
</div> </div>
</main>
<footer> <!-- Bottom Navigation (Mobile) -->
Page updated: <?= htmlspecialchars($now) ?> (UTC) <div class="fixed-bottom bg-white border-top d-md-none py-2 px-4 d-flex justify-content-between">
</footer> <div class="text-primary text-center">
<i class="bi bi-house-door-fill d-block h5 mb-0"></i>
<span style="font-size: 0.6rem; font-weight: 700;">Home</span>
</div>
<div class="text-muted text-center">
<i class="bi bi-wallet2 d-block h5 mb-0"></i>
<span style="font-size: 0.6rem;">Wallets</span>
</div>
<div class="text-muted text-center">
<i class="bi bi-people d-block h5 mb-0"></i>
<span style="font-size: 0.6rem;">Tontine</span>
</div>
<div class="text-muted text-center">
<i class="bi bi-gear d-block h5 mb-0"></i>
<span style="font-size: 0.6rem;">Settings</span>
</div>
</div>
<!-- JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/main.js?v=<?= time() ?>"></script>
</body> </body>
</html> </html>