Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: Remove header/footer from cap.link url's

Richie McIlroy685286f1a164
diff --git a/apps/web/app/globals.css b/apps/web/app/globals.css
index 2126e0a03..8c20454e6 100644
--- a/apps/web/app/globals.css
+++ b/apps/web/app/globals.css
@@ -291,7 +291,7 @@ slot:not(.dashboard-layout slot) {
display: block;
}
-.video-player slot {
+.aspect-video slot {
width: 100%;
height: 100%;
}
diff --git a/apps/web/app/share/[videoId]/Share.tsx b/apps/web/app/share/[videoId]/Share.tsx
index 0ea9393f0..52fe69c64 100644
--- a/apps/web/app/share/[videoId]/Share.tsx
+++ b/apps/web/app/share/[videoId]/Share.tsx
@@ -20,7 +20,7 @@ export const Share = ({ data }: { data: typeof videos.$inferSelect }) => {
<div className="wrapper py-6">
<div className="space-y-8">
<ShareHeader title={data.name} />
- <div className="aspect-video relative bg-gradient-to-b from-secondary to-secondary-3 p-16 flex items-center justify-center rounded-lg group">
+ <div className="aspect-video relative bg-black flex items-center justify-center rounded-lg group overflow-hidden">
<div className="video-player w-[175px] h-[175px] absolute bottom-4 right-12 overflow-hidden rounded-full z-10 shadow-[0px 0px 180px rgba(255, 255, 255, 0.18)]">
<VideoPlayer
isPlaying={isPlaying}
diff --git a/apps/web/components/Footer.tsx b/apps/web/components/Footer.tsx
index 3a024b885..38963fa84 100644
--- a/apps/web/components/Footer.tsx
+++ b/apps/web/components/Footer.tsx
@@ -8,7 +8,8 @@ export const Footer = () => {
if (
pathname === "/login" ||
pathname.includes("/dashboard") ||
- pathname.includes("/share")
+ pathname.includes("/share") ||
+ window.location.href.includes("cap.link")
)
return null;
diff --git a/apps/web/components/Navbar.tsx b/apps/web/components/Navbar.tsx
index 769f0197c..554fcc40e 100644
--- a/apps/web/components/Navbar.tsx
+++ b/apps/web/components/Navbar.tsx
@@ -10,7 +10,8 @@ export const Navbar = () => {
if (
pathname === "/login" ||
pathname.includes("/dashboard") ||
- pathname.includes("/share")
+ pathname.includes("/share") ||
+ window.location.href.includes("cap.link")
)
return null;