Skip to content

Commit 17d5ac0

Browse files
committed
feat: launch product video
1 parent da4d741 commit 17d5ac0

File tree

3 files changed

+35
-53
lines changed

3 files changed

+35
-53
lines changed

apps/web/components/pages/HomePage/index.tsx

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
PlatformIcons,
1212
} from "@/utils/platform";
1313
import { Button } from "@cap/ui";
14-
import { faAngleRight } from "@fortawesome/free-solid-svg-icons";
14+
import { faAngleRight, faPlay } from "@fortawesome/free-solid-svg-icons";
1515
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
1616
import MuxPlayer from "@mux/mux-player-react";
1717
import { useClickAway } from "@uidotdev/usehooks";
@@ -133,10 +133,10 @@ export const HomePage = () => {
133133
<motion.div
134134
whileTap={{ scale: 0.95 }}
135135
whileHover={{ scale: 1.05 }}
136-
// onClick={() => setVideoToggled(true)}
136+
onClick={() => setVideoToggled(true)}
137137
className="absolute cursor-pointer size-[100px] flex items-center justify-center group"
138138
>
139-
{/* <div
139+
<div
140140
style={{
141141
background:
142142
"linear-gradient(180deg, rgba(255, 255, 255, 0.10) 30%, #3B7BFA 100%)",
@@ -158,7 +158,7 @@ export const HomePage = () => {
158158
icon={faPlay}
159159
/>
160160
</div>
161-
</div> */}
161+
</div>
162162
</motion.div>
163163
<img
164164
src="/illustrations/app.webp"
@@ -343,24 +343,6 @@ export const HomePage = () => {
343343
absolute top-20 z-[0] right-0 from-[#A6D7FF] to-transparent"
344344
/>
345345
</div>
346-
{/* <div
347-
id="scrolling-section"
348-
className="pb-32 -mt-24 md:pb-48 fade-in-up animate-delay-2"
349-
>
350-
<Parallax
351-
className="cursor-pointer"
352-
scale={[2.2, 1.25]}
353-
onClick={() =>
354-
toast("This was going to be something cool... it might be later 👀")
355-
}
356-
>
357-
<img
358-
src="/illustrations/landing-banner.png"
359-
className="w-full max-w-[600px] block mx-auto h-auto rounded-xl"
360-
alt="Landing Page Screenshot Banner"
361-
/>
362-
</Parallax>
363-
</div> */}
364346
<LogoSection />
365347
<div className="pb-32 wrapper md:pb-40">
366348
<div className="mb-4">
@@ -439,15 +421,12 @@ const VideoModal = ({ setVideoToggled }: Props) => {
439421
className="w-[calc(100%-20px)] max-w-[1000px] bg-white rounded-[16px] md:h-[700px] h-[300px]"
440422
>
441423
<MuxPlayer
442-
playbackId="DS00Spx1CV902MCtPj5WknGlR102V5HFkDe"
424+
playbackId="A6oZoUWVZjOIVZB6XnBMLagYnXE6xhDhp8Hcyky018hk"
425+
metadataVideoTitle="Placeholder (optional)"
426+
metadata-viewer-user-id="Placeholder (optional)"
443427
accentColor="#5C9FFF"
444428
className="h-full rounded-[16px] overflow-hidden select-none"
445429
autoPlay
446-
metadata={{
447-
video_id: "video-id-123456",
448-
video_title: "Bick Buck Bunny",
449-
viewer_user_id: "user-id-bc-789",
450-
}}
451430
/>
452431
</motion.div>
453432
</motion.div>

apps/web/utils/platform.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ export const PlatformIcons: React.FC = () => {
191191
width="1em"
192192
height="1em"
193193
fill="currentColor"
194+
style={{ marginTop: "1.5px" }}
194195
className="size-[24px] text-gray-500 opacity-90"
195196
viewBox="0 0 256 256"
196197
>

pnpm-lock.yaml

Lines changed: 27 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)