import type { ReactNode } from 'react'; import { Box, chakra, Image } from '@chakra-ui/react'; import type { ContentImage } from '@/content/types'; // The media query from where the aside shows (theme breakpoint lg) export const ASIDE_MEDIA = '(min-width: 64em)'; // A transparent 1×1 GIF: what phones get instead of the photo const NO_PHOTO = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'; type ContactAsideProps = { image: ContentImage; // The contact card, laid over the bottom of the photo children: ReactNode; }; // The right column of the contact page on wide screens: the photo with the // contact card overlapping its bottom edge (mockup 1a, BR-CP-06..09). // Hidden below lg; there the picture's source does not apply, so phones // never download the photo. On wide screens it is the largest paint, so it // loads straight away with high priority. export default function ContactAside({ image, children }: ContactAsideProps) { return ( {image.alt} {children} ); }