forked from 77media/video-flow
46 lines
1.3 KiB
TypeScript
46 lines
1.3 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>
|
|
<meta name="robots" content="noindex"></meta>
|
|
<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 />
|
|
<div id="app" className='h-full w-full'>
|
|
{children}
|
|
</div>
|
|
</Providers>
|
|
</ConfigProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|