UNPKG

@wordpress/editor

Version:
92 lines (87 loc) 2.63 kB
/** * External dependencies */ import { View, Text } from 'react-native'; /** * WordPress dependencies */ import { __ } from '@wordpress/i18n'; import { usePreferredColorSchemeStyle } from '@wordpress/compose'; /** * Internal dependencies */ import styles from './style.scss'; import { HelpDetailBodyText, HelpDetailSectionHeadingText, HelpDetailImage, } from './view-sections'; const IntroToBlocks = () => { const titleStyle = usePreferredColorSchemeStyle( styles.helpDetailTitle, styles.helpDetailTitleDark ); return ( <> <HelpDetailImage source={ require( './images/block-layout-collage.png' ) } /> <View style={ styles.helpDetailContainer }> <Text accessibilityRole="header" selectable style={ titleStyle } > { __( 'Welcome to the world of blocks' ) } </Text> <HelpDetailBodyText text={ __( 'Blocks are pieces of content that you can insert, rearrange, and style without needing to know how to code. Blocks are an easy and modern way for you to create beautiful layouts.' ) } /> <HelpDetailSectionHeadingText text={ __( 'Rich text editing' ) } /> <HelpDetailBodyText text={ __( 'Blocks allow you to focus on writing your content, knowing that all the formatting tools you need are there to help you get your message across.' ) } /> <HelpDetailImage accessible accessibilityLabel={ __( 'Text formatting controls are located within the toolbar positioned above the keyboard while editing a text block' ) } source={ require( './images/rich-text-light.png' ) } sourceDarkMode={ require( './images/rich-text-dark.png' ) } /> <HelpDetailSectionHeadingText text={ __( 'Embed media' ) } /> <HelpDetailBodyText text={ __( 'Make your content stand out by adding images, gifs, videos, and embedded media to your pages.' ) } /> <HelpDetailImage source={ require( './images/embed-media-light.png' ) } sourceDarkMode={ require( './images/embed-media-dark.png' ) } /> <HelpDetailSectionHeadingText text={ __( 'Build layouts' ) } /> <HelpDetailBodyText text={ __( 'Arrange your content into columns, add Call to action buttons, and overlay images with text.' ) } /> <HelpDetailImage source={ require( './images/build-layouts-light.png' ) } sourceDarkMode={ require( './images/build-layouts-dark.png' ) } /> <HelpDetailBodyText text={ __( 'Give it a try by adding a few blocks to your post or page!' ) } /> </View> </> ); }; export default IntroToBlocks;