2026-04-29 13:55:37 +02:00
|
|
|
import type { Metadata, Viewport } from 'next';
|
2026-05-01 16:37:40 +02:00
|
|
|
import Script from 'next/script';
|
2026-04-29 13:59:03 +02:00
|
|
|
import { headers } from 'next/headers';
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
import { Inter, JetBrains_Mono } from 'next/font/google';
|
|
|
|
|
import { Toaster } from 'sonner';
|
2026-04-29 13:59:03 +02:00
|
|
|
import { classifyFormFactor } from '@/lib/form-factor';
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
import './globals.css';
|
|
|
|
|
|
|
|
|
|
const inter = Inter({
|
|
|
|
|
subsets: ['latin'],
|
|
|
|
|
variable: '--font-sans',
|
|
|
|
|
display: 'swap',
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const jetbrainsMono = JetBrains_Mono({
|
|
|
|
|
subsets: ['latin'],
|
|
|
|
|
variable: '--font-mono',
|
|
|
|
|
display: 'swap',
|
|
|
|
|
});
|
|
|
|
|
|
2026-04-29 13:55:37 +02:00
|
|
|
export const viewport: Viewport = {
|
|
|
|
|
width: 'device-width',
|
|
|
|
|
initialScale: 1,
|
|
|
|
|
viewportFit: 'cover',
|
|
|
|
|
themeColor: '#1e2844',
|
|
|
|
|
};
|
|
|
|
|
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
export const metadata: Metadata = {
|
|
|
|
|
title: {
|
|
|
|
|
default: 'Port Nimara CRM',
|
|
|
|
|
template: '%s | Port Nimara CRM',
|
|
|
|
|
},
|
|
|
|
|
description: 'Marina management system for Port Nimara',
|
2026-04-29 13:55:37 +02:00
|
|
|
appleWebApp: {
|
|
|
|
|
capable: true,
|
|
|
|
|
statusBarStyle: 'black-translucent',
|
|
|
|
|
title: 'Port Nimara',
|
|
|
|
|
},
|
|
|
|
|
icons: {
|
|
|
|
|
icon: [
|
|
|
|
|
{ url: '/icon-192.png', sizes: '192x192', type: 'image/png' },
|
|
|
|
|
{ url: '/icon-512.png', sizes: '512x512', type: 'image/png' },
|
|
|
|
|
],
|
|
|
|
|
apple: '/apple-touch-icon.png',
|
|
|
|
|
},
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
};
|
|
|
|
|
|
2026-04-29 13:59:03 +02:00
|
|
|
export default async function RootLayout({ children }: { children: React.ReactNode }) {
|
|
|
|
|
const headerList = await headers();
|
|
|
|
|
const formFactor = classifyFormFactor(headerList.get('user-agent'));
|
|
|
|
|
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
return (
|
|
|
|
|
<html lang="en" suppressHydrationWarning>
|
2026-05-01 16:37:40 +02:00
|
|
|
<head>
|
|
|
|
|
{process.env.NODE_ENV === 'development' && (
|
|
|
|
|
<Script
|
|
|
|
|
src="//unpkg.com/react-grab/dist/index.global.js"
|
|
|
|
|
crossOrigin="anonymous"
|
|
|
|
|
strategy="beforeInteractive"
|
|
|
|
|
/>
|
|
|
|
|
)}
|
|
|
|
|
</head>
|
2026-04-29 13:59:03 +02:00
|
|
|
<body
|
|
|
|
|
data-form-factor={formFactor}
|
|
|
|
|
className={`${inter.variable} ${jetbrainsMono.variable} font-sans antialiased`}
|
|
|
|
|
>
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
{children}
|
|
|
|
|
<Toaster richColors position="top-right" />
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
);
|
|
|
|
|
}
|