Skip to content

Commit

Permalink
add 'development mode' styling
Browse files Browse the repository at this point in the history
  • Loading branch information
quentingrchr committed Jun 14, 2024
1 parent 7d61453 commit 9bcc750
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/components/layout/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,22 @@ import BrandIcon from './BrandIcon';

const Logo = (props: { className?: string; isWhite?: boolean }) => {
return (
<span className="flex items-center cursor-pointer gap-2">
<BrandIcon fill={props.isWhite ? 'white' : 'black'} />
<span className={clsx('flex items-center cursor-pointer gap-2')}>
<BrandIcon
fill={
process.env.NODE_ENV === 'development'
? 'red'
: props.isWhite
? 'white'
: 'black'
}
/>

<span
className={clsx(`text-xl font-[800] text-gray-900`, props.className)}
className={clsx(`text-xl font-[800] `, props.className, {
'text-red-600': process.env.NODE_ENV === 'development',
'text-gray-900': process.env.NODE_ENV !== 'development',
})}
>
digest.club
</span>
Expand Down

0 comments on commit 9bcc750

Please sign in to comment.