({
description,
...props
}: BoostLiveModalProps)
| 24 | |
| 25 | /** The success screen after a boost starts: the rocket art and a check badge */ |
| 26 | export function BoostLiveModal({ |
| 27 | description, |
| 28 | ...props |
| 29 | }: BoostLiveModalProps): ReactElement { |
| 30 | const { onRequestClose } = props; |
| 31 | |
| 32 | return ( |
| 33 | <Modal |
| 34 | {...props} |
| 35 | isOpen |
| 36 | kind={Modal.Kind.FlexibleCenter} |
| 37 | size={Modal.Size.Small} |
| 38 | isDrawerOnMobile |
| 39 | > |
| 40 | <Modal.Body className="flex flex-col !p-0"> |
| 41 | <div className="relative"> |
| 42 | <div className="relative h-32 w-full overflow-hidden rounded-t-16 bg-gradient-to-r from-accent-cabbage-subtler to-transparent"> |
| 43 | <img |
| 44 | src={boostLiveArt} |
| 45 | alt="" |
| 46 | className="pointer-events-none absolute inset-y-0 left-0 h-full w-auto max-w-none" |
| 47 | /> |
| 48 | </div> |
| 49 | <ModalClose |
| 50 | className="hidden tablet:flex" |
| 51 | right="2" |
| 52 | top="2" |
| 53 | size={ButtonSize.Small} |
| 54 | onClick={onRequestClose} |
| 55 | variant={ButtonVariant.Tertiary} |
| 56 | /> |
| 57 | <span className="absolute -bottom-6 left-1/2 flex size-12 -translate-x-1/2 items-center justify-center rounded-full border-4 border-background-default bg-accent-blueCheese-default text-surface-invert"> |
| 58 | <VIcon size={IconSize.Medium} /> |
| 59 | </span> |
| 60 | </div> |
| 61 | <div className="flex flex-col items-center gap-2 px-5 pb-5 pt-9 text-center"> |
| 62 | <Typography type={TypographyType.Title3} bold> |
| 63 | Boost is live! |
| 64 | </Typography> |
| 65 | <Typography |
| 66 | type={TypographyType.Callout} |
| 67 | color={TypographyColor.Tertiary} |
| 68 | > |
| 69 | {description} |
| 70 | </Typography> |
| 71 | <Button |
| 72 | tag="a" |
| 73 | href={boostManagerUrl} |
| 74 | variant={ButtonVariant.Primary} |
| 75 | className="mt-3 w-full" |
| 76 | onClick={onRequestClose} |
| 77 | > |
| 78 | See your boost |
| 79 | </Button> |
| 80 | <Button |
| 81 | variant={ButtonVariant.Tertiary} |
| 82 | className="w-full" |
| 83 | tag="a" |
nothing calls this directly
no outgoing calls
no test coverage detected