Commit 79260866 authored by 吕祺's avatar 吕祺 ⛹🏽

update warning header

parent b33ec8c3
......@@ -83,6 +83,11 @@
color: #444;
cursor: pointer;
}
.header-index.emphasis-warn{
background: #ffcb05;
line-height: 1;
padding: 4px 4px 0;
}
.header-index a {
color: #444;
text-decoration: none;
......
......@@ -19,11 +19,12 @@ export class Header extends React.PureComponent {
this.renderLinks = this.renderLinks.bind(this)
this.renderCollapse = this.renderCollapse.bind(this)
}
genLink(en, curPage, path, txt, txtEN, query=null) {
genLink(en, curPage, path, txt, txtEN, query=null, emphasis=false) {
return (
<span
className={classnames({
'header-index': true,
'emphasis-warn': emphasis,
active: curPage === path
})}
>
......@@ -176,7 +177,7 @@ export class Header extends React.PureComponent {
ronghuiEN
)}
{this.genLink(en, curPage + '.html', 'news.html', news, newsEN)}
{this.genLink(en, curPage + '.html', 'post.html', warn, warnEN, {t: "news", d: "20210514014133435"})}
{this.genLink(en, curPage + '.html', 'post.html', warn, warnEN, {t: "news", d: "20210514014133435"}, true)}
{!collapse && en !== null && (
<span
className={classnames({
......
......@@ -6,11 +6,11 @@ portfolio: 投资企业
team: 团队
ronghui: 榕汇
news: 动态
warn: 声明
warn: 严正声明
aboutEN: About
portfolioEN: Portfolio
teamEN: Team
ronghuiEN: Community
newsEN: News
warnEN: 声明
warnEN: 严正声明
---
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment