Skip to content

Commit

Permalink
Atualizando App.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rngneto committed Jan 7, 2025
1 parent c693095 commit 276e0e5
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions front/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import Navbar from './Navbar';
import Eventos from './Eventos';
import RegisterUser from './RegisterUser';
import UserList from './UserList';
import UserList from './UserList';
import About from './About';
import Footer from './Footer';
import ThemeToggle from './ThemeToggle';
Expand All @@ -13,7 +13,8 @@ import HelpCenter from './HelpCenter';
import DeadLink from './DeadLink';
import MinhaConta from './MinhaConta';
import LoginUser from './LoginUser';
import Filter from './Filter';
import Carrossel from './Carousel'; // Importa o componente Carrossel
import Filter from './Filter';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap/dist/js/bootstrap.bundle.min.js';
import './App.css';
Expand Down Expand Up @@ -51,30 +52,32 @@ function App() {
setUsuarioLogado={setUsuarioLogado}
handleLogout={handleLogout}
/>

{/* Define as rotas */}
<Routes>
<Route
path="/"

<Routes>
<Route
path="/"
element={
<>
<Eventos filtro={filtro} /> {/* Exibindo eventos primeiro */}
<Carrossel /> {/* Exibindo o carrossel na página inicial */}
<Eventos filtro={filtro} /> {/* Exibindo eventos */}
<Filter onFilterChange={handleFilterChange} /> {/* Filtros abaixo dos eventos */}
</>
}
}
/>
<Route path="/create-event" element={<CreateEvent />} />
<Route path="/eventos/:id" element={<DetalhesEvento />} />
<Route path="/register" element={<RegisterUser setUsuarioLogado={handleLogin} />} />
<Route path="/login" element={<LoginUser setUsuarioLogado={handleLogin} />} />
<Route path="/eventos/:id" element={<DetalhesEvento />} />
<Route
path="/register"
element={<RegisterUser setUsuarioLogado={handleLogin} />}
/>
<Route path="/login" element={<LoginUser setUsuarioLogado={handleLogin} />} />
<Route path="/usuarios" element={<UserList />} />
<Route path="/about" element={<About />} />
<Route path="/help" element={<HelpCenter />} />
<Route path="/minha-conta" element={<MinhaConta usuario={usuarioLogado} />} />
<Route path="*" element={<DeadLink />} />
</Routes>

{/* Componente Footer que será exibido em todas as páginas */}

<Footer />
<ThemeToggle />
</div>
Expand Down

0 comments on commit 276e0e5

Please sign in to comment.