diff --git a/app/Home/index.jsx b/app/Home/index.jsx new file mode 100644 index 0000000..fa01470 --- /dev/null +++ b/app/Home/index.jsx @@ -0,0 +1,120 @@ +import Navbar from "@/components/Navbar"; +import { Button } from "@/components/ui/button"; +import { ArrowTopRightIcon } from "@radix-ui/react-icons"; +import hackbyteLogo from "@/public/hackbyteLogo.png"; +import Image from "next/image"; + +export default function Home() { + return ( + <> +
+ +
+
+ {/*

+ This year's theme :{" "} +

*/} +

+ This year's theme
unveils in April ... +

+
+
+

+ — Round 1 kicks off at +
5 April 2024, IIIT Jabalpur +

+ +
+
+ +
+ HackByte Logo +
+ +
+
+

+ HackByte: Empower Your Digital Odyssey! +

+
+
+
+ TPC Logo +

+ Organised by +
The Programming Club of + IIITDMJ +

+
+
+
+
+ IIITDMJ Logo +
+
+
+
+
+

+ HackByte: Empower Your Digital Odyssey! +

+

+ Embark on an enriching voyage with HackByte, where the fusion of + tech expertise and boundless innovation unfolds. +

+
+
+
+ + ); +} diff --git a/app/page.js b/app/page.js index 718131b..c83d81e 100644 --- a/app/page.js +++ b/app/page.js @@ -1,119 +1,13 @@ -import Navbar from "@/components/Navbar"; -import { Button } from "@/components/ui/button"; -import { ArrowTopRightIcon } from "@radix-ui/react-icons"; -import hackbyteLogo from "@/public/hackbyteLogo.png"; -import Image from "next/image"; +import React from "react"; +import dynamic from "next/dynamic"; +import Loading from "@/components/Loader"; -export default function Home() { - return ( -
- -
-
- {/*

- This year's theme :{" "} -

*/} -

- This year's theme
unveils in April ... -

-
-
-

- — Round 1 kicks off at -
5 April 2024, IIIT Jabalpur -

- -
-
+const Home = dynamic(() => import("../app/Home"), { + loading: () => , + ssr: false, +}); +const HomePage = () => { + return ; +}; -
- HackByte Logo -
- -
-
-

- HackByte: Empower Your Digital Odyssey! -

-
-
-
- TPC Logo -

- Organised by -
The Programming Club of - IIITDMJ -

-
-
-
-
- IIITDMJ Logo -
-
-
-
-
-

- HackByte: Empower Your Digital Odyssey! -

-

- Embark on an enriching voyage with HackByte, where the fusion of - tech expertise and boundless innovation unfolds. -

-
-
-
- ); -} +export default HomePage; \ No newline at end of file diff --git a/components/Loader/index.jsx b/components/Loader/index.jsx new file mode 100644 index 0000000..bbfd9bb --- /dev/null +++ b/components/Loader/index.jsx @@ -0,0 +1,23 @@ +const Loading = () => { + const elements = ["N", "I", "D", "A", "O", "L"]; + return ( +
+
+
+ {elements.map((element, index) => ( +
+ {element} +
+ ))} +
+
+
+ ); +}; +export default Loading; diff --git a/tailwind.config.js b/tailwind.config.js index 0a5fa43..54fde55 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -2,10 +2,10 @@ module.exports = { darkMode: ["class"], content: [ - './pages/**/*.{js,jsx}', - './components/**/*.{js,jsx}', - './app/**/*.{js,jsx}', - './src/**/*.{js,jsx}', + "./pages/**/*.{js,jsx}", + "./components/**/*.{js,jsx}", + "./app/**/*.{js,jsx}", + "./src/**/*.{js,jsx}", ], prefix: "", theme: { @@ -66,12 +66,26 @@ module.exports = { from: { height: "var(--radix-accordion-content-height)" }, to: { height: "0" }, }, + move: { + "0%": { left: "0", opacity: "0" }, + "35%": { left: "41%", transform: "rotate(0deg)", opacity: "1" }, + "65%": { left: "59%", transform: "rotate(0deg)", opacity: "1" }, + "100%": { left: "100%", transform: "rotate(-180deg)", opacity: "0" }, + }, }, animation: { "accordion-down": "accordion-down 0.2s ease-out", "accordion-up": "accordion-up 0.2s ease-out", + move: "move 2s linear infinite", + }, + animationDelay: { + 200: "200ms", + 400: "400ms", + 800: "800ms", + 1000: "1000ms", + 1200: "1200ms", }, }, }, plugins: [require("tailwindcss-animate")], -} \ No newline at end of file +};