Merge pull request #24046 from overleaf/em-cdn-assets

Load assets from the CDN in selected pages

GitOrigin-RevId: c2b25f74e30c0ce47e486855dee3815d72d43d47
This commit is contained in:
Eric Mc Sween
2025-03-06 09:05:23 +00:00
committed by Copybot
parent 8e86a78666
commit 4ccc21ca85
30 changed files with 325 additions and 42 deletions
@@ -2,6 +2,8 @@ import { useTranslation } from 'react-i18next'
import Icon from '../../../../shared/components/icon'
import { useProjectContext } from '../../../../shared/context/project-context'
import { useUserContext } from '../../../../shared/context/user-context'
import teaserVideo from '../../images/teaser-track-changes.mp4'
import teaserImage from '../../images/teaser-track-changes.gif'
import { startFreeTrial, upgradePlan } from '@/main/account-upgrade'
import { memo } from 'react'
import { useFeatureFlag } from '@/shared/context/split-test-context'
@@ -41,12 +43,9 @@ function UpgradeTrackChangesModal({
<div className="teaser-video-container">
{/* eslint-disable-next-line jsx-a11y/media-has-caption */}
<video className="teaser-video" autoPlay loop>
<source
src="/img/teasers/track-changes/teaser-track-changes.mp4"
type="video/mp4"
/>
<source src={teaserVideo} type="video/mp4" />
<img
src="/img/teasers/track-changes/teaser-track-changes.gif"
src={teaserImage}
alt={t('demonstrating_track_changes_feature')}
/>
</video>
Binary file not shown.

After

Width:  |  Height:  |  Size: 762 KiB