-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #199 from gruz0/feature/update-logo-and-icon
Update logo and icon
- Loading branch information
Showing
7 changed files
with
83 additions
and
9 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
'use client' | ||
import Image from 'next/image' | ||
import { useTheme } from 'next-themes' | ||
import { useEffect, useState } from 'react' | ||
import CheckMVPLogoDark from '../../public/CheckMVP-Logo-Dark.svg' | ||
import CheckMVPLogo from '../../public/CheckMVP-Logo.svg' | ||
|
||
export default function Logo() { | ||
const { resolvedTheme } = useTheme() | ||
const [mounted, setMounted] = useState(false) | ||
|
||
useEffect(() => { | ||
setMounted(true) | ||
}, []) | ||
|
||
if (!mounted) return null | ||
|
||
return ( | ||
<Image | ||
src={resolvedTheme === 'dark' ? CheckMVPLogo.src : CheckMVPLogoDark.src} | ||
alt="CheckMVP" | ||
width="150" | ||
height="40" | ||
/> | ||
) | ||
} |