Skip to content

Commit

Permalink
fix: use inline videos for bg videos (#1700)
Browse files Browse the repository at this point in the history
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
  • Loading branch information
jog1t committed Dec 24, 2024
1 parent 0c8003b commit 1812a22
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions site/src/components/HeaderPopupProductMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ export const HeaderPopupProductMenu = () => {
The easiest way to build & scale realtime applications.
</p>
</div>
<video className='absolute inset-0 h-full w-full object-cover opacity-60' muted loop>
<video
className='absolute inset-0 h-full w-full object-cover opacity-60'
muted
loop
playsInline
disablePictureInPicture
disableRemotePlayback>
<source
src='https://assets2.rivet.gg/effects/bg-effect-product-actors.webm?v=2'
type='video/webm'
Expand Down Expand Up @@ -54,9 +60,7 @@ export const HeaderPopupProductMenu = () => {
className='col-start-3 h-full justify-start'
target='_blank'
startIcon={<Icon icon={faBriefcase} />}>
<Link href='/sales'>
Rivet Enterprise
</Link>
<Link href='/sales'>Rivet Enterprise</Link>
</Button>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion site/unframer.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://unframer-schema.vercel.app/schema.json",
"outDir": "./src/generated/framer",
"components": {
"index": "https://framer.com/m/Main-Page-hPg2.js@B7jkjleL93ReqNhS8tyF",
"index": "https://framer.com/m/Main-Page-hPg2.js@VogLOYtc1yK3kmm3YD2m",
"pricing": "https://framer.com/m/Pricing-Page-VfNq.js@iNJek3q0rL1MFbNQOpd3",
"sales": "https://framer.com/m/Sales-Page-serf.js@bZPytf0REs7q4bOEwvxc"
},
Expand Down

0 comments on commit 1812a22

Please sign in to comment.