Browse Source

修改样式

pull/1951/head
wangjr 3 years ago
parent
commit
32a22276d6
2 changed files with 9 additions and 39 deletions
  1. +1
    -1
      options/locale/locale_zh-CN.ini
  2. +8
    -38
      templates/user/dashboard/dashboard.tmpl

+ 1
- 1
options/locale/locale_zh-CN.ini View File

@@ -272,7 +272,7 @@ wecome_AI_plt=欢迎来到启智AI协作平台!
explore_AI = 探索更好的AI,来这里发现更有意思的
datasets = 数据集
repositories = 项目
use_plt__fuction = 使用本平台提供的AI协作功能,如:托管代码、共享数据、调试算法或训练模型,请先
use_plt__fuction = 使用本平台提供的AI协作功能,如:托管代码、共享数据、调试算法或训练模型,请先
provide_resoure = 平台目前免费提供CPU、GPU、NPU的算力资源,可进行多种类型的AI任务。
create_pro = 创建项目
activity = 活动


+ 8
- 38
templates/user/dashboard/dashboard.tmpl View File

@@ -6,16 +6,16 @@
<div class="ui mobile reversed stackable grid">
<div class="ui container ten wide column">
<div class="default" id = 'default_page'>
<div class="title">
<div class="w_title">
{{.i18n.Tr "home.wecome_AI_plt"}}
</div>
<div class="content">
<p >{{.i18n.Tr "home.explore_AI"}} <a href="{{AppSubUrl}}/explore/repos"> {{.i18n.Tr "home.repositories"}}</a> 或 <a href="{{AppSubUrl}}/explore/datasets">{{.i18n.Tr "home.datasets"}}</a></p>
<p >{{.i18n.Tr "home.use_plt__fuction"}}<a class="btn_create" href="{{AppSubUrl}}/repo/create{{if .ContextUser.IsOrganization}}?org={{.ContextUser.ID}}{{end}}" >{{.i18n.Tr "repo.create_repo"}}</a></p>
<p >{{.i18n.Tr "home.use_plt__fuction"}}&nbsp;<a class="mini ui blue button" href="{{AppSubUrl}}/repo/create{{if .ContextUser.IsOrganization}}?org={{.ContextUser.ID}}{{end}}" >{{.i18n.Tr "repo.create_repo"}}</a></p>
<p > {{.i18n.Tr "home.provide_resoure"}}</p>
</div>
<div class="guide ">
<a class="a_guide " href="https://git.openi.org.cn/zeizei/OpenI_Learning" target="_blank">{{.i18n.Tr "custom.Platform_Tutorial"}} <i class="ri-arrow-right-line" style="vertical-align: top;"></i></a>
<a class="mini ui blue basic button " href="https://git.openi.org.cn/zeizei/OpenI_Learning" target="_blank">{{.i18n.Tr "custom.Platform_Tutorial"}} <i class="ri-arrow-right-line" ></i></a>
</div>
</div>
{{if .EnableHeatmap}}
@@ -25,7 +25,7 @@
<diV id = "activity_cont">
<div class="ui placeholder segment bgtask-none padding_none line" >
<div class="act_title" style="padding-left: 0px ;">
{{.i18n.Tr "home.activity"}}:
{{.i18n.Tr "home.activity"}}
</div>
<div class="ui icon header bgtask-header-pic"></div>
<p class="p_hint">
@@ -64,12 +64,12 @@
line-height: 20px;
padding:0px 25px;
}
.title{
.w_title{
padding-top: 25px;
color: rgba(16, 16, 16, 100);
font-size: 20px;
text-align: left;
font-family: SourceHanSansSC-medium;
font-weight: 700;
}
.content{
color: rgba(80, 85, 89, 100);
@@ -78,40 +78,12 @@
font-family: SourceHanSansSC-regular;
margin-top: 20px;
}
.btn_create{
border-radius: 4px;
background-color: rgba(24, 144, 255, 100);
color: rgba(255, 255, 255, 100);
font-size: 14px;
text-align: center;
font-family: Microsoft Yahei;
margin-left:5px;
padding:5px
}
.hint{
color: rgba(24, 144, 255, 0.5);
font-size: 14px;
text-align: left;
font-family: SourceHanSansSC-regular;
margin-top: 30px;
}

.guide{
margin-top:30px;
padding-bottom: 30px;
}
.a_guide{
border-radius: 4px;
background-color: rgba(255, 255, 255, 100);
color: rgba(24, 144, 255, 100);
font-size: 14px;
text-align: center;
font-family: Microsoft Yahei;
border: 1px solid rgba(24, 144, 255, 100);
padding: 5px 5px;
vertical-align: middle;
border-radius: 4px;
}

.activity{
margin-top: 20px;
}
@@ -131,9 +103,7 @@
.padding_none{
padding: 0px !important;
}
.content >p{
line-height: 2em !important;
}

.ui.placeholder.segment {
min-height: 15rem !important;
}


Loading…
Cancel
Save