Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import SessionPage from "@/pages/SessionPage.tsx";
import {AppStatus} from "@/types/types.ts";
import Loading from "@/pages/Loading.tsx";
import ErrorPage from "@/pages/ErrorPage.tsx";
import Estadisticas from "@/pages/Estadisticas.tsx";

const queryClient = new QueryClient();

Expand All @@ -45,6 +46,7 @@ const App = () => {
<Route path="/boletos" element={<TicketsPage />} />
<Route path="/media-kit" element={<MediaKit />} />
<Route path="session/:sessionId" element={<SessionPage />} />
<Route path="/estadisticas" element={<Estadisticas />} />
</Routes>
</main>
<Footer />
Expand Down
16 changes: 15 additions & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, {useEffect, useState} from 'react';
import {Image, Menu, UserStar, X} from 'lucide-react';
import {Image, Menu, UserStar, X, BarChart3} from 'lucide-react';
import posadevLogo from '/media-kit/posadev-logo.png';
import {useLocation, useNavigate} from "react-router-dom";
import {cn} from "@/lib/utils.ts";
Expand Down Expand Up @@ -68,6 +68,13 @@ const Header = () => {
>
<span>Agenda</span>
</a>
<a
onClick={() => navigate('/estadisticas')}
className={cn("text-white hover:text-posadev-brightPink transition-colors duration-300 flex items-center space-x-1", isActive('/estadisticas') && "text-posadev-brightPink")}
>
<BarChart3 className="w-4 h-4" aria-hidden="true"/>
<span>Estadísticas</span>
</a>
<a
onClick={() => {
navigate('/code-of-conduct')
Expand Down Expand Up @@ -103,6 +110,13 @@ const Header = () => {
>
Agenda
</a>
<a
onClick={() => navigateMenu('/estadisticas')}
className={cn("w-full flex items-center gap-2 text-white hover:text-posadev-brightPink transition-colors px-4 py-1 duration-300 space-x-2", isActive('/estadisticas') && "text-posadev-brightPink")}
>
<BarChart3 className="w-4 h-4" aria-hidden="true"/>
Estadísticas
</a>
<a
onClick={() => navigateMenu('/#patrocinadores')}
className={cn("w-full bg-gradient-to-r from-posadev-darkPink to-posadev-brightPink text-white px-4 py-3 rounded-lg flex items-center space-x-2 gap-2", isActive('/#patrocinadores') && "underline shadow-posadev-brightPink/25")}
Expand Down
Loading