File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
1010 VStack ,
1111} from '@chakra-ui/react'
1212
13+ import { ColorModeImage } from '@/components/ColorModeImage'
1314import { Image , Link } from '@/components/mdx'
1415import { 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 >
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import {
1414 useColorModeValue ,
1515 useDisclosure ,
1616} from '@chakra-ui/react'
17+ import { ColorModeImage } from '@/components/ColorModeImage'
1718import React from 'react'
1819
1920export 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 >
Original file line number Diff line number Diff 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'
1517import fs from 'fs'
1618import matter from 'gray-matter'
1719import 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 >
You can’t perform that action at this time.
0 commit comments