Skip to content

sucodelarangela/imersao-react-next

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AluraTube | Imersão React / Next.js

Read it in English

O AluraTube é uma plataforma clone do YouTube onde iremos colocar nossos vídeos favoritos e compartilhar com amigos.

Esse projeto foi desenvolvido em uma imersão da Alura voltada para iniciantes em React com foco em Next.js. O projeto está sendo desenvolvido sob a orientação do instrutor Mario Souto com participação da desenvolvedora Nayanne Lopes e do CEO da Alura, Paulo Silveira.

🪧 Vitrine. Dev
✨ Nome **AluraTube
🏷️ Tecnologias React, Next, Styled-Components, Radix UI, Supabase
🚀 URL https://aluratube-next-js.vercel.app/
🔥 Desafio Design no Figma

Detalhes do projeto

A imersão contemplou o uso de Next.js para o desenvolvimento da UI da aplicação, com o menu, a função de busca dos vídeos cadastrados, a estilização e definição de tema claro e tema escuro com styled-components, bem como mostrou como criar um banco de dados para cadastro dos vídeos na plataforma Supabase.

Como atividades adicionais, criei outras opções de tema além do claro/escuro, trocando o toggle feito durante o evento por um select com as opções de tema (esse select foi criado com Radix UI). Também implementei a opção de escolher dentre três playlists diferentes para salvar os vídeos, pois no evento foi mostrado apenas como salvar no Supabase em uma única playlist pré-definida. Para finalizar a aplicação, criei a funcionalidade de excluir um vídeo de uma determinada playlist, bastando clicar no botão no canto superior direito da thumbnail.

Como ideia de implementação futura, pode ser feito um sistema de cadastro/login para mostrar os vídeos por usuário, além da opção de poder criar uma nova playlist além das existentes. Atualmente a aplicação aceita apenas vídeos do YouTube, então torna-se necessário corrigir um erro que ocorre ao tentar adicionar vídeos de outras fontes.

⚙️ Como usar

Para usar a aplicação, basta acessar este link. Não é necessário login, sendo mostrado na página da aplicação alguns dos meus vídeos favoritos.

Para cadastrar novos vídeos, basta:

  • Clicar no botão que se encontra no canto inferior direito da tela;
  • Inserir o nome do vídeo;
  • Selecionar uma das três playlists existentes;
  • Inserir a URL do vídeo;
  • Clicar no botão "Ver thumbnail" para extrair a imagem do vídeo;
  • Clicar em "Cadastrar" para salva-lo na playlist especificada.

🔼 Voltar ao topo


English version

🔎 Overview

AluraTube is almost a YouTube clone where we can feed our favorite videos and share them with friends.

This project was developed following a free training course by Alura specifically designed to beginners in React and focused on Next.js under instructions of Mario Souto alongside with the front-end developer Nayanne Lopes and Alura's CEO, Paulo Silveira.

The event showed us how to use Next.js to develop the UI with the menu, the search functionality, the styles and the creation of dark and light themes with styled-components and also the creation of a simple database to store our saved videos on Supabase.

As an aditional practice, I have created other theme options beyond dark and light, changing the usual toggle button created during the event for a select input containing all theme options (this select was created with Radix UI). I have also implemented the option to choose among three different playlists to save the videos, since the event showed us how to save them on one unique predefined playlist. There is also a new functionality to delete a video from a playlist by simply clicking the delete button on the top right corner of the video thumbnail.

An idea for a future refator is to create a login/system to show videos according to the current user and the option to create a new playlist from scratch. Currently the app accepts only YouTube videos, so it is necessary to fix the error that occurs when the user tries to add a video from another source.

⚙️ How to use it

To use the application, visit this link. It is not necessary to register or login to the app and some of my favorite videos will show on screen.

To save new videos:

  • Click the button on the bottom right corner of the screen;
  • Type the title of the video;
  • Select one of the three playlists;
  • Type the video url (YouTube only);
  • Click on the "Ver thumbnail" to extract the video image;
  • Click in "Cadastrar" button to save it on the specified playlist.

🔼 Back to top


Developed with 🧡 by @sucodelarangela