Skip to content

Open source CapCut alternative.

TypeScript

fix(site): show Chrome's site-settings screenshot on the blocked connect screen

David Le0e6b7bec2618
diff --git a/site/public/cut/connect-site-settings.png b/site/public/cut/connect-site-settings.png
new file mode 100644
index 00000000..a4baea25
Binary files /dev/null and b/site/public/cut/connect-site-settings.png differ
diff --git a/site/src/cut/components/ConnectGate.tsx b/site/src/cut/components/ConnectGate.tsx
index cf77330f..301b523d 100644
--- a/site/src/cut/components/ConnectGate.tsx
+++ b/site/src/cut/components/ConnectGate.tsx
@@ -1,5 +1,6 @@
"use client";
+import Image from "next/image";
import { useCallback, useEffect, useState, type ReactNode } from "react";
import { Loader2, Plug, ShieldX } from "lucide-react";
@@ -80,9 +81,18 @@ export function ConnectGate({ children }: { children: ReactNode }) {
<p className="text-sm text-muted-foreground">
Your browser is blocking this page from reaching the Donkey app on
this Mac. Open the site settings from the icon next to the address
- bar, allow access to apps and services on this device, then try
- again.
+ bar, turn on{" "}
+ <span className="font-medium text-foreground">Apps on device</span>,
+ then try again.
</p>
+ <Image
+ alt="Chrome's site settings open over the address bar, with the Apps on device toggle"
+ className="w-full rounded-xl border shadow-sm [mask-image:linear-gradient(to_bottom,black_72%,transparent)]"
+ height={660}
+ src="/cut/connect-site-settings.png"
+ unoptimized
+ width={970}
+ />
<Button onClick={() => void check()}>Try again</Button>
</div>
</div>
diff --git a/site/src/cut/components/ProjectsHome.tsx b/site/src/cut/components/ProjectsHome.tsx
index 8caa4d1f..7d7de25d 100644
--- a/site/src/cut/components/ProjectsHome.tsx
+++ b/site/src/cut/components/ProjectsHome.tsx
@@ -421,7 +421,7 @@ export function ProjectsHome() {
{engineDown ? (
<div className="grid min-h-[60vh] place-items-center">
- <div className="flex max-w-sm flex-col items-center gap-4 text-center">
+ <div className="flex flex-col items-center gap-4 text-center">
<div className="grid size-14 place-items-center rounded-2xl bg-muted">
<Unplug className="size-7 text-muted-foreground" />
</div>