Skip to content

Commit 0e3a062

Browse files
authored
Merge pull request #49167 from shurup/upgrade-kubecon-section
Redesign KubeCon links on the main page
2 parents 2f1ceb4 + e49c25c commit 0e3a062

File tree

4 files changed

+26
-19
lines changed

4 files changed

+26
-19
lines changed

assets/scss/_base.scss

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -545,16 +545,27 @@ section#cncf {
545545
margin-bottom: 20px;
546546
}
547547

548-
#desktopKCButton {
549-
position: absolute;
548+
// All #desktopKCButton blocks are left for back compatibility and
549+
// should be removed later, leaving .desktopKCButton only
550+
// See https://github.com/kubernetes/website/pull/49167 for details
551+
#desktopKCButton, .desktopKCButton {
552+
display: inline-block;
550553
font-size: 18px;
551554
background-color: $dark-grey;
552555
border-radius: 8px;
553556
color: $white;
557+
padding: 2px 8px;
558+
margin: 5px;
559+
}
560+
561+
#desktopKCButton {
562+
display: inline;
563+
position: absolute;
554564
padding: 20px 10px 20px 10px;
565+
margin: 0;
555566
}
556567

557-
#desktopKCButton:hover{
568+
#desktopKCButton:hover, .desktopKCButton:hover{
558569
background-color: #ffffff;
559570
color: #326ce5;
560571
transition: 150ms;
@@ -567,7 +578,7 @@ section#cncf {
567578
border-radius: 8px;
568579
color: $primary;
569580
padding: 15px 30px 15px 80px;
570-
margin-bottom: 15px;
581+
margin-bottom: 35px;
571582

572583
&:before {
573584
content: "";

assets/scss/_desktop.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
$main-max-width: 1200px;
22
$vendor-strip-height: 44px;
3-
$video-section-height: 550px;
3+
$video-section-height: 580px;
44

55
@media screen and (min-width: 1024px) {
66

@@ -96,4 +96,4 @@ $video-section-height: 550px;
9696
min-height: 260px;
9797
}
9898
}
99-
}
99+
}

assets/scss/_tablet.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ $video-section-height: 400px;
136136
#video {
137137
height: $video-section-height;
138138
display: block;
139-
height: 500px;
139+
height: 550px;
140140

141141
& > .light-text {
142142
display: block;

content/en/_index.html

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,16 @@
4242

4343
{{< blocks/section id="video" background-image="kub_video_banner_homepage" >}}
4444
<div class="light-text">
45-
<h2>The Challenges of Migrating 150+ Microservices to Kubernetes</h2>
45+
<h2>The Challenges of Migrating 150+ Microservices to Kubernetes</h2>
4646
<p>By Sarah Wells, Technical Director for Operations and Reliability, Financial Times</p>
4747
<button id="desktopShowVideoButton" onclick="kub.showVideo()">Watch Video</button>
48-
<br>
49-
<br>
50-
<a href="https://events.linuxfoundation.org/kubecon-cloudnativecon-north-america/" button id="desktopKCButton">Attend KubeCon + CloudNativeCon North America on November 12-15</a>
51-
<br>
52-
<br>
53-
<br>
54-
<a href="https://events.linuxfoundation.org/kubecon-cloudnativecon-india/" button id="desktopKCButton">Attend KubeCon + CloudNativeCon India on December 11-12</a>
55-
<br>
56-
<br>
57-
<br>
58-
<a href="https://events.linuxfoundation.org/kubecon-cloudnativecon-europe/" button id="desktopKCButton">Attend KubeCon + CloudNativeCon Europe on April 1-4, 2025</a>
48+
49+
<h3>Attend upcoming KubeCon + CloudNativeCon events</h3>
50+
<a href="https://events.linuxfoundation.org/kubecon-cloudnativecon-europe/" class="desktopKCButton"><strong>Europe</strong> (London, Apr 1-4)</a>
51+
<a href="https://events.linuxfoundation.org/kubecon-cloudnativecon-china/" class="desktopKCButton"><strong>China</strong> (Hong Kong, Jun 10-11)</a>
52+
<a href="https://events.linuxfoundation.org/kubecon-cloudnativecon-japan/" class="desktopKCButton"><strong>Japan</strong> (Tokyo, Jun 16-17)</a>
53+
<a href="https://events.linuxfoundation.org/kubecon-cloudnativecon-india/" class="desktopKCButton"><strong>India</strong> (Hyderabad, Aug 6-7)</a>
54+
<a href="https://events.linuxfoundation.org/kubecon-cloudnativecon-north-america-2025/" class="desktopKCButton"><strong>North America</strong> (Atlanta, Nov 10-13)</a>
5955
</div>
6056
<div id="videoPlayer">
6157
<iframe data-url="https://www.youtube.com/embed/H06qrNmGqyE?autoplay=1" frameborder="0" allowfullscreen></iframe>

0 commit comments

Comments
 (0)