From 8d72c2c3d87ae5035f29555dc16aaa5830734136 Mon Sep 17 00:00:00 2001 From: Iwo Plaza Date: Mon, 3 Aug 2026 14:27:15 +0200 Subject: [PATCH] docs: New homepage fixes --- apps/typegpu-docs/src/components/Videos.astro | 1 + .../src/components/landing-examples/HoverExampleIsland.tsx | 4 ++-- apps/typegpu-docs/src/env.d.ts | 7 +++++++ apps/typegpu-docs/src/pages/new/index.astro | 4 ++-- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/apps/typegpu-docs/src/components/Videos.astro b/apps/typegpu-docs/src/components/Videos.astro index 3acd452755..43bb9d47fe 100644 --- a/apps/typegpu-docs/src/components/Videos.astro +++ b/apps/typegpu-docs/src/components/Videos.astro @@ -57,6 +57,7 @@ const videos = [ title="YouTube video player" class={video.iframeClassName ?? ''} frameborder="0" + credentialless allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen diff --git a/apps/typegpu-docs/src/components/landing-examples/HoverExampleIsland.tsx b/apps/typegpu-docs/src/components/landing-examples/HoverExampleIsland.tsx index 07400ae88a..b34d2491e0 100644 --- a/apps/typegpu-docs/src/components/landing-examples/HoverExampleIsland.tsx +++ b/apps/typegpu-docs/src/components/landing-examples/HoverExampleIsland.tsx @@ -82,8 +82,8 @@ export default function HoverExampleIsland({
}> {isHydrated && isGPUSupported && isActive ? liveComponent : null} diff --git a/apps/typegpu-docs/src/env.d.ts b/apps/typegpu-docs/src/env.d.ts index 17731596ff..2f37184d6a 100644 --- a/apps/typegpu-docs/src/env.d.ts +++ b/apps/typegpu-docs/src/env.d.ts @@ -1,3 +1,10 @@ // oxlint-disable typescript/triple-slash-reference /// /// + +namespace astroHTML.JSX { + interface IframeHTMLAttributes { + // This attribute exists + credentialless?: boolean | undefined; + } +} diff --git a/apps/typegpu-docs/src/pages/new/index.astro b/apps/typegpu-docs/src/pages/new/index.astro index cd88d363e2..274a5ab3a1 100644 --- a/apps/typegpu-docs/src/pages/new/index.astro +++ b/apps/typegpu-docs/src/pages/new/index.astro @@ -23,14 +23,14 @@ import SecondaryButton from '../../components/SecondaryButton.astro'; edgeAwareOverscroll >