From 940c3430b877dc706620658c1795d4f792edbeb3 Mon Sep 17 00:00:00 2001 From: Sam Freund Date: Fri, 2 Jan 2026 20:42:59 -0600 Subject: [PATCH] Fix opengraph embed (#2265) The opengraph embed requires the image to be accessible at the linked location. As you can see by clicking on this link, https://photonvision.org/images/PhotonVision-Icon-BG_2.png, it is not accessible. This is because we need to configure a public directory when we publish with vite, as the subfolders will not inherently be published. This PR adds a public directory and moves all our images there. I also moved the video to a video directory rather than it being in images. --- website/index.html | 2 +- .../{ => public}/images/PhotonVision-Icon-BG.png | Bin website/{ => public}/images/demo.png | Bin website/{images => public/videos}/in-action.mp4 | Bin website/src/App.vue | 10 +++++----- website/vite.config.ts | 1 + 6 files changed, 7 insertions(+), 6 deletions(-) rename website/{ => public}/images/PhotonVision-Icon-BG.png (100%) rename website/{ => public}/images/demo.png (100%) rename website/{images => public/videos}/in-action.mp4 (100%) diff --git a/website/index.html b/website/index.html index eabd43d3d..2bd5980cf 100755 --- a/website/index.html +++ b/website/index.html @@ -31,7 +31,7 @@ /> diff --git a/website/images/PhotonVision-Icon-BG.png b/website/public/images/PhotonVision-Icon-BG.png similarity index 100% rename from website/images/PhotonVision-Icon-BG.png rename to website/public/images/PhotonVision-Icon-BG.png diff --git a/website/images/demo.png b/website/public/images/demo.png similarity index 100% rename from website/images/demo.png rename to website/public/images/demo.png diff --git a/website/images/in-action.mp4 b/website/public/videos/in-action.mp4 similarity index 100% rename from website/images/in-action.mp4 rename to website/public/videos/in-action.mp4 diff --git a/website/src/App.vue b/website/src/App.vue index 7f4d8b681..c53ea0cb6 100644 --- a/website/src/App.vue +++ b/website/src/App.vue @@ -103,7 +103,7 @@ const socialLinks = [ > PhotonVision @@ -177,7 +177,7 @@ const socialLinks = [ > PhotonVision Logo @@ -225,7 +225,7 @@ const socialLinks = [ class="absolute -inset-4 bg-gradient-to-r from-primary via-brand-blue to-brand-yellow rounded-2xl blur-xl opacity-30" > Demo of PhotonVision UI