Skip to content

Commit

Permalink
chore: placeholder media
Browse files Browse the repository at this point in the history
  • Loading branch information
snorrees committed Oct 20, 2024
1 parent 06842e5 commit f85deb8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {Translate, useTranslation} from '../../i18n'
import {createLocaleNamespace} from '../i18n'
import {type CreateLinkedDocumentBannerProps} from '../types'
import {CreateLearnMoreButton} from './CreateLearnMoreButton'
import {CreateInfoSvg} from './media/CreateInfoSvg'

export function CreateLinkedDocumentBanner(props: CreateLinkedDocumentBannerProps) {
const {metadata} = props
Expand All @@ -27,7 +28,7 @@ export function CreateLinkedDocumentBanner(props: CreateLinkedDocumentBannerProp

const popoverContent = (
<Stack space={0} ref={popoverRef}>
<Card border tone="primary" flex={1} style={{height: 150}} radius={3} />
<CreateInfoSvg />
<Stack space={4} padding={4}>
<Flex gap={2} align="center">
<Text size={1} weight="semibold">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import {Card} from '@sanity/ui'

/* @todo replace with real art */
export function CreateInfoSvg() {
return <Card border tone="primary" flex={1} style={{height: 150}} radius={3} />
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {Card} from '@sanity/ui'

/* @todo replace with real art */
export function StartInCreateSvg() {
return <Card flex={1} style={{height: 200}} border />
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import {useDocumentOperation} from '../../hooks'
import {useTranslation} from '../../i18n'
import {useWorkspace} from '../../studio'
import {CreateLearnMoreButton} from '../components/CreateLearnMoreButton'
import {StartInCreateSvg} from '../components/media/StartInCreateSvg'
import {createLocaleNamespace} from '../i18n'
import {type CreateLinkMetadata} from '../types'
import {getCreateLinkUrl} from '../useCreateDocumentUrl'
import {useGlobalUserId} from '../useGlobalUserId'
import {StartInCreateSvg} from './StartInCreateSvg'

export const CREATE_LINK_TARGET = 'create'

Expand Down

0 comments on commit f85deb8

Please sign in to comment.