Skip to content

Commit 83335e2

Browse files
authored
feat: added github link to header #1632 (#1650)
1 parent 2ac7fb8 commit 83335e2

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

web/src/pages/User/Login.less

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,15 @@
3030
text-align: right;
3131
}
3232

33-
.settings {
33+
a {
34+
color: black;
35+
36+
&:hover {
37+
color: @primary-color;
38+
}
39+
}
40+
41+
.github {
3442
display: inline-flex;
3543
align-items: center;
3644
justify-content: center;
@@ -95,6 +103,7 @@
95103
.main {
96104
width: 368px;
97105
margin: 0 auto;
106+
98107
@media screen and (max-width: @screen-sm) {
99108
width: 95%;
100109
}

web/src/pages/User/Login.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17+
import { GithubOutlined } from '@ant-design/icons';
1718
import React, { useState } from 'react';
1819
import { Button, notification, Tabs } from 'antd';
1920
import { SelectLang } from '@@/plugin-locale/SelectLang';
@@ -81,6 +82,11 @@ const Page: React.FC = () => {
8182
return (
8283
<div className={styles.container}>
8384
<div className={styles.lang}>
85+
<div className={styles.github} >
86+
<a target="_blank" href="https://apisix.apache.org">
87+
<GithubOutlined />
88+
</a>
89+
</div>
8490
<SelectLang />
8591
</div>
8692
<div className={styles.content}>

0 commit comments

Comments
 (0)