Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 35 additions & 16 deletions routes/experiments-home/stage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from '@wordpress/element';
import { __, sprintf } from '@wordpress/i18n';
import { store as noticesStore } from '@wordpress/notices';
import { Link } from '@wordpress/ui';
import { Card, Link, Stack, Text } from '@wordpress/ui';

/**
* Internal dependencies
Expand Down Expand Up @@ -163,22 +163,41 @@ function ExperimentsPage() {
return (
<Page
title={ __( 'Gutenberg Experiments' ) }
subTitle={ createInterpolateElement(
__(
'The Gutenberg plugin adds editing, customization, and site building to WordPress, and gives early adopters access to the latest block and full site editing features before they ship in a WordPress release. <br />The experiments below are in active development, so expect rough edges and changes over time. <br />To learn more about the project and how to build with blocks, see the <a>Block Editor Handbook</a>.'
),
{
a: (
<Link
href="https://developer.wordpress.org/block-editor/"
openInNewTab
/>
),
br: <br />,
}
subTitle={ __(
'The latest block and full site editing features before they ship in a WordPress release.'
) }
>
<div className="experiments-page__form">
<Stack
className="experiments-page__container"
direction="column"
gap="md"
>
<Card.Root>
<Card.Content>
<Stack direction="column" gap="md">
<Text variant="body-lg" render={ <p /> }>
{ __(
'The Gutenberg plugin adds editing, customization, and site building to WordPress, and gives early adopters access to the latest block and full site editing features before they ship in a WordPress release.'
) }
</Text>
<Text variant="body-lg" render={ <p /> }>
{ createInterpolateElement(
__(
'The experiments below are in active development, so expect rough edges and changes over time. To learn more about the project and how to build with blocks, see the <a>Block Editor Handbook</a>.'
),
{
a: (
<Link
href="https://developer.wordpress.org/block-editor/"
openInNewTab
/>
),
}
) }
</Text>
</Stack>
</Card.Content>
</Card.Root>
<DataForm
data={ settings }
fields={ fields }
Expand All @@ -190,7 +209,7 @@ function ExperimentsPage() {
setSettings( values );
} }
/>
</div>
</Stack>
</Page>
);
}
Expand Down
4 changes: 2 additions & 2 deletions routes/experiments-home/style.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@use "@wordpress/base-styles/variables" as *;

.experiments-page__form {
.experiments-page__container {
box-sizing: border-box;
width: 100%;
padding: $grid-unit-30;
max-width: 680px;
margin: 0 auto;
margin-inline: auto;
}
Loading