mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-04 04:33:10 +00:00
Added Basic Darkmode and Fixed Small Bugs
This commit is contained in:
parent
aacca3d141
commit
94fb5c7eb1
42 changed files with 593 additions and 72 deletions
|
@ -1,13 +1,21 @@
|
|||
'use client';
|
||||
|
||||
import Image from 'next/image';
|
||||
import Link from 'next/link';
|
||||
import { useTheme } from 'next-themes';
|
||||
|
||||
export const Logo = () => {
|
||||
const { theme } = useTheme();
|
||||
|
||||
return (
|
||||
// TODO: Make this go back to the organization page if you are logged in
|
||||
<Link href='/'>
|
||||
<div className='hidden items-center gap-x-2 transition hover:opacity-75 md:flex'>
|
||||
<div
|
||||
className='hidden items-center gap-x-2 transition hover:opacity-75 md:flex'
|
||||
suppressHydrationWarning
|
||||
>
|
||||
<Image
|
||||
src='/logo-transparent.svg'
|
||||
src={`/logo-${theme === 'light' ? 'light' : 'dark'}.svg`}
|
||||
alt='logo'
|
||||
height={100}
|
||||
width={100}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue