diff --git a/src/App.tsx b/src/App.tsx
index de5f8da..c7392c4 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -5,6 +5,7 @@ import { GitHubUser, GitHubRepo, GitHubRateLimit } from './types/github';
import { AuthScreen } from './components/AuthScreen';
import { Header } from './components/Header';
import { BottomNav, TabType } from './components/BottomNav';
+import { BansifyShell, GITPLUS_SECTIONS } from './ui/BansifyShell';
import { ReposTab } from './components/tabs/ReposTab';
import type { CodebaseSubTab } from './components/tabs/CodebaseTab';
const CodebaseTab = lazy(() => import('./components/tabs/CodebaseTab').then((m) => ({ default: m.CodebaseTab })));
@@ -184,7 +185,19 @@ function MainApp() {
// Authenticated 6-Tab Application with Full-Screen Overlays
return (
-
+
setActiveTab(id as typeof activeTab)}
+ onOpenSettings={() => setShowSettingsModal(true)}
+ isDark={document.documentElement.classList.contains('dark')}
+ onToggleTheme={() => document.documentElement.classList.toggle('dark')}
+ userName={user?.login}
+ userEmail={undefined}
+ onAccount={() => setShowProfileModal(true)}
+ searchPlaceholder="Search repositories"
+ >
+
{/* Top Header (Curved at bottom two ends) */}
setShowSettingsModal(false)} />
)}
+
);
}
diff --git a/src/data/dock.ts b/src/data/dock.ts
new file mode 100644
index 0000000..f61d459
--- /dev/null
+++ b/src/data/dock.ts
@@ -0,0 +1,20 @@
+import { Fingerprint, Mail, HardDrive, Video, ShoppingBag, Bot, Store } from 'lucide-react';
+
+export interface DockItem {
+ id: string;
+ label: string;
+ icon: React.ComponentType<{ className?: string; strokeWidth?: number }>;
+ url: string;
+ logoSrc?: string;
+}
+
+/** The app dock, identical to the website's. */
+export const APP_DOCK: DockItem[] = [
+ { id: 'accounts', label: 'Bansify Accounts', icon: Fingerprint, url: 'https://accounts.bansify.com', logoSrc: 'https://accounts.bansify.com/icon-192.png' },
+ { id: 'mail', label: 'Bansify Mail', icon: Mail, url: 'https://mail.bansify.com', logoSrc: 'https://mail.bansify.com/icon-192.png' },
+ { id: 'drive', label: 'Bansify Drive', icon: HardDrive, url: 'https://drive.bansify.com', logoSrc: 'https://drive.bansify.com/icon-192.png' },
+ { id: 'meet', label: 'Bansify Meet', icon: Video, url: 'https://meet.bansify.com', logoSrc: 'https://meet.bansify.com/icon-192.png' },
+ { id: 'pay', label: 'Bansify Pay', icon: ShoppingBag, url: 'https://pay.bansify.com', logoSrc: 'https://pay.bansify.com/icon-192.png' },
+ { id: 'ai', label: 'Bansify AI', icon: Bot, url: 'https://ai.bansify.com', logoSrc: 'https://ai.bansify.com/icon-192.png' },
+ { id: 'store', label: 'Bansify Store', icon: Store, url: 'https://store.bansify.com', logoSrc: 'https://store.bansify.com/icon-192.png' },
+];
diff --git a/src/data/social.ts b/src/data/social.ts
new file mode 100644
index 0000000..50c38c3
--- /dev/null
+++ b/src/data/social.ts
@@ -0,0 +1,38 @@
+/**
+ * The Bansify social accounts, with their real brand marks as inline SVG paths so the card
+ * needs neither an icon font nor a network request.
+ */
+export interface SocialLink {
+ id: string;
+ label: string;
+ handle: string;
+ url: string;
+ color: string;
+ path: string;
+}
+
+const P = {
+ facebook:
+ 'M13.5 21v-7h2.4l.4-2.8h-2.8V9.4c0-.8.2-1.4 1.4-1.4h1.5V5.5c-.3 0-1.2-.1-2.2-.1-2.2 0-3.7 1.3-3.7 3.8v2H8v2.8h2.5v7h3z',
+ instagram:
+ 'M12 7.2A4.8 4.8 0 1 0 16.8 12 4.8 4.8 0 0 0 12 7.2zm0 7.9A3.1 3.1 0 1 1 15.1 12 3.1 3.1 0 0 1 12 15.1zM17 6.2a1.1 1.1 0 1 0 1.1 1.1A1.1 1.1 0 0 0 17 6.2zM12 4.6c1.9 0 2.2 0 3 .1a4 4 0 0 1 1.5.3 2.7 2.7 0 0 1 1.5 1.5 4 4 0 0 1 .3 1.5c0 .8.1 1.1.1 3s0 2.2-.1 3a4 4 0 0 1-.3 1.5 2.7 2.7 0 0 1-1.5 1.5 4 4 0 0 1-1.5.3c-.8 0-1.1.1-3 .1s-2.2 0-3-.1a4 4 0 0 1-1.5-.3 2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6-5 0-1.1.4-2 1-2.7-.1-.3-.4-1.3.1-2.7 0 0 .8-.3 2.7 1a9.4 9.4 0 0 1 5 0c1.9-1.3 2.7-1 2.7-1 .5 1.4.2 2.4.1 2.7.6.7 1 1.6 1 2.7 0 3.9-2.4 4.7-4.6 5 .4.3.7.9.7 1.9v2.8c0 .3.2.6.7.5A10 10 0 0 0 12 2z',
+};
+
+export const SOCIAL_LINKS: SocialLink[] = [
+ { id: 'facebook', label: 'Facebook', handle: '@bansifyofficial', url: 'https://facebook.com/bansifyofficial', color: '#1877F2', path: P.facebook },
+ { id: 'instagram', label: 'Instagram', handle: '@bansifyofficial', url: 'https://instagram.com/bansifyofficial', color: '#E1306C', path: P.instagram },
+ { id: 'youtube', label: 'YouTube', handle: '@bansifyofficial', url: 'https://youtube.com/@bansifyofficial', color: '#FF0000', path: P.youtube },
+ { id: 'x', label: 'X', handle: '@bansifyofficial', url: 'https://x.com/bansifyofficial', color: '#0F1419', path: P.x },
+ { id: 'linkedin', label: 'LinkedIn', handle: '@bansifyofficial', url: 'https://linkedin.com/company/bansifyofficial', color: '#0A66C2', path: P.linkedin },
+ { id: 'telegram', label: 'Telegram', handle: '@bansifyofficial', url: 'https://t.me/bansifyofficial', color: '#229ED9', path: P.telegram },
+ { id: 'github', label: 'GitHub', handle: '@Bansify', url: 'https://github.com/Bansify', color: '#181717', path: P.github },
+];
diff --git a/src/ui/BansifyShell.tsx b/src/ui/BansifyShell.tsx
new file mode 100644
index 0000000..3162014
--- /dev/null
+++ b/src/ui/BansifyShell.tsx
@@ -0,0 +1,425 @@
+import React, { useState } from 'react';
+import {
+ FolderGit2,
+ Code2,
+ GitPullRequest,
+ CircleDot,
+ Compass,
+ User,
+ Settings,
+ ChevronLeft,
+ ChevronRight,
+ Sun,
+ Moon,
+ Search,
+ X,
+ Menu,
+} from 'lucide-react';
+import { APP_DOCK, type DockItem } from '../data/dock';
+import { SOCIAL_LINKS } from '../data/social';
+
+export interface ShellSection {
+ id: string;
+ label: string;
+ icon: React.ComponentType<{ className?: string; strokeWidth?: number }>;
+}
+
+interface BansifyShellProps {
+ sections: ShellSection[];
+ activeSection: string;
+ onSelect: (id: string) => void;
+ onOpenSettings: () => void;
+ isDark: boolean;
+ onToggleTheme: () => void;
+ userName?: string;
+ userEmail?: string;
+ userAvatar?: string | null;
+ onAccount: () => void;
+ searchPlaceholder?: string;
+ searchValue?: string;
+ onSearch?: (value: string) => void;
+ children: React.ReactNode;
+}
+
+const DockTile: React.FC<{ item: DockItem; active?: boolean }> = ({ item, active }) => {
+ const [failed, setFailed] = useState(false);
+ const Icon = item.icon;
+ return (
+
+ {item.logoSrc && !failed ? (
+
setFailed(true)} className="w-full h-full object-cover" />
+ ) : (
+
+ )}
+
+ );
+};
+
+/** The website's five-card layout: panel, search pill, content, social card, dock. */
+export const BansifyShell: React.FC
= ({
+ sections,
+ activeSection,
+ onSelect,
+ onOpenSettings,
+ isDark,
+ onToggleTheme,
+ userName,
+ userEmail,
+ userAvatar,
+ onAccount,
+ searchPlaceholder = 'Search repositories',
+ searchValue,
+ onSearch,
+ children,
+}) => {
+ const [open, setOpen] = useState(true);
+ const [mobileNav, setMobileNav] = useState(false);
+ const [panes, setPanes] = useState([]);
+ const [paneCollapsed, setPaneCollapsed] = useState>({});
+ const [query, setQuery] = useState(searchValue ?? '');
+
+ const initial = (userName || 'B').slice(0, 1).toUpperCase();
+ const openPane = (item: DockItem) =>
+ setPanes((list) => (list.some((p) => p.id === item.id) ? list : [...list, item].slice(-2)));
+
+ const row = (item: ShellSection, isOpen: boolean) => {
+ const Icon = item.icon;
+ const active = activeSection === item.id;
+ return (
+
+ );
+ };
+
+ const panel = (variant: 'desktop' | 'drawer') => {
+ const isOpen = variant === 'drawer' ? true : open;
+ return (
+
+
+ {isOpen ? (
+ <>
+
+
+ Bansify{' '}
+ GitPlus
+
+
+ >
+ ) : (
+
+ )}
+
+
+
+ {sections.map((item) => row(item, isOpen))}
+
+
+
+
+
+
+ {!isOpen && (
+
+
+
+ )}
+
+
+
+
+ );
+ };
+
+ return (
+
+
+
{panel('desktop')}
+
+ {mobileNav && (
+
+
+ )}
+
+
+
+
+
+
+ {
+ setQuery(e.target.value);
+ onSearch?.(e.target.value);
+ }}
+ placeholder={searchPlaceholder}
+ className="flex-1 min-w-0 bg-transparent outline-none text-[13px] placeholder:text-zinc-400"
+ />
+
+
+
+ {SOCIAL_LINKS.map((social) => (
+
+
+
+ ))}
+
+
+
+
+ {children}
+
+
+
+ {panes.map((item) => {
+ const isCollapsed = !!paneCollapsed[item.id];
+ return (
+
+
+ {isCollapsed ? (
+
+ ) : (
+ <>
+
+
{item.label}
+
+ Open in tab
+
+
+
+ >
+ )}
+
+ {!isCollapsed && (
+
+ )}
+
+ );
+ })}
+
+
+
+
+ );
+};
+
+export const GITPLUS_SECTIONS: ShellSection[] = [
+ { id: 'repos', label: 'Repos', icon: FolderGit2 },
+ { id: 'codebase', label: 'Code', icon: Code2 },
+ { id: 'pulls', label: 'Pulls', icon: GitPullRequest },
+ { id: 'issues', label: 'Issues', icon: CircleDot },
+ { id: 'explore', label: 'Explore', icon: Compass },
+ { id: 'profile', label: 'Profile', icon: User },
+];