Skip to content

Commit

Permalink
feat: add small brand logo
Browse files Browse the repository at this point in the history
  • Loading branch information
marslavish committed Jul 15, 2024
1 parent f5ad37c commit 22ab91b
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 9 deletions.
18 changes: 12 additions & 6 deletions templates/chain-template/components/common/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ interface HeaderProps {
export const Header = ({ onOpenSidebar }: HeaderProps) => {
const { theme, setTheme } = useTheme();
const { isDesktop, isMobile } = useDetectBreakpoints();
const brandLogoSrc = useColorModeValue(
'/logos/your-logo.svg',
'/logos/your-logo-dark.svg'

const brandLogo = useColorModeValue(
'/logos/brand-logo.svg',
'/logos/brand-logo-dark.svg'
);

const brandLogoSm = useColorModeValue(
'/logos/brand-logo-sm.svg',
'/logos/brand-logo-sm-dark.svg'
);

return (
Expand All @@ -30,11 +36,11 @@ export const Header = ({ onOpenSidebar }: HeaderProps) => {
{!isDesktop && (
<Link href="/">
<Image
src={brandLogoSrc}
alt="cosmology"
src={isMobile ? brandLogoSm : brandLogo}
alt="your logo"
width="0"
height="0"
style={{ width: isMobile ? '160px' : '180px', height: 'auto' }}
style={{ width: isMobile ? '40px' : '180px', height: 'auto' }}
/>
</Link>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export const Sidebar = ({ isOpen, onClose }: SidebarProps) => {
const { isDesktop } = useDetectBreakpoints();

const brandLogoSrc = useColorModeValue(
'/logos/your-logo.svg',
'/logos/your-logo-dark.svg'
'/logos/brand-logo.svg',
'/logos/brand-logo-dark.svg'
);

const desktopSidebar = (
Expand All @@ -40,7 +40,7 @@ export const Sidebar = ({ isOpen, onClose }: SidebarProps) => {
<Link href="/" style={{ marginBottom: '50px' }}>
<Image
src={brandLogoSrc}
alt="cosmology"
alt="your logo"
width="0"
height="0"
style={{ width: '180px', height: 'auto' }}
Expand Down
12 changes: 12 additions & 0 deletions templates/chain-template/public/logos/brand-logo-sm-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions templates/chain-template/public/logos/brand-logo-sm.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 22ab91b

Please sign in to comment.