Move frontend to packages/client/, server to packages/server/.
Root package.json uses npm workspaces to orchestrate both.
Structure:
reaktor/
packages/client/ (React + Vite + Tone.js frontend)
packages/server/ (static file server, future API)
dist/ (built output, shared)
docker-compose.yml (app + PostgreSQL for future backend)
- npm run dev → runs Vite dev server from client workspace
- npm run build → builds client, outputs to root dist/
- npm run start → runs server.js serving dist/
- Dockerfile updated for multi-stage monorepo build
- docker-compose.yml added with PostgreSQL service (ready for Phase 1)
- All imports and paths preserved, zero functionality change
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
17 lines
488 B
JavaScript
17 lines
488 B
JavaScript
export default function MobileTabBar({ tabs, activeTab, onTabChange }) {
|
|
return (
|
|
<nav className="mobile-tab-bar">
|
|
{tabs.map(tab => (
|
|
<button
|
|
key={tab.id}
|
|
className={`mobile-tab ${activeTab === tab.id ? 'active' : ''}`}
|
|
onClick={() => onTabChange(tab.id)}
|
|
>
|
|
<span className="mobile-tab-icon">{tab.icon}</span>
|
|
<span className="mobile-tab-label">{tab.label}</span>
|
|
</button>
|
|
))}
|
|
</nav>
|
|
);
|
|
}
|