Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

Commit

Permalink
Update more links and add colour to banner and visual editor button
Browse files Browse the repository at this point in the history
  • Loading branch information
laurakalbag committed Oct 31, 2023
1 parent ac1c889 commit 33f50b5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
22 changes: 22 additions & 0 deletions src/CanvasView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
MenuList,
Portal,
Spinner,
Text,
VStack,
} from '@chakra-ui/react';
import { useSelector } from '@xstate/react';
Expand Down Expand Up @@ -93,6 +94,27 @@ export const CanvasView: React.FC = () => {
{!embed?.isEmbedded && (
<Box data-testid="canvas-header" bg="gray.800" zIndex={1} padding="0">
<CanvasHeader />
<Box
bg="blue.600"
px="1"
py="2"
color="white"
textAlign="center"
fontWeight="600"
>
<Text>
✨ Our{' '}
<Link
href="https://stately.ai?source=viz-banner"
target="_blank"
color="blue.50"
textDecoration="underline"
>
new Stately visual editor
</Link>{' '}
is out now! ✨
</Text>
</Box>
</Box>
)}
<CanvasContainer panModeEnabled={panModeEnabled}>
Expand Down
9 changes: 5 additions & 4 deletions src/WelcomeArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const WelcomeArea = () => {
<Link
color="blue.300"
fontSize="sm"
href="https://xstate.js.org/docs"
href="https://stately.ai/docs/xstate"
target="_blank"
rel="noreferrer"
>
Expand All @@ -118,7 +118,7 @@ export const WelcomeArea = () => {
<Link
color="blue.300"
fontSize="sm"
href="https://xstate.js.org/docs"
href="https://stately.ai/docs/xstate"
target="_blank"
rel="noreferrer"
>
Expand All @@ -145,8 +145,8 @@ export const WelcomeArea = () => {
>
use our Stately visual editor
</Link>{' '}
to build state machines visually, export to XState V5, and
much much more.
to build state machines visually, generate machines from text
descriptions, export to XState V5, and much much more.
</Description>
</Stack>
<Stack spacing="3">
Expand All @@ -156,6 +156,7 @@ export const WelcomeArea = () => {
href="https://stately.ai?source=viz"
rel="noreferrer"
target="_blank"
bg="orange.600"
>
<HStack spacing="4">
<MagicIcon color="gray.200" h="6" w="6" />
Expand Down

0 comments on commit 33f50b5

Please sign in to comment.