import React from 'react'; import { ConfigProvider, theme } from 'antd'; import { createStyles, css } from 'antd-style'; import useDark from '../../hooks/useDark'; import useLocale from '../../hooks/useLocale'; // import BannerRecommends, { BannerRecommendsFallback } from './components/BannerRecommends'; import ComponentsList from './components/ComponentsList'; import DesignFramework from './components/DesignFramework'; import Group from './components/Group'; import PreviewBanner from './components/PreviewBanner'; import Theme from './components/Theme'; const useStyle = createStyles(() => ({ image: css` position: absolute; left: 0; top: -50px; height: 160px; `, })); 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 { styles } = useStyle(); const { token } = theme.useToken(); const isRootDark = useDark(); return (
{/* 文档很久没更新了,先藏起来 */} {/* }> */}
{/* 定制主题 */} {/* 组件列表 */} {/* 设计语言 */} } >
); }; export default Homepage;