Skip to content

Commit b6b52d8

Browse files
Adding diapositive versions of Parcels logos for dark mode
1 parent 7d5375e commit b6b52d8

5 files changed

Lines changed: 148 additions & 6 deletions

File tree

Lines changed: 90 additions & 0 deletions
Loading
Lines changed: 45 additions & 0 deletions
Loading

src/components/footer.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
VStack,
1111
} from '@chakra-ui/react'
1212

13+
import { ColorModeImage } from '@/components/ColorModeImage'
1314
import { Image, Link } from '@/components/mdx'
1415
import { footerItems } from '@/data/footer-items'
1516

@@ -59,9 +60,10 @@ export const Footer = () => {
5960
>
6061
<Stack spacing={6}>
6162
<Box>
62-
<Image
63+
<ColorModeImage
6364
w={32}
64-
src={'/parcels-assets/logo-horo.svg'} //TODO: Update to svg in roughly 1h*3w (internal) and 1h*2w external (as was before)
65+
lightSrc={'/parcels-assets/logo-horo.svg'} //TODO: Update to svg in roughly 1h*3w (internal) and 1h*2w external (as was before)
66+
darkSrc={'/parcels-assets/logo-horo_dia.svg'} //TODO: Update to svg in roughly 1h*3w (internal) and 1h*2w external (as was before)
6567
alt={'parcels logo'}
6668
/>
6769
</Box>

src/components/header.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
useColorModeValue,
1515
useDisclosure,
1616
} from '@chakra-ui/react'
17+
import { ColorModeImage } from '@/components/ColorModeImage'
1718
import React from 'react'
1819

1920
export const Header = () => {
@@ -74,9 +75,10 @@ export const Header = () => {
7475
alignItems={'center'}
7576
spacing={{ base: 2, sm: 4 }}
7677
>
77-
<Image
78+
<ColorModeImage
7879
w={48}
79-
src={'/parcels-assets/logo-horo.svg'} //TODO: Update to svg in roughly 1h*3w (internal) and 1h*2w external (as was before)
80+
lightSrc={'/parcels-assets/logo-horo.svg'} //TODO: Update to svg in roughly 1h*3w (internal) and 1h*2w external (as was before)
81+
darkSrc={'/parcels-assets/logo-horo_dia.svg'} //TODO: Update to svg in roughly 1h*3w (internal) and 1h*2w external (as was before)
8082
alt={'parcels logo'}
8183
/>
8284
</Stack>

src/pages/cards/[id].js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ import {
66
AvatarGroup,
77
Box,
88
Container,
9+
Image,
910
Flex,
1011
Heading,
1112
Icon,
1213
Text,
1314
VStack,
1415
} from '@chakra-ui/react'
16+
import { ColorModeImage } from '@/components/ColorModeImage'
1517
import fs from 'fs'
1618
import matter from 'gray-matter'
1719
import path from 'path'
@@ -28,11 +30,12 @@ const Card = ({ frontmatter, id }) => {
2830
<Text fontSize='xl' color='gray.700' fontWeight='medium'>
2931
Parcels / blog
3032
</Text>
31-
<Image
33+
<ColorModeImage
3234
w='150px'
3335
h='auto'
3436
objectFit='contain'
35-
src='/parcels-assets/logo-no-text.svg'
37+
lightSrc='/parcels-assets/logo-no-text.svg'
38+
darkSrc='/parcels-assets/logo-no-text-dia.svg'
3639
alt='Parcels logo'
3740
/>
3841
</Flex>

0 commit comments

Comments
 (0)