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
Binary file added public/assets/bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function Home({ projects, issues }) {

useEffect(() => {
if (!user && !isLoading && !isAuthenticated) {
router.push("/login");
router.push("/landing");
}
}, [user, isLoading, isAuthenticated, router]);

Expand Down
20 changes: 20 additions & 0 deletions src/pages/landing.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import Link from "next/link";
import React from "react";

export default function LandingPage() {
return (
<main className="h-[calc(100vh-76px)] w-full flex justify-center items-center flex-col gap-8 custom-bg">
<section className="bg-gray-900/95 flex flex-col gap-10 p-8 rounded-md items-center">
<h1 className=" text-white text-xl sm:text-5xl font-semibold">
Keep track of bugs for annihilation.
</h1>
<Link
className="bg-gray-200 px-10 py-3 rounded-sm text-lg hover:bg-white duration-200 ease-linear"
href="/register"
>
Get Started
</Link>
</section>
</main>
);
}
4 changes: 4 additions & 0 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ body {

input, select, option, textarea {
@apply text-black w-[280px]
}

.custom-bg {
background-image: url("/assets/bg.jpg");
}