Skip to content

Commit

Permalink
Update video sources in Home component to use dynamic API URLs for im…
Browse files Browse the repository at this point in the history
…proved maintainability
  • Loading branch information
S-e-b-a-s committed Dec 4, 2024
1 parent 442dfe7 commit 95c6c11
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 6,286 deletions.
12 changes: 4 additions & 8 deletions frontend/src/components/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ import { Typography, Box, Container, Card } from '@mui/material';

// Media
import realBenefit2 from '@images/benefits/benefit-1.webp';
import video from '@videos/futbol.mp4';
import cake from '@images/birthdays/cake.webp';
import AvatarImage from '@images/home-carousel/avatar.jpg';
const fultbolVideo = `${getApiUrl().apiUrl}static/videos/futbol.mp4`;
const pointsVideo = `${getApiUrl().apiUrl}static/videos/points.mp4`;

// Libraries
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
Expand Down Expand Up @@ -182,12 +183,7 @@ const Home = () => {
}}
controls
>
<source
src={
'https://insights-api-dev.cyc-bpo.com/static/videos/points.mp4'
}
type="video/mp4"
/>
<source src={pointsVideo} type="video/mp4" />
</video>
</Box>
</Container>
Expand Down Expand Up @@ -419,7 +415,7 @@ const Home = () => {
}}
controls
>
<source src={video} type="video/mp4" />
<source src={fultbolVideo} type="video/mp4" />
</video>
</Box>
</Container>
Expand Down
Binary file removed frontend/src/images/cyc-logos/logotipo-navbar.png
Binary file not shown.
Binary file removed frontend/src/images/login/new-login-image.jpg
Binary file not shown.
Binary file removed frontend/src/images/managers-jr/79509094.webp
Binary file not shown.
Binary file removed frontend/src/images/quality/files.jpg
Binary file not shown.
6,278 changes: 0 additions & 6,278 deletions frontend/src/images/trivia/trivia.svg

This file was deleted.

Binary file removed frontend/src/images/workstations/piso-2.png
Binary file not shown.

0 comments on commit 95c6c11

Please sign in to comment.