Skip to content

Commit faec447

Browse files
committed
fix: modify the access path to the video in about page
1 parent f4943aa commit faec447

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/pages/AboutPage.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ const AboutPage: React.FC = () => {
5555
width="100%"
5656
style={{ maxHeight: "500px", objectFit: "cover" }}
5757
>
58-
<source src="/video/tiger.mp4" type="video/mp4" />
58+
<source
59+
src={`${process.env.PUBLIC_URL}/video/introduction_video.mp4`}
60+
type="video/mp4"
61+
/>
5962
Your browser does not support the video tag.
6063
</video>
6164
</Box>
@@ -124,7 +127,10 @@ const AboutPage: React.FC = () => {
124127
width="100%"
125128
style={{ maxHeight: "500px", objectFit: "cover" }}
126129
>
127-
<source src="/video/preview_video.mp4" type="video/mp4" />
130+
<source
131+
src={`${process.env.PUBLIC_URL}/video/preview_video.mp4`}
132+
type="video/mp4"
133+
/>
128134
Your browser does not support the video tag.
129135
</video>
130136
</Box>

0 commit comments

Comments
 (0)