import React from 'react'; import { useLocale as useDumiLocale } from 'dumi'; import { ConfigProvider } from 'antd'; import useLocale from '../../hooks/useLocale'; import Banner from './components/Banner'; import Group from './components/Group'; import { useSiteData } from './components/util'; import Theme from './components/Theme'; import BannerRecommends from './components/BannerRecommends'; import ComponentsList from './components/ComponentsList'; import DesignFramework from './components/DesignFramework'; const locales = { cn: { assetsTitle: '组件丰富,选用自如', assetsDesc: '大量实用组件满足你的需求,灵活定制与拓展', designTitle: '设计语言与研发框架', designDesc: '配套生态,让你快速搭建网站应用', }, en: { assetsTitle: 'Rich components', assetsDesc: 'Practical components to meet your needs, flexible customization and expansion', designTitle: 'Design and framework', designDesc: 'Supporting ecology, allowing you to quickly build website applications', }, }; const Homepage: React.FC = () => { const [locale] = useLocale(locales); const { id: localeId } = useDumiLocale(); const localeStr = localeId === 'zh-CN' ? 'cn' : 'en'; const [siteData] = useSiteData(); return (
{/* Image Left Top */} } >
); }; export default Homepage;