Skip to content

Commit

Permalink
fix: verifications
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalCodes committed Aug 4, 2024
1 parent 769235b commit 7d688ef
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ import Cloud from "./pages/cloud101/Cloud101";
import CodeofConduct from "./pages/coc/CodeofConduct";
import Evangelist from "./pages/evangelist/Evangelist";
import Events from "./pages/events/Events";
import Live from './pages/live/Live'
import Live from "./pages/live/Live";
import Home from "./pages/home/Home";
import Surprise from "./pages/surprise/Surprise";
import Team from "./pages/team/Team";
import Telegram from "./pages/telegram/Telegram";
import "./styles/Globals.scss";
import Register from "./pages/registration/Register";
import Verify from "./pages/verify/Verify";
import Certificate from "./pages/certificate/Certificate";

const App = () => {
return (
Expand Down Expand Up @@ -93,6 +95,8 @@ const App = () => {
<Route exact path="/coc" element={<CodeofConduct />} />
<Route exact path="/brand" element={<Brand />} />
<Route exact path="/tg" element={<Telegram />} />
<Route exact path="/verify" element={<Verify />} />
<Route exact path="/certificate" element={<Certificate />} />
<Route exact path="/cloud-101" element={<Cloud />} />
<Route exact path="/events" element={<Events />} />
<Route exact path="/evangelist" element={<Evangelist />} />
Expand Down
36 changes: 36 additions & 0 deletions src/pages/certificate/Certificate.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import React, { useEffect } from "react";

const Certificate = () => {
document.title = "Hack4Bengal | Certificate";
useEffect(() => {
if (window.location.pathname === "/certificate") {
setTimeout(() => {
window.location.href = "https://s3certificates.streamlit.app/";
}, 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>Certificates Incoming 🚀</p>
</div>
</>
);
};

export default Certificate;
36 changes: 36 additions & 0 deletions src/pages/verify/Verify.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import React, { useEffect } from "react";

const Verify = () => {
document.title = "Hack4Bengal | Verify Certificates";
useEffect(() => {
if (window.location.pathname === "/verify") {
setTimeout(() => {
window.location.href = "https://s3-verify.streamlit.app/";
}, 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>Verify Your Certificate ✅</p>
</div>
</>
);
};

export default Verify;
Empty file added src/pages/verify/Verify.scss
Empty file.

0 comments on commit 7d688ef

Please sign in to comment.