import * as React from 'react'; import { FormattedMessage, useIntl } from 'react-intl'; import { Typography } from 'antd'; import { Link } from 'bisheng/router'; import Banner from './Banner'; import RecommendPage from './RecommendPage'; import DesignPage from './DesignPage'; import MorePage from './MorePage'; import Footer from '../Layout/Footer'; import { getLocalizedPathname } from '../utils'; import './index.less'; const { Title } = Typography; function getStyle() { return ` .rc-footer-container { padding-left: 0; padding-right: 0; } .rc-footer-columns { max-width: 1208px; margin: 0 auto; } `; } interface BlockContentProps { title: React.ReactNode; extra?: React.ReactNode; } const BlockContent: React.FC = ({ title, children, extra }) => (
{title} {extra && <div className="home-block-content-extra">{extra}</div>} {children}
); export default function Home() { const { locale } = useIntl(); const isZhCN = locale === 'zh-CN'; return (