提交 bae78be9 编写于 作者: L Librahang

1.add sponsor by pengchen lab in home page.

上级 7737cd0c
......@@ -11,6 +11,31 @@ other = "Subscription"
[main_email_subscribe_buttontext]
other = "Subscribe"
[main_apply_source]
other = "Test Machines Application"
[main_apply_description]
other= "Lack of test machines? Try to apply here. "
[main_apply_guidance]
other = "Apply"
[main_apply_guidanceLink]
other = "http://blog.openeuler.org/post/fred_li/2020-03-25-apply-for-vm-from-pcl/"
[main_apply_thanks]
other = "Sponsored by "
[main_apply_pengchenLab]
other ="Peng Cheng Liboratory "
[main_apply_pengchenLink]
other ="http://www.szpclab.com/"
[main_apply_sponsore]
other = " "
[main_cards_title]
other = "Welcome to openEuler Community"
......
......@@ -11,6 +11,30 @@ other = "邮件订阅"
[main_email_subscribe_buttontext]
other = "订阅"
[main_apply_source]
other = "测试资源申请"
[main_apply_description]
other= "如果缺乏测试设备,可以尝试在此申请。"
[main_apply_guidance]
other = "申请指南"
[main_apply_guidanceLink]
other = "http://blog.openeuler.org/post/fred_li/2020-03-25-apply-for-vm-from-pcl/#2"
[main_apply_thanks]
other = "感谢"
[main_apply_pengchenLab]
other ="鹏城实验室"
[main_apply_pengchenLink]
other ="http://www.pcl.ac.cn/"
[main_apply_sponsore]
other = "赞助"
[main_cards_title]
other = "欢迎加入openEuler社区"
......
......@@ -6,7 +6,7 @@
{{ if in $version "docs" }}
{{ $versionArr := split $version "docs" }}
{{ $versionArr := index $versionArr 1 }}
{{ $versionArr := split $versionArr "\\" }}
{{ $versionArr := split $versionArr "/" }}
{{ $versionArr := index $versionArr 1 }}
{{ $versionArr := string $versionArr }}
<h1 class="text-uppercase">{{ upper $versionArr }}</h1>
......
......@@ -2,7 +2,7 @@
{{ $version := .File.Dir }}
{{ $versionArr := split $version "docs" }}
{{ $versionArr := index $versionArr 1 }}
{{ $versionArr := split $versionArr "\\" }}
{{ $versionArr := split $versionArr "/" }}
{{ $versionArr := index $versionArr 1 }}
{{ $versionArr := string $versionArr }}
{{ $versionArr := delimit (slice "docs" $versionArr) "/"}}
......
{{ if isset .Site.Params "emails" }}
{{ if .Site.Params.emails.enable }}
<div class="e_mail">
<h2>{{ i18n "main_email_subscribe_title" }}</h2>
<ul>
{{ $mls := .Paginate (where .Data.Pages "Type" "maillist") }}
{{ $sortedmls := $mls.Pages.ByParam "weight" }}
{{ range first 1 $sortedmls}}
<li>
<div>
<h3><a href="mailto:{{ .Params.emailaddress }}">{{ .Params.emailaddress }}</a></h3>
<p> {{ .Params.description }}</p>
</div>
<a href="{{ .Params.websitelink}}" target="_blank">
<div class="btn">{{ i18n "main_email_subscribe_buttontext" }} </div>
</a>
</li>
{{ end }}
</ul>
<h3 >{{i18n "main_mail_more"}}<a href='{{i18n "main_mail_more_link"}}' style="color:white;">{{i18n "main_mail_more_list"}}</a></h3>
<div class="emailAndApply">
<div class="emailAndApplyBox">
<div class="emailAndApplyBoxL2" >
<h2>{{ i18n "main_email_subscribe_title" }}</h2>
<ul >
{{ $mls := .Paginate (where .Data.Pages "Type" "maillist") }}
{{ $sortedmls := $mls.Pages.ByParam "weight" }}
{{ range first 1 $sortedmls}}
<li>
<div>
<h3><a href="mailto:{{ .Params.emailaddress }}">{{ .Params.emailaddress }}</a></h3>
<p> {{ .Params.description }}</p>
</div>
<a href="{{ .Params.websitelink}}" target="_blank">
<div class="btn">{{ i18n "main_email_subscribe_buttontext" }} </div>
</a>
</li>
{{ end }}
</ul>
<h3 >{{i18n "main_mail_more"}}<a href='{{i18n "main_mail_more_link"}}' style="color:white;">{{i18n "main_mail_more_list"}}</a></h3>
</div>
<div class="emailAndApplyBoxL2 emailAndApplyBoxL3" >
<h2>{{i18n "main_apply_source"}}</h2>
<ul>
<li>
<div>
<h3>{{i18n "main_apply_description"}}</h3>
</div>
<a href='{{i18n "main_apply_guidanceLink"}}' target="_blank">
<div class="btn">{{i18n "main_apply_guidance"}} </div>
</a>
</li>
</ul>
<h3 >{{i18n "main_apply_thanks"}}<a href='{{i18n "main_apply_pengchenLink"}}' target="_blank" style="color:white;">{{i18n "main_apply_pengchenLab"}}</a>{{i18n "main_apply_sponsore"}}</h3>
</div>
</div>
</div>
{{ end }}
......
......@@ -318,54 +318,77 @@
padding-left: 15px;
}
/*.reason .content_why .detail>div {
position: relative;
margin: 30px 0px;
}*/
.e_mail {
.emailAndApply{
background: url('../img/bg2.png') no-repeat;
height: 380px;
background-size: cover;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 25px 30px 45px;
}
.e_mail h2{
color: #fff;
font-size: 40px;
.emailAndApplyBox{
display: flex;
max-width: 1366px;
margin: 0 auto;
}
.e_mail h3{
color: #fff;
.emailAndApplyBoxL2{
width:47%;
margin-right:50px;
}
.emailAndApplyBox h2{
color:white;
}
.e_mail ul {
width: 40%;
.emailAndApplyBox ul {
padding:0;
margin:0;
width:80%;
}
.e_mail ul li {
.emailAndApplyBox ul li {
display: flex;
justify-content: space-between;
align-items: center;
}
.e_mail ul li h3 {
.emailAndApplyBox ul li h3 {
font-size: 28px;
color: #FFFFFF;
line-height: 36px;
}
.emailAndApplyBox ul li h3 {
font-size: 28px;
color: #FFFFFF;
line-height: 36px;
}
.e_mail ul li h3 a {
.emailAndApplyBox ul li h3 a {
color: #FFFFFF;
text-decoration: none;
}
.e_mail ul li p {
.emailAndApplyBox ul li p {
margin-top: 8px;
font-size: 16px;
color: #FFFFFF;
line-height: 20px;
padding-right: 50px;
}
.emailAndApplyBox h3{
color: #fff;
}
.emailAndApplyBox h3 a{
text-decoration: underline;
}
.emailAndApplyBox ul li .btn {
background: #FFFFFF;
border-radius: 2px;
padding: 11px 18px;
text-transform: none;
}
#members .col-md-12 .client-header h4 {
border: none;
text-transform: none;
......@@ -380,12 +403,6 @@
align-items: center;
}
.e_mail ul li .btn {
background: #FFFFFF;
border-radius: 2px;
padding: 11px 18px;
text-transform: none;
}
.div-archives>div>ul{
position: relative;
}
......
......@@ -307,44 +307,64 @@
.partners .box img:nth-child(2) {
width: 4.5rem;
}
.e_mail {
.emailAndApply{
background:none;
padding:0;
}
.emailAndApplyBox{
display: inline;
}
.emailAndApplyBoxL2{
width:100%;
margin-right: 0 !important;
background: url('../img/bannernew.jpg') no-repeat;
}
.emailAndApplyBoxL3{
width:100%;
margin-right: 0 !important;
background: url('../img/3.jpg') no-repeat;
}
.emailAndApplyBoxL2 {
text-align:center;
justify-content: space-around;
padding: .4rem 0;
height: 7.5rem;
background-position: top;
}
.e_mail h2 {
.emailAndApplyBoxL2 h2 {
font-size: 0.46rem;
margin-bottom: 0;
}
.e_mail ul {
.emailAndApplyBoxL2 ul {
width: auto;
padding: 0px;
}
.e_mail ul li {
.emailAndApplyBoxL2 ul li {
justify-content: space-around;
}
.e_mail ul li:last-child {
.emailAndApplyBoxL2 ul li:last-child {
margin-bottom: 0;
}
.e_mail ul li h3 {
.emailAndApplyBoxL2 ul li h3 {
font-size: .38rem;
line-height: .44rem;
}
.e_mail ul li p {
.emailAndApplyBoxL2 ul li p {
font-size: .24rem;
margin-top: 0;
padding-right: 0;
}
.e_mail ul li .btn {
.emailAndApplyBoxL2 ul li .btn {
padding: .1rem .15rem;
font-size: .26rem;
font-family: "HuaweiSansBold";
}
.e_mail ul li > div {
.emailAndApplyBoxL2 ul li > div {
width: 60%;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册