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
2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import PrivacyPolicy from "@/pages/PrivacyPolicy.tsx";
import Footer from "@/components/Footer.tsx";
import SpeakerInfo from "@/components/SpeakerInfo.tsx";
import {AppProvider} from "@/context/AppContext.tsx";
import TicketsPage from "@/pages/TicketsPage.tsx";

const queryClient = new QueryClient();

Expand All @@ -31,6 +32,7 @@ const App = () => {
<Route path="/code-of-conduct" element={<CodeOfConduct />}/>
<Route path="/privacy-policy" element={<PrivacyPolicy/>}/>
<Route path="/speaker/:speakerId" element={<SpeakerInfo/>}/>
<Route path="/boletos" element={<TicketsPage />} />
</Routes>
</main>
<Footer />
Expand Down
3 changes: 2 additions & 1 deletion src/pages/Loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, {useEffect, useState} from "react";
import posadevLogo from "@/img/posadev-logo.png";
import CaneCandy from "@/components/ui/caneCandy.tsx";

const Loading =({ count = 3, size = 14, gap = 8 })=> {
const Loading =({ count = 3, size = 14, text = null })=> {
const [visibleCount, setVisibleCount] = useState(1);

useEffect(() => {
Expand All @@ -28,6 +28,7 @@ const Loading =({ count = 3, size = 14, gap = 8 })=> {
alt="Logo de Posadev"
className="h-32 md:h-48 w-auto animate-fade-in mb-4"
/>
{text && <h1 className="text-center text-white text-3xl font-bold md:text-5xl candy-text" style={{ animation: "colorShift 0.2s infinite alternate"}}>{text}</h1>}
<h1 className="hidden text-white text-3xl font-bold md:text-5xl candy-text" style={{ animation: "colorShift 1.2s infinite alternate"}}>Cargando</h1>
</div>
<div style={{ display: "flex", alignItems: "flex-end" }}>
Expand Down
12 changes: 12 additions & 0 deletions src/pages/TicketsPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import {useEffect} from "react";
import Loading from "@/pages/Loading.tsx";

const TicketsPage = () => {
useEffect(() => {
window.location.href = "https://boletos.posadev.org/event/5/posadev";
}, []);

return (<Loading text="Redirigiendo a boletos"></Loading>)
}

export default TicketsPage;