Skip to content

Commit 86b6d27

Browse files
authored
Merge pull request #47045 from sftim/20240630_when_it_is_all_over_we_still_have_to_clean_up
Clean up after the 10th birthday
2 parents b155f5d + 4619682 commit 86b6d27

File tree

5 files changed

+0
-130
lines changed

5 files changed

+0
-130
lines changed

assets/scss/_custom.scss

Lines changed: 0 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,89 +1421,6 @@ div.alert > em.javascript-required {
14211421
padding: 0.2rem;
14221422
}
14231423

1424-
// Special style for Kubernetes' 10th birthday
1425-
section.k8s-birthday-override {
1426-
background: #dae9f9; // Kubernetes light blue
1427-
1428-
> .k8s-birthday-wrapper {
1429-
display: flex;
1430-
flex-direction: row;
1431-
justify-content: center;
1432-
align-items: center;
1433-
align-content: flex-end;
1434-
gap: 2rem;
1435-
1436-
img.birthday-banner {
1437-
max-height: 20rem;
1438-
max-width: 100vw;
1439-
margin-left: auto;
1440-
margin-right: auto;
1441-
aspect-ratio: 1;
1442-
flex-grow: 1;
1443-
}
1444-
p {
1445-
flex-grow: 4;
1446-
text-align: center;
1447-
color: $blue;
1448-
font-size: 2.5em;
1449-
padding-bottom: 2.5rem;
1450-
margin: 1em;
1451-
}
1452-
}
1453-
1454-
div.k8s-birthday-override.revert-to-previous {
1455-
form {
1456-
display: block;
1457-
max-width: clamp(20rem, 30%, 100vw);
1458-
margin-left: auto;
1459-
padding-bottom: 0.5rem;
1460-
}
1461-
text-align: right;
1462-
label {
1463-
color: $blue;
1464-
padding-left: 1.2em;
1465-
padding-right: 1.2em;
1466-
text-decoration: underline;
1467-
font-size: 1.5rem;
1468-
}
1469-
input {
1470-
accent-color: $blue;
1471-
border-color: $blue;
1472-
visibility: hidden;
1473-
}
1474-
}
1475-
1476-
div.k8s-birthday-override.revert-to-previous:has(input:not(:checked)) {
1477-
display: initial;
1478-
}
1479-
1480-
&:has(input:checked) {
1481-
display: none;
1482-
}
1483-
}
1484-
1485-
@media screen and (max-width: 900px) {
1486-
section.k8s-birthday-override > .k8s-birthday-wrapper {
1487-
flex-wrap: wrap;
1488-
}
1489-
}
1490-
1491-
@media screen and (max-width: 900px) {
1492-
section.k8s-birthday-override > .k8s-birthday-wrapper {
1493-
gap: 0.2rem;
1494-
align-content: center;
1495-
p {
1496-
font-size: initial;
1497-
min-width: 80vw;
1498-
}
1499-
img.birthday-banner {
1500-
min-height: initial;
1501-
}
1502-
label {
1503-
font-size: 1.2rem;
1504-
}
1505-
}
1506-
}
15071424
@media screen and (max-aspect-ratio: 9/15) {
15081425
gap: 0.4rem;
15091426
}

content/en/_index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
{{< site-searchbar >}}
1010

11-
<!-- automatically replaced if Kubernetes birthday feature active -->
1211
{{< blocks/section class="k8s-overview" >}}
1312
{{% blocks/feature image="flower" id="feature-primary" %}}
1413
[Kubernetes]({{< relref "/docs/concepts/overview/" >}}), also known as K8s, is an open source system for automating deployment, scaling, and management of containerized applications.

content/en/community/special/kubernetes-10th-birthday.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

data/i18n/en/en.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,6 @@ other = "email address"
209209
[javascript_required]
210210
other = "JavaScript must be [enabled](https://www.enable-javascript.com/) to view this content"
211211

212-
[k8s_birthday_show_original_content]
213-
other = "Show original content…"
214-
215212
[katacoda_message]
216213
other = """<h4>Shutdown of interactive tutorials</h4>
217214
<p>The interactive tutorials on this website are being shut down. The Kubernetes
Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,3 @@
1-
{{- $shouldShowBirthdayBanner := false -}}
2-
{{- $now := time.Now -}}
3-
{{- with site.GetPage "page" "community/special/kubernetes-10th-birthday" -}}
4-
{{- if and (lt ( (.Param "display_date_start") | time.AsTime ) $now ) (gt ( (.Param "display_date_end") | time.AsTime ) ( $now.AddDate 0 0 1 ) ) -}}
5-
{{- $shouldShowBirthdayBanner = true -}}
6-
{{- warnf "%s" "It's Kubernetes' birthday, fingers crossed this renders OK" -}}
7-
{{- with resources.Get "images/k8s-10th-birthday.svg" -}}
8-
{{- else -}}
9-
{{- errorf "%s" "Birthday banner image missing" -}}
10-
{{- end -}}
11-
{{ end }}
12-
{{- end -}}
13-
{{- if $shouldShowBirthdayBanner -}}
14-
<section id="{{ .id }}" class="k8s-birthday-override">
15-
<div class="k8s-birthday-wrapper">
16-
<p>{{ "2014-06-06" | time.AsTime | time.Format ":date_long" }}</p>
17-
{{- with site.GetPage "page" "community/special/kubernetes-10th-birthday" -}}
18-
<a href="https://kubernetes.io/blog/2024/06/06/10-years-of-kubernetes/">
19-
<img src="{{ with resources.Get "images/k8s-10th-birthday.svg" }}{{ .RelPermalink }}{{ end }}" class="birthday-banner" title="{{ .Title | markdownify }}" alt="{{ .Content }}" ></img>
20-
</a>
21-
{{- else -}}
22-
{{- errorf "%s" "10th Birthday content missing" -}}
23-
{{- end -}}
24-
<p>{{ printf "%s-06-06" ( time.Format "2006" $now ) | time.AsTime | time.Format ":date_long" }}</p>
25-
</div>
26-
<div class="k8s-birthday-override revert-to-previous">
27-
<form><label for="skip-birthday-details">{{ T "k8s_birthday_show_original_content" }}</label><input type=checkbox id="skip-birthday-details"></form>
28-
</div>
29-
</section>
30-
{{- end -}}
311
<section id="{{ .id }}"{{ with .class }} class="{{ . }}"{{ end }}>
322
{{ .inner }}
333
</section>

0 commit comments

Comments
 (0)