Compare commits

..

3 Commits

Author SHA1 Message Date
Henry
200ee27392 fix: use resolvedTheme to fallback to system theme 2025-10-25 21:43:21 +01:00
Henry
86638026df feat: update hero image (#227) 2025-10-24 21:54:52 +01:00
Henry
4a3cf50c76 feat: display scrolling company logos (#226)
* feat: add scrolling company logos

* chore: update translations
2025-10-24 21:21:02 +01:00
6 changed files with 8 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 398 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 KiB

After

Width:  |  Height:  |  Size: 423 KiB

View File

@@ -39,7 +39,7 @@ export default function Dashboard({
rightPanel,
hasRightPanel = false,
}: DashboardProps) {
const { theme } = useTheme();
const { resolvedTheme } = useTheme();
const { openModal } = useModal();
const { availableWorkspaces, hasLoaded } = useWorkspace();
@@ -95,7 +95,7 @@ export default function Dashboard({
}
}, [hasLoaded, availableWorkspaces.length, openModal]);
const isDarkMode = theme === "dark";
const isDarkMode = resolvedTheme === "dark";
return (
<>

View File

@@ -2,7 +2,7 @@ import { CgDarkMode } from "react-icons/cg";
import { useTheme } from "next-themes";
const ThemeToggle = () => {
const { theme, setTheme } = useTheme();
const { theme, resolvedTheme, setTheme } = useTheme();
const toggleTheme = () => {
setTheme(theme === "light" ? "dark" : "light");
@@ -12,11 +12,11 @@ const ThemeToggle = () => {
<button
onClick={toggleTheme}
className="rounded p-1.5 transition-all hover:bg-light-200 dark:hover:bg-dark-100"
aria-label={`Switch to ${theme === "light" ? "dark" : "light"} theme`}
aria-label={`Switch to ${resolvedTheme === "light" ? "dark" : "light"} theme`}
>
<CgDarkMode
className={`h-4 w-4 text-light-900 transition-transform duration-200 dark:text-dark-900 ${
theme === "dark" ? "rotate-180" : "rotate-0"
resolvedTheme === "dark" ? "rotate-180" : "rotate-0"
}`}
/>
</button>

View File

@@ -3,6 +3,7 @@ import Link from "next/link";
import { useRouter } from "next/navigation";
import { Menu, Transition } from "@headlessui/react";
import { t } from "@lingui/core/macro";
import { useTheme } from "next-themes";
import { Fragment } from "react";
import { twMerge } from "tailwind-merge";
@@ -10,7 +11,6 @@ import { authClient } from "@kan/auth/client";
import { useIsMobile } from "~/hooks/useMediaQuery";
import { useModal } from "~/providers/modal";
import { useTheme } from "next-themes";
import { getAvatarUrl } from "~/utils/helpers";
interface UserMenuProps {

View File

@@ -7,13 +7,13 @@ import Footer from "./Footer";
import Header from "./Header";
export default function Layout({ children }: { children: React.ReactNode }) {
const { theme } = useTheme();
const { resolvedTheme } = useTheme();
const { data: session } = authClient.useSession();
const isLoggedIn = !!session?.user;
const isDarkMode = theme === "dark";
const isDarkMode = resolvedTheme === "dark";
return (
<>