Skip to content

Commit

Permalink
Merge pull request #199 from gruz0/feature/update-logo-and-icon
Browse files Browse the repository at this point in the history
Update logo and icon
  • Loading branch information
gruz0 authored Nov 29, 2024
2 parents 517f90c + cf3947e commit dde9db1
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 9 deletions.
28 changes: 28 additions & 0 deletions public/CheckMVP-Logo-Dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/CheckMVP-Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions public/CheckMVP-Logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/app/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 2 additions & 9 deletions src/app/template.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
import Image from 'next/image'
import Link from 'next/link'
import Logo from '@/components/Logo'
import ThemeToggle from '@/components/ThemeToggle'
import CheckMVPLogo from '../../public/CheckMVP-Logo.png'

const Template = ({ children }: { children: React.ReactNode }) => (
<div className="flex min-h-screen flex-col bg-gray-100 transition-colors duration-300 dark:bg-gray-900">
<nav className="w-full bg-white shadow-md transition-colors duration-300 dark:bg-gray-800">
<div className="mx-auto max-w-5xl px-6">
<div className="flex h-16 items-center justify-between">
<Link href="/" className="flex items-center space-x-2">
<Image
src={CheckMVPLogo.src}
alt="CheckMVP"
width="150"
height="40"
className="dark:invert"
/>
<Logo />
</Link>

<div className="flex items-center space-x-4 md:space-x-6">
Expand Down
1 change: 1 addition & 0 deletions src/components/IdeaPDFReport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ const styles = StyleSheet.create({
},
logo: {
textAlign: 'center',
marginBottom: '24px',
},
title: {
fontSize: 24,
Expand Down
26 changes: 26 additions & 0 deletions src/components/Logo.tsx
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"
/>
)
}

0 comments on commit dde9db1

Please sign in to comment.