Created
July 28, 2020 00:44
-
-
Save tashima42/49ba665e7efeacb4e9126cec831a055a to your computer and use it in GitHub Desktop.
Arquivo App.js da primeira aula da Imersão React Alura
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import Menu from './components/Menu/' | |
import dadosIniciais from './data/dados_iniciais.json' | |
import BannerMain from './components/BannerMain' | |
import Carousel from './components/Carousel' | |
import Footer from './components/Footer' | |
function App() { | |
return ( | |
<div style={{background: '#141414'}}> | |
<Menu></Menu> | |
<BannerMain | |
videoTitle={dadosIniciais.categorias[0].videos[0].titulo} | |
url={dadosIniciais.categorias[0].videos[0].url} | |
videoDescription={"O que é Front-end? Trabalhando na área os termos HTML, CSS e JavaScript parte da rotina das desenvolvedoras e desnvovlvedores. Mas o que els fazem afinal? Descubra com a Vanessa!"} | |
/> | |
<Carousel | |
ignoreFirstVideo | |
category={dadosIniciais.categorias[0]} | |
/> | |
<Carousel | |
ignoreFirstVideo | |
category={dadosIniciais.categorias[1]} | |
/> | |
<Carousel | |
ignoreFirstVideo | |
category={dadosIniciais.categorias[2]} | |
/> | |
<Carousel | |
ignoreFirstVideo | |
category={dadosIniciais.categorias[3]} | |
/> | |
<Carousel | |
ignoreFirstVideo | |
category={dadosIniciais.categorias[4]} | |
/> | |
<Carousel | |
ignoreFirstVideo | |
category={dadosIniciais.categorias[5]} | |
/> | |
<Footer /> | |
</div> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment