video-flow-b/app/layout.tsx
2025-08-26 19:47:38 +08:00

43 lines
1.2 KiB
TypeScript

import './globals.css';
import type { Metadata } from 'next';
import { Providers } from '@/components/providers';
import { ConfigProvider, theme } from 'antd';
import { useEffect } from 'react';
import { createScreenAdapter } from '@/utils/tools';
import { ScreenAdapter } from './ScreenAdapter';
export const metadata: Metadata = {
title: 'AI Movie Flow - Create Amazing Videos with AI',
description: 'Professional AI-powered video creation platform with advanced editing tools',
};
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<html lang="en" suppressHydrationWarning>
<body className="font-sans antialiased">
<ConfigProvider
theme={{
algorithm: theme.darkAlgorithm,
token: {
// 自定义暗色主题颜色
colorBgContainer: '#1B1B1B',
colorBgElevated: '#1B1B1B',
colorBgMask: 'rgba(0, 0, 0, 0.6)',
borderRadius: 16,
},
}}
>
<Providers>
<ScreenAdapter />
{children}
</Providers>
</ConfigProvider>
</body>
</html>
);
}