Browse Source

修改样式

pull/1951/head
wangjr 3 years ago
parent
commit
7c59ecb7a9
3 changed files with 44 additions and 32 deletions
  1. +9
    -0
      options/locale/locale_en-US.ini
  2. +11
    -0
      options/locale/locale_zh-CN.ini
  3. +24
    -32
      templates/user/dashboard/dashboard.tmpl

+ 9
- 0
options/locale/locale_en-US.ini View File

@@ -266,6 +266,15 @@ search_related=related
search_maybe=maybe search_maybe=maybe
search_ge= search_ge=


wecome_AI_plt = Welcome to Qizhi AI Collaboration Platform!
explore_AI = Explore better AI, come here to find more interesting
datasets = Datasets
repositories = Repositories
use_plt__fuction = To use the AI collaboration functions provided by this platform, such as: hosting code, sharing data, debugging algorithms or training models, please first
provide_resoure = The platform currently provides free computing resources of CPU, GPU, and NPU, and can perform various types of AI tasks.
activity = Activity
no_events = There are no events related to you yet

[explore] [explore]
repos = Repositories repos = Repositories
select_repos = Select the project select_repos = Select the project


+ 11
- 0
options/locale/locale_zh-CN.ini View File

@@ -268,6 +268,17 @@ search_related=相关
search_maybe=约为 search_maybe=约为
search_ge=个 search_ge=个


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


[explore] [explore]
repos=项目 repos=项目
select_repos=精选项目 select_repos=精选项目


+ 24
- 32
templates/user/dashboard/dashboard.tmpl View File

@@ -7,34 +7,29 @@
<div class="ui container ten wide column"> <div class="ui container ten wide column">
<div class="default" id = 'default_page'> <div class="default" id = 'default_page'>
<div class="title"> <div class="title">
欢迎来到启智AI协作平台!
{{.i18n.Tr "home.wecome_AI_plt"}}
</div> </div>
<div class="content"> <div class="content">
<p >探索更好的AI,来这里发现更有意思的 <a>项目</a> 或 <a>数据集</a></p>
<p > 使用本平台提供的AI协作功能,如:托管代码、共享数据、调试算法或训练模型,请先<a class="btn_create" href="{{AppSubUrl}}/repo/create{{if .ContextUser.IsOrganization}}?org={{.ContextUser.ID}}{{end}}" >创建项目</a></p>
<p > 平台目前免费提供CPU、GPU、NPU的算力资源,可进行多种类型的AI任务。</p>
<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.provide_resoure"}}</p>
</div> </div>
<div class="hint">
<a class="look">初次使用,请查看</a>
<a class="comm">如有使用问题,请加入交流群 <i class="ri-arrow-right-line" style="vertical-align: middle;"></i></a>
</div>
<div class="guide">
<a class="a_guide" href="https://git.openi.org.cn/zeizei/OpenI_Learning" target="_blank">新手指引 <i class="ri-arrow-right-line" style="vertical-align: top;"></i></a>
<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>
</div> </div>
</div> </div>
{{if .EnableHeatmap}} {{if .EnableHeatmap}}
{{template "user/dashboard/heatmap" .}} {{template "user/dashboard/heatmap" .}}
{{end}} {{end}}
{{template "user/dashboard/feeds" .}}
<div class="activity" id ='activity_cont' >
<div class="act_title">
活动:
</div>
<div style="text-align: center;">
<p class="p_hint">
还没有与你相关的活动
</p>
{{template "user/dashboard/feeds" .}}
<div class="ui placeholder segment bgtask-none padding_none">
<div class="act_title" style="padding-left: 0px ;">
{{.i18n.Tr "home.activity"}}:
</div> </div>
<div class="ui icon header bgtask-header-pic"></div>
<p class="p_hint">
{{.i18n.Tr "home.no_events"}}
</p>
</div> </div>
</div> </div>
{{template "user/dashboard/repolist" .}} {{template "user/dashboard/repolist" .}}
@@ -63,9 +58,9 @@
margin-bottom: 20px; margin-bottom: 20px;
border-radius: 15px; border-radius: 15px;
line-height: 20px; line-height: 20px;
padding:0px 25px;
} }
.title{ .title{
padding-left: 25px;
padding-top: 25px; padding-top: 25px;
color: rgba(16, 16, 16, 100); color: rgba(16, 16, 16, 100);
font-size: 20px; font-size: 20px;
@@ -77,7 +72,6 @@
font-size: 14px; font-size: 14px;
text-align: left; text-align: left;
font-family: SourceHanSansSC-regular; font-family: SourceHanSansSC-regular;
padding-left: 25px;
margin-top: 20px; margin-top: 20px;
} }
.btn_create{ .btn_create{
@@ -97,16 +91,8 @@
font-family: SourceHanSansSC-regular; font-family: SourceHanSansSC-regular;
margin-top: 30px; margin-top: 30px;
} }
.look{
padding-left: 29px;
}
.comm{
padding-right: 20%;
float:right;
vertical-align: middle;
}

.guide{ .guide{
margin-left: 25px;
margin-top:30px; margin-top:30px;
padding-bottom: 30px; padding-bottom: 30px;
} }
@@ -118,8 +104,9 @@
text-align: center; text-align: center;
font-family: Microsoft Yahei; font-family: Microsoft Yahei;
border: 1px solid rgba(24, 144, 255, 100); border: 1px solid rgba(24, 144, 255, 100);
padding: 10px 20px;
padding: 5px 5px;
vertical-align: middle; vertical-align: middle;
border-radius: 4px;
} }
.activity{ .activity{
margin-top: 20px; margin-top: 20px;
@@ -136,5 +123,10 @@
text-align: center; text-align: center;
font-family: SourceHanSansSC-regular; font-family: SourceHanSansSC-regular;
} }
.padding_none{
padding: 0px !important;
}
.content >p{
line-height: 2em !important;
}
</style> </style>

Loading…
Cancel
Save