Skip to content

Commit efa37e2

Browse files
committed
add cn how
1 parent 64fd39e commit efa37e2

2 files changed

Lines changed: 14 additions & 12 deletions

File tree

src/pages/index.js

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,20 @@ function HomepageHeader() {
3434
return (
3535
<div id='main'>
3636
<Slider {...settings}>
37-
{/* HOW */}
38-
{isEnglish && (
39-
<div>
40-
<a href="https://ivorysql.io/" target="_blank" rel="noopener noreferrer">
41-
<img
42-
src={require('../../static/img/ivorysql-how.jpg').default}
43-
alt="IvorySQL Banner"
44-
style={{width: '100%', cursor: 'pointer'}}
45-
/>
46-
</a>
47-
</div>
48-
)}
37+
{/* HOW 大会宣传,根据中英版显示不同图片及链接*/}
38+
<div>
39+
<a href={isEnglish ? "https://ivorysql.io/" : "https://howconf.cn/"} target="_blank" rel="noopener noreferrer">
40+
<img
41+
src={
42+
isEnglish
43+
? require('../../static/img/ivorysql-how.jpg').default
44+
: require('../../static/img/ivorysql-how-zh.jpg').default
45+
}
46+
alt="IvorySQL Banner"
47+
style={{width: '100%', cursor: 'pointer'}}
48+
/>
49+
</a>
50+
</div>
4951
{/* 页面一 */}
5052
<div id='pageone'>
5153
<header className={clsx('hero hero--primary', styles.heroBanner)}>

static/img/ivorysql-how-zh.jpg

543 KB
Loading

0 commit comments

Comments
 (0)