Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat: launch product video

Richie McIlroy17d5ac0f69c8
diff --git a/apps/web/components/pages/HomePage/index.tsx b/apps/web/components/pages/HomePage/index.tsx
index 7b1e6aa20..028d1b50f 100644
--- a/apps/web/components/pages/HomePage/index.tsx
+++ b/apps/web/components/pages/HomePage/index.tsx
@@ -11,7 +11,7 @@ import {
PlatformIcons,
} from "@/utils/platform";
import { Button } from "@cap/ui";
-import { faAngleRight } from "@fortawesome/free-solid-svg-icons";
+import { faAngleRight, faPlay } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import MuxPlayer from "@mux/mux-player-react";
import { useClickAway } from "@uidotdev/usehooks";
@@ -133,10 +133,10 @@ export const HomePage = () => {
<motion.div
whileTap={{ scale: 0.95 }}
whileHover={{ scale: 1.05 }}
- // onClick={() => setVideoToggled(true)}
+ onClick={() => setVideoToggled(true)}
className="absolute cursor-pointer size-[100px] flex items-center justify-center group"
>
- {/* <div
+ <div
style={{
background:
"linear-gradient(180deg, rgba(255, 255, 255, 0.10) 30%, #3B7BFA 100%)",
@@ -158,7 +158,7 @@ export const HomePage = () => {
icon={faPlay}
/>
</div>
- </div> */}
+ </div>
</motion.div>
<img
src="/illustrations/app.webp"
@@ -343,24 +343,6 @@ export const HomePage = () => {
absolute top-20 z-[0] right-0 from-[#A6D7FF] to-transparent"
/>
</div>
- {/* <div
- id="scrolling-section"
- className="pb-32 -mt-24 md:pb-48 fade-in-up animate-delay-2"
- >
- <Parallax
- className="cursor-pointer"
- scale={[2.2, 1.25]}
- onClick={() =>
- toast("This was going to be something cool... it might be later 👀")
- }
- >
- <img
- src="/illustrations/landing-banner.png"
- className="w-full max-w-[600px] block mx-auto h-auto rounded-xl"
- alt="Landing Page Screenshot Banner"
- />
- </Parallax>
- </div> */}
<LogoSection />
<div className="pb-32 wrapper md:pb-40">
<div className="mb-4">
@@ -439,15 +421,12 @@ const VideoModal = ({ setVideoToggled }: Props) => {
className="w-[calc(100%-20px)] max-w-[1000px] bg-white rounded-[16px] md:h-[700px] h-[300px]"
>
<MuxPlayer
- playbackId="DS00Spx1CV902MCtPj5WknGlR102V5HFkDe"
+ playbackId="A6oZoUWVZjOIVZB6XnBMLagYnXE6xhDhp8Hcyky018hk"
+ metadataVideoTitle="Placeholder (optional)"
+ metadata-viewer-user-id="Placeholder (optional)"
accentColor="#5C9FFF"
className="h-full rounded-[16px] overflow-hidden select-none"
autoPlay
- metadata={{
- video_id: "video-id-123456",
- video_title: "Bick Buck Bunny",
- viewer_user_id: "user-id-bc-789",
- }}
/>
</motion.div>
</motion.div>
diff --git a/apps/web/utils/platform.tsx b/apps/web/utils/platform.tsx
index 1b75a25da..786e3e20c 100644
--- a/apps/web/utils/platform.tsx
+++ b/apps/web/utils/platform.tsx
@@ -191,6 +191,7 @@ export const PlatformIcons: React.FC = () => {
width="1em"
height="1em"
fill="currentColor"
+ style={{ marginTop: "1.5px" }}
className="size-[24px] text-gray-500 opacity-90"
viewBox="0 0 256 256"
>
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index b39837767..a9e63eed2 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -6,7 +6,7 @@ settings:
patchedDependencies:
'@kobalte/[email protected]':
- hash: daf56e70aa12211e66d61eca48f0538cc1963c967982714f3abc09110083cf0d
+ hash: kzigaefucz2gzue42hjqb5kxba
path: patches/@[email protected]
importers:
@@ -60,7 +60,7 @@ importers:
version: 0.0.14
'@kobalte/core':
specifier: ^0.13.7
- version: 0.13.7(patch_hash=daf56e70aa12211e66d61eca48f0538cc1963c967982714f3abc09110083cf0d)([email protected])
+ version: 0.13.7(patch_hash=kzigaefucz2gzue42hjqb5kxba)([email protected])
'@solid-primitives/bounds':
specifier: ^0.0.122
version: 0.0.122([email protected])
@@ -373,7 +373,7 @@ importers:
version: 8.57.1
eslint-config-airbnb-typescript:
specifier: ^18.0.0
eslint-import-resolver-typescript:
specifier: ^3.6.1
@@ -907,7 +907,7 @@ importers:
dependencies:
'@kobalte/core':
specifier: ^0.13.7
- version: 0.13.7(patch_hash=daf56e70aa12211e66d61eca48f0538cc1963c967982714f3abc09110083cf0d)([email protected])
+ version: 0.13.7(patch_hash=kzigaefucz2gzue42hjqb5kxba)([email protected])
cva:
specifier: npm:class-variance-authority@^0.7.0
@@ -11339,10 +11339,6 @@ packages:
webpack-sources:
optional: true
- resolution: {integrity: sha512-5liCNPuJW8dqh3+DM6uNM2EI3MLLpCKp/KY+9pB5M2S2SR2qvvDHhKgBOaTWEbZTAws3CXfB0rKTIolWKL05VQ==}
- engines: {node: '>=14.0.0'}
-
resolution: {integrity: sha512-4/u/j4FrCKdi17jaxuJA0jClGxB1AvU2hw/IuayPc4ay1XGaJs/rbb4v5WKwAjNifjmXK9PIFyuPiaK8azyR9w==}
engines: {node: '>=14.0.0'}
@@ -13977,7 +13973,7 @@ snapshots:
dependencies:
tslib: 2.8.1
- '@kobalte/[email protected](patch_hash=daf56e70aa12211e66d61eca48f0538cc1963c967982714f3abc09110083cf0d)([email protected])':
+ '@kobalte/[email protected](patch_hash=kzigaefucz2gzue42hjqb5kxba)([email protected])':
dependencies:
'@floating-ui/dom': 1.6.12
'@internationalized/date': 3.5.6
@@ -18686,7 +18682,7 @@ snapshots:
optionalDependencies:
source-map: 0.6.1
dependencies:
confusing-browser-globals: 1.0.11
eslint: 8.57.1
@@ -18695,12 +18691,12 @@ snapshots:
object.entries: 1.1.8
semver: 6.3.1
dependencies:
'@typescript-eslint/eslint-plugin': 7.18.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])
'@typescript-eslint/parser': 7.18.0([email protected])([email protected])
eslint: 8.57.1
- eslint-config-airbnb-base: 15.0.0([email protected])([email protected])
transitivePeerDependencies:
- eslint-plugin-import
@@ -18765,7 +18761,7 @@ snapshots:
debug: 4.3.7([email protected])
enhanced-resolve: 5.17.1
eslint: 8.57.1
fast-glob: 3.3.2
get-tsconfig: 4.8.1
is-bun-module: 1.2.1
@@ -18784,7 +18780,7 @@ snapshots:
debug: 4.3.7([email protected])
enhanced-resolve: 5.17.1
eslint: 8.57.1
fast-glob: 3.3.2
get-tsconfig: 4.8.1
is-bun-module: 1.2.1
@@ -18803,7 +18799,7 @@ snapshots:
debug: 4.3.7([email protected])
enhanced-resolve: 5.17.1
eslint: 8.57.1
fast-glob: 3.3.2
get-tsconfig: 4.8.1
is-bun-module: 1.2.1
@@ -18816,7 +18812,18 @@ snapshots:
- eslint-import-resolver-webpack
- supports-color
+ dependencies:
+ debug: 3.2.7
+ optionalDependencies:
+ '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
+ eslint: 8.57.1
+ eslint-import-resolver-node: 0.3.9
+ transitivePeerDependencies:
+ - supports-color
+
dependencies:
debug: 3.2.7
optionalDependencies:
@@ -18827,7 +18834,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
debug: 3.2.7
optionalDependencies:
@@ -18849,7 +18856,7 @@ snapshots:
doctrine: 2.1.0
eslint: 8.57.1
eslint-import-resolver-node: 0.3.9
hasown: 2.0.2
is-core-module: 2.15.1
is-glob: 4.0.3
@@ -18877,7 +18884,7 @@ snapshots:
doctrine: 2.1.0
eslint: 8.57.1
eslint-import-resolver-node: 0.3.9
hasown: 2.0.2
is-core-module: 2.15.1
is-glob: 4.0.3
@@ -24619,11 +24626,6 @@ snapshots:
acorn: 8.12.1
webpack-virtual-modules: 0.6.2
- dependencies:
- acorn: 8.14.0
- webpack-virtual-modules: 0.6.2
-
dependencies:
acorn: 8.14.0
@@ -24660,7 +24662,7 @@ snapshots:
mlly: 1.7.1
pathe: 1.1.2
pkg-types: 1.2.0
- unplugin: 1.16.0
+ unplugin: 1.16.1
dependencies: