-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use 2 pontus-x logo variants for different screen sizes
- Loading branch information
1 parent
44de76f
commit 807ca1b
Showing
3 changed files
with
18 additions
and
12 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
.logo { | ||
display: none; | ||
} | ||
.logoSmall { | ||
display: block; | ||
width: var(--menu-logo-size-width-sm); | ||
height: var(--menu-logo-size-height-sm); | ||
margin: 0; | ||
} | ||
|
||
.logo path { | ||
fill: var(--menu-logo-color); | ||
} | ||
|
||
a > .logo:hover path { | ||
fill: var(--menu-logo-color-hover); | ||
} | ||
|
||
@media screen and (min-width: 55rem) { | ||
.logo { | ||
display: block; | ||
width: var(--menu-logo-size-width-lg); | ||
height: var(--menu-logo-size-height-lg); | ||
} | ||
.logoSmall { | ||
display: none; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
import { ReactElement } from 'react' | ||
import LogoAsset from '@images/gaia-x-logo.svg' | ||
import LogoAsset from '@images/pontusx_logo_horizontal.svg' | ||
import LogoAssetSmall from '@images/pontusx_logo.svg' | ||
import styles from './index.module.css' | ||
|
||
export default function Logo(): ReactElement { | ||
return <LogoAsset className={styles.logo} /> | ||
return ( | ||
<div className={styles.logoWrapper}> | ||
<LogoAsset className={styles.logo} /> | ||
<LogoAssetSmall className={styles.logoSmall} /> | ||
</div> | ||
) | ||
} |
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