diff --git a/public/hero-dark.png b/public/hero-dark.png new file mode 100644 index 00000000..15da8cd2 Binary files /dev/null and b/public/hero-dark.png differ diff --git a/public/hero.png b/public/hero-light.png similarity index 100% rename from public/hero.png rename to public/hero-light.png diff --git a/src/views/home/index.tsx b/src/views/home/index.tsx index e8a6e933..3faee317 100644 --- a/src/views/home/index.tsx +++ b/src/views/home/index.tsx @@ -1,15 +1,18 @@ import Link from "next/link"; import Image from "next/image"; import Cookies from "js-cookie"; +import { IoLogoGithub } from "react-icons/io"; import Button from "~/components/Button"; import PatternedBackground from "~/components/PatternedBackground"; import { api } from "~/utils/api"; import { env } from "~/env.mjs"; -import { IoLogoGithub } from "react-icons/io"; +import { useTheme } from "~/providers/theme"; export default function HomeView() { + const theme = useTheme(); + const token = typeof window !== "undefined" ? Cookies.get(env.NEXT_PUBLIC_SUPABASE_AUTH_COOKIE_NAME) @@ -22,108 +25,117 @@ export default function HomeView() { const isLoggedIn = !!data; return ( -
- -
-
-
-

- kan.bn -

+ <> + +
+ +
+
+
+

+ kan.bn +

+
+
+ + Roadmap + + + Features + + + Pricing + + + Docs + +
+
+ {isLoggedIn ? ( + + ) : ( + <> + + + + )} +
-
- - Roadmap - - - Features - - - Pricing - - - Docs - -
-
- {isLoggedIn ? ( - - ) : ( - <> - - - - )} -
-
-
-
-
-
-
-
- +
+
+
+
+
+ + Star on Github + + +
+
+ +

+ The open source
+ alternative to Trello +

+ +

+ A powerful, flexible kanban app that helps you organise work, + track progress, and deliver results—all in one place. +

+ +
+ + +
+

+ No credit card required +

+
+
+
+
+
+ kanban
- -

- The open source
- alternative to Trello -

- -

- A powerful, flexible kanban app that helps you organise work, - track progress, and deliver results—all in one place. -

- -
- - -
-

- No credit card required -

-
-
-
-
- kanban +
+
+

+ We are currently building the product and will be launching + soon. +

-
-
-

- We are currently building the product and will be launching - soon. -

-
-
-
+ ); }