Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 })));
Expand Down Expand Up @@ -184,7 +185,19 @@ function MainApp() {

// Authenticated 6-Tab Application with Full-Screen Overlays
return (
<div className="min-h-screen bg-[#f8f9fa] dark:bg-[#202124] text-[#202124] dark:text-[#e8eaed] flex flex-col selection:bg-[#0494f4]/20 selection:text-[#0494f4] transition-colors duration-200">
<BansifyShell
sections={GITPLUS_SECTIONS}
activeSection={activeTab}
onSelect={(id) => 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"
>
<div className="flex h-full min-h-0 flex-col overflow-y-auto bg-[#f8f9fa] dark:bg-[#202124] text-[#202124] dark:text-[#e8eaed] selection:bg-[#0494f4]/20 selection:text-[#0494f4] transition-colors duration-200">
{/* Top Header (Curved at bottom two ends) */}
<Header
user={user}
Expand Down Expand Up @@ -297,6 +310,7 @@ function MainApp() {
<SettingsView onClose={() => setShowSettingsModal(false)} />
)}
</div>
</BansifyShell>
);
}

Expand Down
20 changes: 20 additions & 0 deletions src/data/dock.ts
Original file line number Diff line number Diff line change
@@ -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' },
];
38 changes: 38 additions & 0 deletions src/data/social.ts
Original file line number Diff line number Diff line change
@@ -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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.4-7.6c.4-.3-.1-.5-.6-.2L7.6 13.3 3.2 12c-1-.3-1-1 .2-1.4l17-6.6c.8-.3 1.5.2 1.5 1.3z',
github:
'M12 2a10 10 0 0 0-3.2 19.5c.5.1.7-.2.7-.5v-1.9c-2.8.6-3.4-1.3-3.4-1.3-.4-1.2-1.1-1.5-1.1-1.5-.9-.6.1-.6.1-.6 1 .1 1.5 1 1.5 1 .9 1.5 2.3 1.1 2.9.8.1-.6.3-1.1.6-1.3-2.2-.3-4.6-1.1-4.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 },
];
Loading
Loading