teqo/src/app/(campaign)/layout.tsx
Cursor Agent ccfbf592a8
B123 — orientação na shell + aba sem títulos de seção no corpo
Move page title/subtitle to CampaignMobileTopBar, CampaignDesktopHeader,
and tab metadata (Solla - Campanha - %s). Strip section headers and scope
chips from list/create routes; detail pages keep entity h1.

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 18:08:47 +00:00

50 lines
1.2 KiB
TypeScript

import type { Metadata, Viewport } from 'next'
import { Inter } from 'next/font/google'
import React from 'react'
import { RegisterServiceWorker } from '@/components/campaign/shell/RegisterServiceWorker'
import { CAMPAIGN_PWA_MANIFEST_PATH, CAMPAIGN_PWA_THEME_COLOR } from '@/utilities/campaignPwa'
import '../(frontend)/styles.css'
const inter = Inter({ subsets: ['latin'], variable: '--font-sans' })
export const metadata: Metadata = {
title: {
default: 'Campanha',
template: 'Solla - Campanha - %s',
},
robots: {
index: false,
follow: false,
},
manifest: CAMPAIGN_PWA_MANIFEST_PATH,
appleWebApp: {
capable: true,
title: 'Campanha',
statusBarStyle: 'default',
},
icons: {
apple: '/campaign-icons/apple-touch-icon.png',
},
}
export const viewport: Viewport = {
themeColor: CAMPAIGN_PWA_THEME_COLOR,
}
export default function CampanhaRootLayout({ children }: { children: React.ReactNode }) {
return (
<html
lang="pt-BR"
data-theme="campaign"
className={inter.variable}
style={{ colorScheme: 'light' }}
>
<body className="bg-background bg-none text-foreground antialiased">
{children}
<RegisterServiceWorker />
</body>
</html>
)
}