Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
O
official
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吕祺
official
Commits
79260866
Commit
79260866
authored
Aug 24, 2022
by
吕祺
⛹🏽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update warning header
parent
b33ec8c3
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
index.css
components/Header/index.css
+5
-0
index.js
components/Header/index.js
+3
-2
head.md
content/head.md
+2
-2
No files found.
components/Header/index.css
View file @
79260866
...
...
@@ -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
;
...
...
components/Header/index.js
View file @
79260866
...
...
@@ -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
({
...
...
content/head.md
View file @
79260866
...
...
@@ -6,11 +6,11 @@ portfolio: 投资企业
team
:
团队
ronghui
:
榕汇
news
:
动态
warn
:
声明
warn
:
严正
声明
aboutEN
:
About
portfolioEN
:
Portfolio
teamEN
:
Team
ronghuiEN
:
Community
newsEN
:
News
warnEN
:
声明
warnEN
:
严正
声明
---
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment