import React from 'react'; import { Layout, Flex } from 'antd'; const { Header, Footer, Sider, Content } = Layout; const headerStyle: React.CSSProperties = { textAlign: 'center', color: '#fff', height: 64, paddingInline: 48, lineHeight: '64px', backgroundColor: '#4096ff', }; const contentStyle: React.CSSProperties = { textAlign: 'center', minHeight: 120, lineHeight: '120px', color: '#fff', backgroundColor: '#0958d9', }; const siderStyle: React.CSSProperties = { textAlign: 'center', lineHeight: '120px', color: '#fff', backgroundColor: '#1677ff', }; const footerStyle: React.CSSProperties = { textAlign: 'center', color: '#fff', backgroundColor: '#4096ff', }; const layoutStyle = { borderRadius: 8, overflow: 'hidden', width: 'calc(50% - 8px)', maxWidth: 'calc(50% - 8px)', }; const App: React.FC = () => (
Header
Content
Footer
Header
Sider Content
Footer
Header
Content Sider
Footer
Sider
Header
Content
); export default App;