Skip to content

Commit 22af55e

Browse files
Change welcome dialog animation to step-by-step
1 parent 4a713e8 commit 22af55e

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

src/components/WelcomeDialog.tsx

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { FormattedMessage } from "react-intl";
2020
import { ConnectionStatus } from "../connect-status-hooks";
2121
import { useConnectionStage } from "../connection-stage-hooks";
2222
import { ButtonWithLoading } from "./ButtonWithLoading";
23-
import preConnectVideo from "../images/createai-animation.mp4";
23+
import preConnectVideo from "../images/pre-connect-video.mp4";
2424
import { useStore } from "../store";
2525

2626
interface WelcomeDialogProps
@@ -127,10 +127,19 @@ const WelcomeDialog = ({
127127
<ModalHeader>
128128
<Text>Welcome to micro:bit CreateAI</Text>
129129
</ModalHeader>
130-
<ModalBody px={20} py={3}>
130+
<ModalBody pb={5}>
131131
<ModalCloseButton />
132-
<AspectRatio ratio={1.78}>
133-
<Box as="video" autoPlay loop src={preConnectVideo} />
132+
<AspectRatio ratio={3.89}>
133+
<Box
134+
as="video"
135+
autoPlay
136+
loop
137+
muted
138+
// Crop out thin visible outline in video.
139+
clipPath="polygon(1% 1%, 99% 1%, 99% 99%, 0 99%)"
140+
src={preConnectVideo}
141+
// TODO: Alt text for video.
142+
/>
134143
</AspectRatio>
135144
</ModalBody>
136145
<ModalFooter justifyContent="flex-end">

src/images/pre-connect-video.mp4

22.6 MB
Binary file not shown.

0 commit comments

Comments
 (0)