fix: logo
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
@@ -69,7 +69,7 @@ export default function LoginPage() {
|
|||||||
{/* Logo */}
|
{/* Logo */}
|
||||||
<div className="flex items-center justify-center mb-8">
|
<div className="flex items-center justify-center mb-8">
|
||||||
<Image
|
<Image
|
||||||
src="/logo-cirux.png"
|
src="/logo-cirux-light.webp"
|
||||||
alt="Cirux"
|
alt="Cirux"
|
||||||
width={180}
|
width={180}
|
||||||
height={48}
|
height={48}
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
@@ -4,6 +4,7 @@ import { useMemo, useCallback } from "react";
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { usePathname, useRouter } from "next/navigation";
|
import { usePathname, useRouter } from "next/navigation";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
|
import { useTheme } from "next-themes";
|
||||||
import {
|
import {
|
||||||
CalendarDays,
|
CalendarDays,
|
||||||
Users,
|
Users,
|
||||||
@@ -53,6 +54,7 @@ export function Sidebar() {
|
|||||||
const role = useAuthStore((s) => s.role);
|
const role = useAuthStore((s) => s.role);
|
||||||
const reset = useAuthStore((s) => s.reset);
|
const reset = useAuthStore((s) => s.reset);
|
||||||
const supabase = useMemo(() => createClient(), []);
|
const supabase = useMemo(() => createClient(), []);
|
||||||
|
const { resolvedTheme } = useTheme();
|
||||||
|
|
||||||
const handleLogout = useCallback(async () => {
|
const handleLogout = useCallback(async () => {
|
||||||
const { error } = await supabase.auth.signOut();
|
const { error } = await supabase.auth.signOut();
|
||||||
@@ -77,7 +79,7 @@ export function Sidebar() {
|
|||||||
{sidebarOpen && (
|
{sidebarOpen && (
|
||||||
<Link href="/dashboard" className="flex items-center hover:opacity-80 transition-opacity">
|
<Link href="/dashboard" className="flex items-center hover:opacity-80 transition-opacity">
|
||||||
<Image
|
<Image
|
||||||
src="/logo-cirux.png"
|
src={resolvedTheme === "dark" ? "/logo-cirux-dark.webp" : "/logo-cirux-light.webp"}
|
||||||
alt="Cirux"
|
alt="Cirux"
|
||||||
width={120}
|
width={120}
|
||||||
height={32}
|
height={32}
|
||||||
|
|||||||
Reference in New Issue
Block a user