Skip to content

Commit dc8b5bf

Browse files
committed
chore: add send video feedback button
1 parent f8894a8 commit dc8b5bf

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

components/RecordVideoFeedback.tsx

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import React from "react";
2+
3+
export const RecordVideoFeedback = () => {
4+
return (
5+
<div className="fixed bottom-5 right-5 z-10 print:hidden">
6+
<button
7+
rel="noopener noreferrer"
8+
aria-label="Record your screen and send video feedback directly with Jam"
9+
title="Record your screen and send video feedback directly"
10+
className="flex flex-col shadow-md px-4 pr-6 py-2 rounded-full ring-1 ring-black/10 bg-white items-center"
11+
onClick={() =>
12+
window.open(
13+
"https://jam.dev/s?jam-recording=4UNxcBj",
14+
"_blank",
15+
"noopener,noreferrer"
16+
)
17+
}
18+
>
19+
<span className="flex items-center gap-2">
20+
<img
21+
width="32"
22+
height="32"
23+
src="https://storage.googleapis.com/jam-assets/jam-logo.webp"
24+
alt=""
25+
/>
26+
27+
<span className="flex flex-col items-start">
28+
<span className="text-sm font-medium">Send video feedback</span>
29+
<span className="text-[11px] text-gray-500">
30+
by jam.dev/recording-links
31+
</span>
32+
</span>
33+
</span>
34+
</button>
35+
</div>
36+
);
37+
};

pages/_app.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import "@/styles/globals.css";
22
import { ThemeProvider } from "@/components/theme-provider";
33
import type { AppProps } from "next/app";
4+
import { RecordVideoFeedback } from "@/components/RecordVideoFeedback";
45

56
export default function App({ Component, pageProps }: AppProps) {
67
return (
@@ -11,6 +12,7 @@ export default function App({ Component, pageProps }: AppProps) {
1112
disableTransitionOnChange
1213
>
1314
<Component {...pageProps} />
15+
<RecordVideoFeedback />
1416
</ThemeProvider>
1517
);
1618
}

0 commit comments

Comments
 (0)