Skip to content

Commit 49c3823

Browse files
committed
feat:首页头部增加开源项目信息
1 parent d6be55a commit 49c3823

File tree

1 file changed

+18
-1
lines changed
  • dash-fastapi-frontend/views/layout/components

1 file changed

+18
-1
lines changed

dash-fastapi-frontend/views/layout/components/head.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def render_head_content():
5050
'display': 'flex',
5151
'alignItems': 'center'
5252
},
53-
flex='24'
53+
flex='21'
5454
),
5555

5656
# 页首中部搜索区域
@@ -87,6 +87,23 @@ def render_head_content():
8787
flex='6'
8888
),
8989

90+
# 页首开源项目地址
91+
fac.AntdCol(
92+
html.A(
93+
html.Img(
94+
src='https://gitee.com/insistence2022/dash-fastapi-admin/badge/star.svg?theme=dark'
95+
),
96+
href='https://gitee.com/insistence2022/dash-fastapi-admin',
97+
target='_blank'
98+
),
99+
style={
100+
'height': '100%',
101+
'display': 'flex',
102+
'alignItems': 'center'
103+
},
104+
flex='3'
105+
),
106+
90107
# 页首右侧用户信息区域
91108
fac.AntdCol(
92109
fac.AntdSpace(

0 commit comments

Comments
 (0)