mirror of
https://github.com/kubesphere/website.git
synced 2025-12-26 00:12:48 +00:00
214 lines
6.3 KiB
HTML
214 lines
6.3 KiB
HTML
{{ define "main" }}
|
|
{{ $data := index .Site.Data .Site.Language.Lang }}
|
|
<section class='section-1'>
|
|
{{ with .Params.section1 }}
|
|
<img class='img1' src="images/home/bg.jpg" alt="">
|
|
<img class='img2' src="/images/home/12-3.png" alt="">
|
|
<img class='img3' src="/images/home/2.svg" alt="">
|
|
<div class="common-layout">
|
|
<div>
|
|
<p class='p1'>{{ .title | safeHTML }}</p>
|
|
<h1>{{ .topic | safeHTML }}</h1>
|
|
<p class='p2'>{{ .content | safeHTML }}</p>
|
|
<a href="{{ .downloadLink1 }}"><button class='btn1 common-btn'>{{ .btnContent1 }}</button></a>
|
|
<a href="{{ .downloadLink2 }}"><button class='btn2 common-btn'>{{ .btnContent2 }}</button></a>
|
|
</div>
|
|
<img class='img1' src="/images/home/53.png" alt="">
|
|
<img class='img2' src="/images/home/left.svg" alt="">
|
|
<img class='img4' src="/images/home/46.svg" alt="">
|
|
</div>
|
|
{{ end }}
|
|
</section>
|
|
|
|
<section class="section-2">
|
|
{{ with .Params.section2 }}
|
|
<div class="common-layout">
|
|
<h2 class="title-black-h2">{{ .title | safeHTML }}</h2>
|
|
<p class="title-p">{{ .content | safeHTML }}</p>
|
|
<ul>
|
|
{{ range .children }}
|
|
<li class="common-top-inline">
|
|
<img src="{{ .icon }}" alt="">
|
|
<h3 class="title-black-h3 ">{{ .name | safeHTML }}</h3>
|
|
<p class="common-center-p">{{ .content | safeHTML }}</p>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
{{ end }}
|
|
</section>
|
|
|
|
<section class='section-3'>
|
|
{{ with .Params.section3 }}
|
|
<div class="common-layout">
|
|
<h2 class="title-black-h2">{{ .title | safeHTML }}</h2>
|
|
<p class="title-p">{{ .content | safeHTML }}</p>
|
|
<div class='menu-div common-flex-layout'>
|
|
<ul>
|
|
{{ range $index, $element := .children }}
|
|
<li class='{{ if eq $index 0 }} active {{ end }} left-li' data-index='{{ $index }}'>{{ .name }}</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ range .children }}
|
|
<div class='right-div'>
|
|
<div class='top'>
|
|
<h3>💁🏼♂️{{ .name }}</h3>
|
|
<p>{{ .content | safeHTML }}</p>
|
|
</div>
|
|
<ul>
|
|
{{ range .children }}
|
|
<li>{{ .content | safeHTML }}</li>
|
|
{{ end }}
|
|
</ul>
|
|
<img src="{{ .icon | absURL }}" alt="">
|
|
</div>
|
|
{{ end }}
|
|
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
</section>
|
|
|
|
<section class='section-4'>
|
|
{{ with .Params.section4 }}
|
|
<img class='bg-1' src="/images/home/section4-left.png" alt="">
|
|
<img class='bg-2' src="/images/home/section4-right.svg" alt="">
|
|
<div class="common-layout">
|
|
<div>
|
|
<h2>{{ .title }}</h2>
|
|
<p class="common-p">{{ .content | safeHTML }}</p>
|
|
<ul>
|
|
{{ range .children }}
|
|
<li>
|
|
<img src="{{ .icon }}" alt="">
|
|
<div>
|
|
<h3 class="title-white-h3">{{ .name }}</h3>
|
|
<p class="common-p">{{ .content | safeHTML }}</p>
|
|
</div>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
|
|
<ul>
|
|
{{ range .features}}
|
|
<li>
|
|
<div>
|
|
<div class='top-line {{ .color }}'></div>
|
|
<div class='img-span-div'>
|
|
<img class="common-middle-inline" src="{{ .icon }}" alt="">
|
|
<span class="common-middle-inline">{{ .name }}</span>
|
|
</div>
|
|
<p class="common-p">{{ .content | safeHTML }}</p>
|
|
</div>
|
|
<div class='middle-line'></div>
|
|
{{ if .check }}
|
|
<span class="common-green-a">{{ i18n "Coming Soon" }} →</span>
|
|
{{ else }}
|
|
<a class="common-green-a" href="{{ .link }}" target="_blank">{{ i18n "Read More" }} →</a>
|
|
{{ end }}
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
{{ end }}
|
|
</section>
|
|
|
|
<section class='section-5'>
|
|
{{ with .Params.section5 }}
|
|
<div class="common-layout">
|
|
<h2 class="title-black-h2">{{ .title }}</h2>
|
|
<div>
|
|
{{ with .frontEnd }}
|
|
<div class='front-div common-top-inline'>
|
|
<h3 class="title-black-h3">{{ .title }}</h3>
|
|
<p>{{ .project }}</p>
|
|
<ul>
|
|
{{ range .children }}
|
|
<li>
|
|
<img src="{{ .icon }}" alt="">
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
{{ end }}
|
|
{{ with .backEnd }}
|
|
<div class='back-div common-top-inline'>
|
|
<h3 class="title-black-h3">{{ .title}}</h3>
|
|
<div class='group'>
|
|
<p>{{ .project }}</p>
|
|
<ul>
|
|
{{ range .group }}
|
|
<li>{{ .name }}</li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
<div class='image'>
|
|
<img src="/images/home/applications.png" alt="">
|
|
<img src="/images/home/applications.png" alt="">
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
</section>
|
|
|
|
<section class='section-6'>
|
|
{{ with .Params.section6 }}
|
|
<div class="common-layout">
|
|
<h2 class="title-black-h2">{{ .title }}</h2>
|
|
<p class="title-p">{{ .content | safeHTML }}</p>
|
|
<ul class="common-flex-layout">
|
|
{{ range .children }}
|
|
<li>
|
|
<img src="{{ .icon }}" alt="">
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
<div>
|
|
<a href="{{ .btnLink }}" target="_blank"><button>{{ .btnContent }}</button></a>
|
|
</div>
|
|
<div class='link-div'>
|
|
<a class="common-black-a" href="{{ .link }}" target="_blank">{{ .linkContent }}</a>
|
|
</div>
|
|
<a class='join-div' href="{{ .joinLink }}" target="_blank">
|
|
<p class='p1'>{{ .joinTitle }}</p>
|
|
<p class='p2'>{{ .joinContent }}</p>
|
|
<img src="/images/home/join-right.svg" alt="">
|
|
</a>
|
|
<img class='bottom-img' src="{{ .image }}" alt="">
|
|
</div>
|
|
<img class='bg-1' src="/images/home/section6-left.svg" alt="">
|
|
<img class='bg-2' src="/images/home/section6-right.svg" alt="">
|
|
{{ end }}
|
|
</section>
|
|
|
|
<script>
|
|
var bindMouseLeftLi = function() {
|
|
$('.left-li').mouseenter(function() {
|
|
var index = Number($(this).data('index'))
|
|
$('.left-li').removeClass('active')
|
|
$(this).addClass('active')
|
|
$('.right-div').hide().eq(index).show()
|
|
})
|
|
}
|
|
|
|
var bindResize = function() {
|
|
var screenWidth = $(window).width()
|
|
if (screenWidth <= 768) {
|
|
$('.image').find('img').attr('src', "/images/home/applications2.png")
|
|
}
|
|
$(window).resize(function() {
|
|
var screenWidth = $(window).width()
|
|
if (screenWidth <= 768) {
|
|
$('.image').find('img').attr('src', "/images/home/applications2.png")
|
|
} else {
|
|
$('.image').find('img').attr('src', "/images/home/applications.png")
|
|
}
|
|
})
|
|
}
|
|
bindMouseLeftLi()
|
|
bindResize()
|
|
</script>
|
|
{{ end }} |