omnivore/packages/web/components/elements/LogoBox.tsx

45 lines
1.1 KiB
TypeScript
Raw Normal View History

import { LIBRARY_LEFT_MENU_WIDTH } from '../templates/navMenu/LibraryMenu'
import { theme } from '../tokens/stitches.config'
2023-03-02 05:32:23 +00:00
import { OmnivoreFullLogo } from './images/OmnivoreFullLogo'
import { OmnivoreNameLogo } from './images/OmnivoreNameLogo'
import { SpanBox } from './LayoutPrimitives'
export function LogoBox(): JSX.Element {
return (
<>
<SpanBox
css={{
pl: '25px',
height: '24px',
pointerEvents: 'all',
2023-03-02 05:32:23 +00:00
width: LIBRARY_LEFT_MENU_WIDTH,
minWidth: LIBRARY_LEFT_MENU_WIDTH,
'@mdDown': {
display: 'none',
},
}}
>
<OmnivoreFullLogo
showTitle={true}
color={theme.colors.thHighContrast.toString()}
/>
2023-03-02 05:32:23 +00:00
</SpanBox>
<SpanBox
css={{
2023-03-03 13:55:04 +00:00
ml: '15px',
mr: '15px',
2023-07-01 04:08:43 +00:00
display: 'none',
2023-06-09 09:39:18 +00:00
lineHeight: '1',
2023-07-01 04:08:43 +00:00
'@mdDown': {
display: 'flex',
},
2023-03-02 05:32:23 +00:00
}}
>
<OmnivoreNameLogo color={theme.colors.thHighContrast.toString()} />
2023-03-02 05:32:23 +00:00
</SpanBox>
</>
)
}