diff --git a/index.html b/index.html index 72ae249c..db6973f7 100644 --- a/index.html +++ b/index.html @@ -49,6 +49,10 @@ href="https://fonts.googleapis.com/css2?family=Orbitron&family=Poppins&display=swap" rel="stylesheet" /> + diff --git a/src/App.tsx b/src/App.tsx index acdd9d10..0fef558e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -22,6 +22,7 @@ import Dashboard from "./pages/dashboard/Dashboard"; import { LoginStatus } from "./apis/api"; import { GoogleIdentity, isLoggedIn } from "./utils/utils"; import WhatsappIcon from "./components/whatsapp/Whatsapp"; +import Launch from "./pages/launch/launch"; function getTheme() { var theme = localStorage.getItem("theme"); @@ -112,6 +113,7 @@ function App() { }> }> + }> = ({}) => {

- VIJÑĀNA 2.0 + VIJÑ +
A
+ NA 2.0

{/* */} KBM Government College diff --git a/src/pages/launch/launch.module.css b/src/pages/launch/launch.module.css new file mode 100644 index 00000000..49663a9f --- /dev/null +++ b/src/pages/launch/launch.module.css @@ -0,0 +1,23 @@ +@keyframes anim { + from { + opacity: 0; + } + to { + opacity: 1; + } +} + +.launch { + width: 100vw; + height: 100vh; + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; + + .countDown { + font-size: 80px; + font-family: "Black Ops One", sans-serif; + animation: anim 1s linear infinite; + } +} diff --git a/src/pages/launch/launch.tsx b/src/pages/launch/launch.tsx new file mode 100644 index 00000000..4062ec9f --- /dev/null +++ b/src/pages/launch/launch.tsx @@ -0,0 +1,24 @@ +import { useNavigate } from "react-router-dom"; +import style from "./launch.module.css"; +import { useEffect, useState } from "react"; + +interface EventsProps {} + +const Launch: React.FC = ({}) => { + const [count, setCount] = useState(3); + const redirect = useNavigate(); + + setInterval(async () => { + if (count >= 1) await setCount(count - 1); + else redirect("/"); + }, 1000); + return ( +
+
+ {count} +
+
+ ); +}; + +export default Launch;