Skip to content
Merged
8 changes: 0 additions & 8 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,6 @@ export default defineConfig({
},
order: 4,
},
{
slug: 'specification/module/infoCom',
title: {
zh: '信息组件 Info Component',
en: 'Info Componen',
},
order: 6,
},
{
slug: 'specification/tool',
title: {
Expand Down
14 changes: 5 additions & 9 deletions site/components/Banner/Banner.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -301,15 +301,11 @@
}

div.listContainer {
position: absolute;
left: 112px;
right: 112px;
width: calc(100vw - 224px);
width: 80vw;
min-width: 760px;

@media (max-width: 1023px) {
left: 24px;
right: 24px;
width: calc(100vw - 48px);
margin-right: auto;
margin-left: auto;
@media (min-width: 2700px) {
width: 2100px;
}
}
17 changes: 2 additions & 15 deletions site/components/Banner/Banner.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useIntl, useLocale } from 'dumi';
import React, { useEffect, useState } from 'react';
import { ActiveIcon } from '../common';
import { ANCHORNAME } from '../ProjectCard';
import { getBaseSiteDataUrl } from '@antv/dumi-theme-antv/dist/utils/env';

import styles from './Banner.module.less';
import { HomeDialog } from '@antv/dumi-theme-antv/dist/components/AI/HomeDialog';
Expand All @@ -20,7 +20,7 @@ export default () => {
};

useEffect(() => {
fetch('https://site-data-pre.alipay.com/antv/banner-messages.json')
fetch(`${getBaseSiteDataUrl()}/antv/banner-messages.json`)
.then((res) => res.json())
.then((data) => {
setMessage(data);
Expand Down Expand Up @@ -77,19 +77,6 @@ export default () => {
promptTextareaStyle={{margin: "0 auto", width: "40vw", minWidth: "300px"}}
recommendCaseClassName={styles.listContainer}
style={{margin: "270px auto", width: "unset"}}/>
{/*<div className={styles.buttons}>*/}
{/* <div className={styles.start} onClick={scrollToAnchor}>*/}
{/* <div className={styles.startIcon} />*/}
{/* {useT('开始使用')}*/}
{/* </div>*/}
{/* <ActiveIcon*/}
{/* href="/specification/principles/basic"*/}
{/* className={styles.design}*/}
{/* img="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*_xFsQbWE_AYAAAAAAAAAAAAADmJ7AQ/original"*/}
{/* activeImg="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*A9VnTpferioAAAAAAAAAAAAADmJ7AQ/original"*/}
{/* text={useT('设计语言')}*/}
{/* />*/}
{/*</div>*/}
<div className={styles.bottom}>
{message.map(({ title, subTitle, img, link }) => {
return (
Expand Down