Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: Styling bug from <slot> tag

Richie McIlroyb2e262c932bc
diff --git a/apps/web/app/globals.css b/apps/web/app/globals.css
index 3fb60be97..45a432514 100644
--- a/apps/web/app/globals.css
+++ b/apps/web/app/globals.css
@@ -2,6 +2,38 @@
@tailwind components;
@tailwind utilities;
+:root {
+ --primary: #005cb1;
+ --primary-2: #004c93;
+ --primary-3: #003b73;
+ --secondary: #2eb4ff;
+ --secondary-2: #1696e0;
+ --secondary-3: #117ebd;
+ --tertiary: #c5eaff;
+ --tertiary-2: #d3e5ff;
+ --tertiary-3: #e0edff;
+ --filler: #efefef;
+ --filler-2: #e4e4e4;
+ --filler-3: #e2e2e2;
+ --filler-txt: #b3b3b3;
+ --text-primary: #0d1b2a;
+ --text-secondary: #ffffff;
+ --header-height: 80px;
+ --vh100-offset: calc(100vh - var(--header-height));
+ --foreground-rgb: #000000;
+ --background-start-rgb: 214, 219, 220;
+ --background-end-rgb: 255, 255, 255;
+ --primary-font: "Geist", sans-serif;
+}
+
+@media (prefers-color-scheme: dark) {
+ :root {
+ --foreground-rgb: #ffffff;
+ --background-start-rgb: 0, 0, 0;
+ --background-end-rgb: 0, 0, 0;
+ }
+}
+
@font-face {
font-family: "Geist";
src: url("/fonts/Geist-SemiBold.woff2") format("woff2"),
@@ -29,6 +61,12 @@
font-display: swap;
}
+body,
+html {
+ color: #000000;
+ font-family: var(--primary-font) !important;
+}
+
.wrapper {
@apply mx-auto w-[92%] max-w-screen-xl;
}
@@ -95,44 +133,6 @@ a.bg-primary:hover {
animation: animatedyaxis 6s ease infinite forwards;
}
-:root {
- --primary: #005cb1;
- --primary-2: #004c93;
- --primary-3: #003b73;
- --secondary: #2eb4ff;
- --secondary-2: #1696e0;
- --secondary-3: #117ebd;
- --tertiary: #c5eaff;
- --tertiary-2: #d3e5ff;
- --tertiary-3: #e0edff;
- --filler: #efefef;
- --filler-2: #e4e4e4;
- --filler-3: #e2e2e2;
- --filler-txt: #b3b3b3;
- --text-primary: #0d1b2a;
- --text-secondary: #ffffff;
- --header-height: 80px;
- --vh100-offset: calc(100vh - var(--header-height));
- --foreground-rgb: #000000;
- --background-start-rgb: 214, 219, 220;
- --background-end-rgb: 255, 255, 255;
- --primary-font: "Geist", sans-serif;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --foreground-rgb: #ffffff;
- --background-start-rgb: 0, 0, 0;
- --background-end-rgb: 0, 0, 0;
- }
-}
-
-body,
-html {
- color: #000000;
- font-family: var(--primary-font) !important;
-}
-
@media (prefers-color-scheme: dark) {
body,
html {
@@ -285,3 +285,7 @@ ul {
.dashboard-header p {
@apply text-lg;
}
+
+slot:first-of-type {
+ display: block;
+}
diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx
index b6b37c3e3..8a1feee65 100644
--- a/apps/web/app/layout.tsx
+++ b/apps/web/app/layout.tsx
@@ -1,6 +1,4 @@
"use client";
-import SupabaseListener from "@/utils/database/supabase/listener";
-import SupabaseProvider from "@/utils/database/supabase/provider";
import "@/app/globals.css";
import { Toaster } from "react-hot-toast";
import { Navbar } from "@/components/Navbar";
diff --git a/apps/web/components/pages/HomePage.tsx b/apps/web/components/pages/HomePage.tsx
index 110bf8fb9..8973718f0 100644
--- a/apps/web/components/pages/HomePage.tsx
+++ b/apps/web/components/pages/HomePage.tsx
@@ -49,7 +49,7 @@ export const HomePage = () => {
<h1 className="fade-in-down text-3xl sm:text-5xl lg:text-7xl relative z-10 text-black">
Your screen recordings deserve to be beautiful.
</h1>
- <p className="fade-in-down animate-delay-1 text-base sm:text-xl max-w-2xl mx-auto text-black">
+ <p className="fade-in-down animate-delay-1 text-base sm:text-xl max-w-2xl mx-auto text-black mb-8">
Cap is an open source and privacy-focused alternative to Loom.
Lightweight, powerful, and stunning. Record and share in seconds.
</p>
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs
index 6a84f7540..7af91db24 100644
--- a/apps/web/next.config.mjs
+++ b/apps/web/next.config.mjs
@@ -33,6 +33,7 @@ const nextConfig = {
const millionConfig = {
auto: {
rsc: true,
+ skip: ["Parallax"],
},
};