Skip to content

Commit

Permalink
feat(detail): update Antv home update dumi-theme-antv -3
Browse files Browse the repository at this point in the history
  • Loading branch information
ai-qing-hai committed Nov 14, 2023
1 parent f3cf1ea commit c81761d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
6 changes: 4 additions & 2 deletions site/components/FamousPersons/index.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
&:extend(.commonFlexConfig);
flex-direction: column;
justify-content: space-between;
height: calc(1680px - 100vw + 377px );
width: calc((100vw - 396px)/ 4);
height: calc((1680px - 100vw) / 10 + 377px);
max-height: 377px;
min-height: 350px;
width: calc((100vw - 380px - 84px)/ 4);
min-width: 239px;
max-width: 399px;
padding: 29px 20px 20px;
Expand Down
15 changes: 11 additions & 4 deletions site/components/FamousPersons/index.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
import React from 'react';
import { useIntl } from 'dumi';
import classNames from 'classnames';
import { useIntl, useLocale } from 'dumi';
import { ModuleTitle as Title, OverflowedText } from '../common';
import FAMOUS_PERSONS_DATAS from '../../data/famous-persons.json';

import styles from './index.module.less';

// 专家之声
export function FamousPersons() {
const intl = useIntl()
const locale = useLocale();

const language: 'zh' | 'en' = locale.id.includes('zh') ? 'zh' : 'en';

const intl = useIntl();
const useT = (transformedMessage: string) => {
return intl.formatMessage({
id: transformedMessage
id: transformedMessage,
});
};

return (
<div className={styles.famousPersons}>
<div className={classNames(styles.famousPersons,{
[styles.en]: language === 'en',
}) }>
<Title title={useT("专家之声")} subTitle={useT("经历了海量数据场景下的严苛考验,蚂蚁集团自研了数据库、云原生、隐私计算、图计算为代表的数字化“根技术”")} />
<div className={styles.famousAuctions} >
{
Expand Down

0 comments on commit c81761d

Please sign in to comment.