Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion assets/scss/_summary.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,16 @@ details {
details > ul {
padding: 1rem auto;
margin-bottom: 0;
}
}

.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
136 changes: 69 additions & 67 deletions content/en/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,73 +152,75 @@ function restoreImage(imgId, originalSrc) {
<!-- Wave Visualizer Script -->
<script>
const canvas = document.getElementById('visualizer');
const ctx = canvas.getContext('2d');
let time = 0;
let waveData = Array(8).fill(0).map(() => ({
value: Math.random() * 0.5 + 0.1,
targetValue: Math.random() * 0.15 + 0.1,
speed: Math.random() * .02 + 0.01
}));

function resizeCanvas() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
if (canvas) {
const ctx = canvas.getContext('2d');
let time = 0;
let waveData = Array(8).fill(0).map(() => ({
value: Math.random() * 0.5 + 0.1,
targetValue: Math.random() * 0.15 + 0.1,
speed: Math.random() * .02 + 0.01
}));

function resizeCanvas() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
}

function updateWaveData() {
waveData.forEach(data => {
if (Math.random() < 0.01) {
data.targetValue = Math.random() * 0.7 + 0.1;
}
const diff = data.targetValue - data.value;
data.value += diff * data.speed;
});
}

function draw() {
ctx.fillStyle = 'black';
ctx.fillRect(0, 0, canvas.width, canvas.height);

for (let i = 0; i < 8; i++) {
const freq = waveData[i].value * 7.0;
ctx.beginPath();

for (let x = 0; x < canvas.width; x += 1) {
const normalizedX = (x / canvas.width) * 2 - 1;
let px = normalizedX + i * 0.04 + freq * 0.03;
let py = Math.sin(px * 10 + time) * Math.cos(px * 2) * freq * 0.1 * ((i + 1) / 8);
const canvasY = (py + 1) * canvas.height / 2;

if (x === 0) {
ctx.moveTo(x, canvasY);
} else {
ctx.lineTo(x, canvasY);
}
}

const intensity = Math.min(1, freq * 0.3);
const r = 255 + intensity * 100;
const g = 243 + intensity * 130;
const b = 197;

ctx.lineWidth = .1 + (i * 0.3);
ctx.strokeStyle = `rgba(${r}, ${g}, ${b}, 0.6)`;
ctx.shadowColor = `rgba(${r}, ${g}, ${b}, 0.5)`;
ctx.shadowBlur = 5;
ctx.stroke();
ctx.shadowBlur = 0;
}
}

function animate() {
time += 0.02;
updateWaveData();
draw();
requestAnimationFrame(animate);
}

window.addEventListener('resize', resizeCanvas);
resizeCanvas();
animate();
Comment on lines +155 to +223
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nice improvement. However, I noticed that the canvas (visualizer) is currently commented out; I'm not sure if that was intentional or accidental.
Since you're refactoring, it might be worth evaluating whether the visualizer is still needed. If it’s no longer important, then the script could be removed altogether.
I tried uncommenting the visualizer to understand why it may have been disabled previously, and it seems it was interfering with the “Expect more from your infrastructure” title. That said, adding a negative z-index to the visualizer resolves the issue.
You might consider re-enabling the canvas, applying a negative z-index, and ensuring it’s properly centered.
Just a suggestion 😁
@leecalcote, any thoughts?

}

function updateWaveData() {
waveData.forEach(data => {
if (Math.random() < 0.01) {
data.targetValue = Math.random() * 0.7 + 0.1;
}
const diff = data.targetValue - data.value;
data.value += diff * data.speed;
});
}

function draw() {
ctx.fillStyle = 'black';
ctx.fillRect(0, 0, canvas.width, canvas.height);

for (let i = 0; i < 8; i++) {
const freq = waveData[i].value * 7.0;
ctx.beginPath();

for (let x = 0; x < canvas.width; x += 1) {
const normalizedX = (x / canvas.width) * 2 - 1;
let px = normalizedX + i * 0.04 + freq * 0.03;
let py = Math.sin(px * 10 + time) * Math.cos(px * 2) * freq * 0.1 * ((i + 1) / 8);
const canvasY = (py + 1) * canvas.height / 2;

if (x === 0) {
ctx.moveTo(x, canvasY);
} else {
ctx.lineTo(x, canvasY);
}
}

const intensity = Math.min(1, freq * 0.3);
const r = 255 + intensity * 100;
const g = 243 + intensity * 130;
const b = 197;

ctx.lineWidth = .1 + (i * 0.3);
ctx.strokeStyle = `rgba(${r}, ${g}, ${b}, 0.6)`;
ctx.shadowColor = `rgba(${r}, ${g}, ${b}, 0.5)`;
ctx.shadowBlur = 5;
ctx.stroke();
ctx.shadowBlur = 0;
}
}

