sa-sel / site-bixos-2024

Website for EESC-USP's electrical engineering freshmen from 2024.
http://bixos.saselusp.com.br
MIT License
0 stars 1 forks source link

Create the video carousel component #16

Open FernandoCZanchetta opened 10 months ago

FernandoCZanchetta commented 10 months ago

Task description

Should receive the carousel title as well as the playlist id (e.g.: https://www.youtube.com/playlist?list=**PL_OkSoJUiZ5XF04xKXTc1gtm_HcJw0JrE**) as props. The title should be displayed just above the carousel and be an hyperlink to the playlist.

The component should use a service to do all the computation. Make a request to the playlist link and parse the result to get a list of all videos as { title: string, url: string, thumbnail: string }.

The component should display a row of thumbnails that'll open the respective video on click (new tab!). Important to have feedback on hover and gap between thumbnails. The video title should be used as alt-text.

Portuguese 🇧🇷

Deve receber o título do carrossel, além do id da playlist (por exemplo: https://www.youtube.com/playlist?list=**PL_OkSoJUiZ5XF04xKXTc1gtm_HcJw0JrE**) como props. O título deve ser mostrado logo abaixo do carrossel e ser um hiperlink para a playlist.

O componente deve usar um serviço para fazer toda a computação. Fazer uma requisição para o link da playlist e parsear o resultado para obter uma lista de todos os vídeos no formato { title: string, url: string, thumbnail: string }.

O componente deve mostrar uma linha de thumbnails que abrirá o vídeo respectivo ao clicar (numa nova guia!). É importante ter feedback quando o cursor é posicionado acima e espaçamentos entre as thumbnails. O título do vídeo deve ser usado como alt-text.

References

Relevant/related links: