Skip to content

Commit

Permalink
add example and download buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
paleface001 committed Nov 13, 2019
1 parent 9884b57 commit c0e033a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Moreover, combining with AntV design principles, g2plot provides standard and el
<img src="https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*MjhQQLsbWeQAAAAAAAAAAABkARQnAQ" width="200"><img src="https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*CkSoSpPfWQMAAAAAAAAAAABkARQnAQ" width="200"><img src="https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*ZYmtSqcNDtkAAAAAAAAAAABkARQnAQ" width="200"><img src="https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*gV_JQZVbDWAAAAAAAAAAAABkARQnAQ" width="200">
<br/>

<img src="https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*mkcRToWJGlIAAAAAAAAAAABkARQnAQ" width="500">
<img src="https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*gd00QaD9110AAAAAAAAAAABkARQnAQ" width="500">
<br/>

## Installation
Expand Down
2 changes: 1 addition & 1 deletion site/locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

"精品 Gallery": "Gallery",
"真实的数据可视化案例,我们将它们归纳为一个个故事性的设计模板,然用户达到开箱即用的效果。": "真实的数据可视化案例,我们将它们归纳为一个个故事性的设计模板,然用户达到开箱即用的效果。",
"g2plot 开箱即用的图表库": "g2plot is an interactive and responsive charting library.",
"g2plot 开箱即用的图表库": "g2plot",
"开箱即用": "开箱即用",
"配置项优化精简,仅需几行代码轻松生成图表": "从数据出发,仅需几行代码就可以轻松获得想要的图表展示效果",
"默认好用": "默认好用",
Expand Down
19 changes: 12 additions & 7 deletions site/pages/index.zh.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import Cases from '@antv/gatsby-theme-antv/site/components/Cases';
const IndexPage = () => {
const { t, i18n } = useTranslation();

// const coverImage = BannerSVG();

const features = [
{
icon:
Expand Down Expand Up @@ -47,10 +45,17 @@ const IndexPage = () => {
},
];

const downloadButton = {
text: '下载使用',
link: 'https://antv.alipay.com/zh-cn/index.html',
};
const bannerButtons = [
{
text: t('图表示例'),
link: '/zh/examples/general/title-description',
type: 'primary',
},
{
text: t('下载使用'),
link: '/zh/docs/manual/getting-started',
},
];

const cases = [
{
Expand Down Expand Up @@ -80,7 +85,7 @@ const IndexPage = () => {
notifications={notifications}
className='banner'
githubStarLink="https://ghbtns.com/github-btn.html?user=antvis&repo=g2plot&type=star&count=true&size=large"
downloadButton={downloadButton}
buttons={bannerButtons}
/>
<Features
features={features}
Expand Down

0 comments on commit c0e033a

Please sign in to comment.