function animate() {
time += 0.02;
updateWaveData();
draw();
requestAnimationFrame(animate);
}

window.addEventListener('resize', resizeCanvas);
resizeCanvas();
animate();
</script>
<!-- Wave Visualizer Script -->
2 changes: 1 addition & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h5 class="footer-h5"><a href="{{ .url }}">{{ .name }}</a></h5>
<p>
Subscribe to our Newsletter
</p>
<input class="footer-input" type="email" placeholder="Email Address" />
<input class="footer-input" type="email" id="footer-email" name="email" placeholder="Email Address" aria-label="Email Address">
<button class="footer-button" title="Subscribe" type="submit">Subscribe</button>
</div>
</form>
Expand Down
14 changes: 7 additions & 7 deletions layouts/partials/kanvas-corner-popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,25 @@ <h1>Collaborate with the team</h1>
<div class="kanvas-transition-container">
<div class="canvas-grid"></div>

<img class="kanvas-canvas-bg" src="{{ $bg.RelPermalink }}" alt="" />
<img class="kanvas-canvas-bg" src="{{ $bg.RelPermalink }}" alt="kanvas canvas" />

<div class="kanvas-layer">
<img class="kanvas-service-interface" src="{{ $svc.RelPermalink }}" alt="" />
<img class="kanvas-service-interface" src="{{ $svc.RelPermalink }}" alt="kanvas service" />
</div>
<div class="kanvas-layer">
<img class="kanvas-ingress-gateway" src="{{ $ingress.RelPermalink }}" alt="" />
<img class="kanvas-ingress-gateway" src="{{ $ingress.RelPermalink }}" alt="kanvas ingress" />
</div>
<div class="kanvas-layer">
<img class="kanvas-kubernetes" src="{{ $kube.RelPermalink }}" alt="" />
<img class="kanvas-kubernetes" src="{{ $kube.RelPermalink }}" alt="kanvas kubernetes" />
</div>
<div class="kanvas-layer">
<img class="kanvas-pod" src="{{ $pod.RelPermalink }}" alt="" />
<img class="kanvas-pod" src="{{ $pod.RelPermalink }}" alt="kanvas pod" />
</div>
<div class="kanvas-layer">
<img class="kanvas-prometheus" src="{{ $prom.RelPermalink }}" alt="" />
<img class="kanvas-prometheus" src="{{ $prom.RelPermalink }}" alt="kanvas prometheus" />
</div>

<img class="kanvas-supporting-arrows" src="{{ $arrows.RelPermalink }}" alt="" />
<img class="kanvas-supporting-arrows" src="{{ $arrows.RelPermalink }}" alt="kanvas supporting arrows" />
</div>

<div class="try-it-text">
Expand Down
1 change: 1 addition & 0 deletions layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@
aria-expanded="false"
>
</div>
<span class="sr-only">User Profile</span>
</a>
</li>
</div>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/search-input-nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<div class="td-search">
<div class="td-search__icon"></div>
<input type="search" class="form-control td-search__input" placeholder="{{ T "ui_search" }}" aria-label="{{ T "ui_search" }}" autocomplete="off">
<input type="search" class="form-control td-search__input" name="search" placeholder="{{ T "ui_search" }}" aria-label="{{ T "ui_search" }}" autocomplete="off">
</div>

{{- end -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/search-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<div class="td-search">
<div class="td-search__icon"></div>
<input type="search" class="form-control td-search__input" placeholder="{{ T "ui_search" }}" aria-label="{{ T "ui_search" }}" autocomplete="off">
<input type="search" class="form-control td-search__input" name="search" placeholder="{{ T "ui_search" }}" aria-label="{{ T "ui_search" }}" autocomplete="off">
</div>

{{- end -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/video-landing-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ <h3>{{ .Title }}</h3>
<div class="modal fade" id="videoModal" tabindex="-1" aria-labelledby="videoModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header"><a href="" id="videoPageLink"><h4 id="videoModalTitle"></h4></a>
<div class="modal-header"><a href="#" id="videoPageLink"><h4 id="videoModalTitle"></h4></a>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" style="background-color: #00b39f;"></button>
</div>
<div class="modal-body p-0">
Expand Down
Loading