Skip to content

Commit e6ee8d5

Browse files
committed
remove video and use youtube instead
1 parent 0f8412e commit e6ee8d5

File tree

3 files changed

+17
-26
lines changed

3 files changed

+17
-26
lines changed
-1.31 MB
Binary file not shown.
Binary file not shown.

src/components/Header.tsx

+17-26
Original file line numberDiff line numberDiff line change
@@ -155,21 +155,17 @@ export default function Header({
155155
duration={0.4}
156156
easeType="ease-in"
157157
render={({ style }) => (
158-
<video
159-
preload="none"
158+
<iframe
160159
className={styles.video}
161-
id="tabPanel-1"
162-
aria-labelledby="tabPanel-1"
163-
controls
164-
playsInline
165-
muted
166160
style={style}
167-
>
168-
<source
169-
src="/video/react-hook-form-demo-video.mp4"
170-
type="video/mp4"
171-
/>
172-
</video>
161+
width="560"
162+
height="315"
163+
src="https://www.youtube.com/embed/7ytK2qU9ac8?si=itv-Hocfih4pnRE4"
164+
title="YouTube video player"
165+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
166+
referrerpolicy="strict-origin-when-cross-origin"
167+
allowfullscreen
168+
/>
173169
)}
174170
/>
175171
</div>
@@ -179,20 +175,15 @@ export default function Header({
179175
className={isWeb ? styles.videoWrapperHide : styles.videoWrapperShow}
180176
>
181177
<h4 className={styles.videoHeading}>React Native</h4>
182-
<video
183-
preload="none"
178+
<iframe
184179
className={styles.video}
185-
id="tabPanel-2"
186-
aria-labelledby="tabPanel-2"
187-
controls
188-
playsInline
189-
muted
190-
>
191-
<source
192-
src="/video/react-hook-form-native-demo-video.mp4"
193-
type="video/mp4"
194-
/>
195-
</video>
180+
width="560"
181+
height="315"
182+
src="https://www.youtube.com/embed/rIKMY5azC3A?si=fYwKNYewKAlv6hoW"
183+
title="YouTube video player"
184+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
185+
referrerPolicy="strict-origin-when-cross-origin"
186+
/>
196187
</div>
197188

198189
<div

0 commit comments

Comments
 (0)