Skip to content

Commit f466594

Browse files
authored
Merge pull request #241 from posadev/add-estadisticas
Agregando estadisticas
2 parents b45de9f + 27460f6 commit f466594

File tree

4 files changed

+477
-2
lines changed

4 files changed

+477
-2
lines changed

package-lock.json

Lines changed: 19 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import SessionPage from "@/pages/SessionPage.tsx";
2020
import {AppStatus} from "@/types/types.ts";
2121
import Loading from "@/pages/Loading.tsx";
2222
import ErrorPage from "@/pages/ErrorPage.tsx";
23+
import Estadisticas from "@/pages/Estadisticas.tsx";
2324

2425
const queryClient = new QueryClient();
2526

@@ -45,6 +46,7 @@ const App = () => {
4546
<Route path="/boletos" element={<TicketsPage />} />
4647
<Route path="/media-kit" element={<MediaKit />} />
4748
<Route path="session/:sessionId" element={<SessionPage />} />
49+
<Route path="/estadisticas" element={<Estadisticas />} />
4850
</Routes>
4951
</main>
5052
<Footer />

src/components/Header.tsx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, {useEffect, useState} from 'react';
2-
import {Image, Menu, UserStar, X} from 'lucide-react';
2+
import {Image, Menu, UserStar, X, BarChart3} from 'lucide-react';
33
import posadevLogo from '/media-kit/posadev-logo.png';
44
import {useLocation, useNavigate} from "react-router-dom";
55
import {cn} from "@/lib/utils.ts";
@@ -68,6 +68,13 @@ const Header = () => {
6868
>
6969
<span>Agenda</span>
7070
</a>
71+
<a
72+
onClick={() => navigate('/estadisticas')}
73+
className={cn("text-white hover:text-posadev-brightPink transition-colors duration-300 flex items-center space-x-1", isActive('/estadisticas') && "text-posadev-brightPink")}
74+
>
75+
<BarChart3 className="w-4 h-4" aria-hidden="true"/>
76+
<span>Estadísticas</span>
77+
</a>
7178
<a
7279
onClick={() => {
7380
navigate('/code-of-conduct')
@@ -103,6 +110,13 @@ const Header = () => {
103110
>
104111
Agenda
105112
</a>
113+
<a
114+
onClick={() => navigateMenu('/estadisticas')}
115+
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")}
116+
>
117+
<BarChart3 className="w-4 h-4" aria-hidden="true"/>
118+
Estadísticas
119+
</a>
106120
<a
107121
onClick={() => navigateMenu('/#patrocinadores')}
108122
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")}

0 commit comments

Comments
 (0)