Skip to content

Commit 7f0fc44

Browse files
committedJun 4, 2023
Add an animated Prometheus Operator logo.
I've spent some time learning and experimenting with rive.app today. The result is an animated Prometheus Operator logo which I'm proposing to add. It's probably easiest to review with Netlify's preview.
1 parent 398bea1 commit 7f0fc44

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
 

‎layouts/index.html

+10-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<section class="section container-fluid mt-n3 pb-3">
33
<div class="row justify-content-center">
44
<div class="col-lg-12 text-center">
5-
<img src="{{ .Site.BaseURL | absURL }}/logo.svg" alt="Prometheus Operator Logo" height="200">
5+
<canvas id="logo" width="250" height="250"></canvas>
66
<h1 class="mt-0">{{ .Title }}</h1>
77
</div>
88
<div class="col-lg-9 col-xl-8 text-center">
@@ -15,6 +15,15 @@ <h1 class="mt-0">{{ .Title }}</h1>
1515
</p>
1616
</div>
1717
</div>
18+
<script src="https://unpkg.com/@rive-app/canvas@1.0.102"></script>
19+
<script>
20+
new rive.Rive({
21+
src: "{{ .Site.BaseURL | absURL }}/logo.riv",
22+
canvas: document.getElementById("logo"),
23+
autoplay: true,
24+
stateMachines: 'logo',
25+
})
26+
</script>
1827
</section>
1928
{{ end }}
2029

‎static/logo.riv

4.77 KB
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.