Skip to content

Commit

Permalink
feat: telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalCodes committed Feb 26, 2024
1 parent 3ffa3f4 commit 44e89e9
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { Suspense, lazy } from "react";
import { Route, BrowserRouter as Router, Routes } from "react-router-dom";
import { Footer, Navbar } from "./components/shared";
import Telegram from "./pages/telegram/Telegram";
import "./styles/Globals.scss";

const Home = lazy(() => import("./pages/home/Home"));
Expand All @@ -19,6 +20,7 @@ const App = () => {
<Route exact path="/discord" element={<Discord />} />
<Route exact path="/coc" element={<CodeofConduct />} />
<Route exact path="/brand" element={<Brand />} />
<Route exact path="/tg" element={<Telegram />} />
</Routes>
</Suspense>
</main>
Expand Down
36 changes: 36 additions & 0 deletions src/pages/telegram/Telegram.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import React, { useEffect } from "react";

const Telegram = () => {
document.title = "Hack4Bengal | Telegram";
useEffect(() => {
if (window.location.pathname === "/tg") {
setTimeout(() => {
window.location.href = "http://telegram.me/hack4bengal";
}, 800);
}
}, []);
return (
<>
<div
className="externalpage"
style={{
textAlign: "center",
display: "flex",
flexDirection: "column",
alignItems: "center",
justifyContent: "center",
margin: "auto",
justifyItems: "center",
fontWeight: "600",
fontFamily: "sans-serif",
fontSize: "3rem",
height: "100vh",
}}
>
<p>Launching Telegram 🚀</p>
</div>
</>
);
};

export default Telegram;
Empty file.

0 comments on commit 44e89e9

Please sign in to comment.