Skip to content

Commit fcc4390

Browse files
Add demo video section for Pulumi IDP with embedded YouTube video and description. (#15267)
1 parent 8331267 commit fcc4390

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

content/product/internal-developer-platforms.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ why_idp:
3636
icon: cycle
3737
color: fuchsia
3838

39+
demo_video:
40+
title: See Pulumi IDP in Action
41+
subtitle: Watch how platform teams build secure, standardized infrastructure
42+
image: https://www.youtube.com/watch?v=3gZmKaAeppc
43+
3944
building_blocks:
4045
title: "Pulumi IDP: Building Blocks for Your Internal Developer Platform"
4146
items:

layouts/product/internal-developer-platforms.html

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,31 @@
55
{{ define "main" }}
66
{{ $pageContext := . }}
77

8-
<section id="overview" class="my-8 relative">
9-
<div class="container mx-auto">
10-
<h5 class="mx-auto text-center text-gray-600 w-3/4 text-xl">
11-
{{ .Params.overview.description | markdownify }}
12-
</h5>
13-
</div>
14-
<div class="container mx-auto text-center pt-8 w-9/12">
15-
<a href="{{ .Params.overview.link }}" class="btn-primary">{{ .Params.overview.cta}}</a>
8+
{{ if .Params.demo_video }}
9+
<section id="demo-video" class="container mx-auto my-16 flex flex-col">
10+
<div class="flex flex-col lg:flex-row px-8">
11+
<div class="w-full lg:w-1/2 lg:pr-8 order-last lg:order-first">
12+
<h2 class="text-2xl mb-4">Accelerate Cloud Delivery</h2>
13+
<h5 class="text-gray-600 text-xl">{{ .Params.overview.description | markdownify }}</h5>
14+
<div class="mt-8 text-center">
15+
<a href="{{ .Params.overview.link }}" class="btn-primary">{{ .Params.overview.cta}}</a>
16+
</div>
17+
</div>
18+
<div class="w-full lg:w-1/2 mb-8 lg:mb-0">
19+
<div class="rounded-xl shadow-2xl relative h-0 overflow-hidden" style="padding-bottom: 56.25%;">
20+
{{ $videoID := index (split .Params.demo_video.image "?v=") 1 }}
21+
<iframe
22+
src="https://www.youtube.com/embed/{{ $videoID }}?rel=0"
23+
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;"
24+
allowfullscreen=""
25+
title="{{ .Params.demo_video.title }}"
26+
srcdoc="<style>*{padding:0;margin:0;overflow:hidden}html,body{height:100%}img{position:absolute;width:100%;top:0;bottom:0;margin:auto}.play-button{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:120px;height:120px;background:rgba(255,255,255,0.9);border-radius:50%;display:flex;align-items:center;justify-content:center;transition:all 0.3s;box-shadow:0 8px 25px rgba(0,0,0,0.3)}.play-button:hover{background:rgba(255,255,255,1);transform:translate(-50%,-50%) scale(1.1);box-shadow:0 12px 35px rgba(0,0,0,0.4)}.play-button::after{content:'';border-left:36px solid #ff6b35;border-top:22px solid transparent;border-bottom:22px solid transparent;margin-left:8px}</style><a href=https://www.youtube.com/embed/{{ $videoID }}?autoplay=1><img src='https://img.youtube.com/vi/{{ $videoID }}/maxresdefault.jpg' alt='{{ .Params.demo_video.title }}'><div class='play-button'></div></a>"
27+
></iframe>
28+
</div>
29+
</div>
1630
</div>
1731
</section>
32+
{{ end }}
1833

1934
<section id="benefits" class="container mx-auto my-16">
2035
{{ with .Params.why_idp }}

0 commit comments

Comments
 (0)