add devops video

This commit is contained in:
liuboaibc 2020-06-14 13:07:51 +08:00
parent 4897582879
commit 464bb62c4a
3 changed files with 22 additions and 0 deletions

View File

@ -166,6 +166,15 @@ html {
width: 100%;
}
}
iframe {
margin-top: 40px;
@media only screen and (max-width: $mobile-max-width) {
width: 100%;
height: 300px;
}
}
p {
margin-top: 56px;

View File

@ -42,6 +42,7 @@ section2:
section3:
title: See KubeSphere One-stop DevOps Workflow In Action
videoLink: https://www.youtube.com/embed/c3V-2RX9yGY
image: /images/service-mesh/15.jpg
content: Want to get started in action by following with the hands-on lab?
btnContent: Start Hands-on Lab

View File

@ -49,7 +49,19 @@
<img class="bg-right" src="{{ .bgRight }}" alt="">
<div class="common-layout">
<h2 class="title-black-h2">{{ .title }}</h2>
{{ if .videoLink }}
<iframe
id='iframe-player'
src="{{ .videoLink }}"
width="900"
height="580"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen>
</iframe>
{{ else }}
<img src="{{ .image }}" alt="">
{{ end }}
<p class="common-p">{{ .content }}</p>
<a href="{{ .link }}"><button class="common-btn">{{ .btnContent }}</button></a>
</div>