-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
diDroid
committed
Nov 7, 2023
1 parent
7c1b21b
commit 84b4737
Showing
8 changed files
with
151 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Icon } from '@wordpress/icons'; | ||
import { Button } from '@wordpress/components'; | ||
|
||
const ActionButton = ( { icon, title } ) => { | ||
return ( | ||
<Button | ||
className="navigation-buttons navigation-buttons_back" | ||
variant="secondary" | ||
> | ||
<Icon icon={ icon } /> | ||
{ title } | ||
</Button> | ||
); | ||
}; | ||
|
||
export default ActionButton; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { memo } from '@wordpress/element'; | ||
import { Button } from '@wordpress/components'; | ||
import { Icon, chevronLeft, chevronRight, reusableBlock, settings } from '@wordpress/icons'; | ||
import { __ } from '@wordpress/i18n'; | ||
import ActionButton from './ActionButton'; | ||
|
||
const Header = () => { | ||
return ( | ||
<div className="nfd-sitegen-header"> | ||
<div className="nfd-sitegen-header__step-navigation"> | ||
<Button | ||
className="navigation-buttons navigation-buttons_back" | ||
variant="secondary" | ||
> | ||
<Icon icon={ chevronLeft } /> | ||
{ __( 'Back', 'wp-module-onboarding' ) } | ||
</Button> | ||
<Button | ||
className="navigation-buttons navigation-buttons_back" | ||
variant="secondary" | ||
> | ||
<Icon icon={ reusableBlock } /> | ||
{ __( 'Regenerate', 'wp-module-onboarding' ) } | ||
</Button> | ||
<Button | ||
className="navigation-buttons navigation-buttons_back" | ||
variant="secondary" | ||
> | ||
<Icon icon={ settings } /> | ||
{ __( 'Customize', 'wp-module-onboarding' ) } | ||
</Button> | ||
<Button | ||
className="navigation-buttons navigation-buttons_back" | ||
variant="secondary" | ||
> | ||
<Icon icon={ chevronRight } /> | ||
{ __( 'Save & Continue', 'wp-module-onboarding' ) } | ||
</Button> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default memo( Header ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
import { memo } from '@wordpress/element'; | ||
import { Button } from '@wordpress/components'; | ||
import { Icon, chevronLeft } from '@wordpress/icons'; | ||
import { chevronLeft, chevronRight, reusableBlock, settings,lock } from '@wordpress/icons'; | ||
import { __ } from '@wordpress/i18n'; | ||
import ActionButton from './ActionButton'; | ||
|
||
const Header = () => { | ||
return ( | ||
<div className="nfd-sitegen-header"> | ||
<div className="nfd-sitegen-header__step-navigation"> | ||
<Button | ||
className="navigation-buttons navigation-buttons_back" | ||
variant="secondary" | ||
> | ||
<Icon icon={ chevronLeft } /> | ||
{ __( 'Back', 'wp-module-onboarding' ) } | ||
</Button> | ||
<div className="navigation-section-left"> | ||
<ActionButton icon = { chevronLeft } title = 'Back' /> | ||
<ActionButton icon = { reusableBlock } title = 'Regenerate' /> | ||
</div> | ||
<div className="navigation-section-center"> | ||
<ActionButton icon = { lock } title = 'Back' /> | ||
</div> | ||
<div className="navigation-section-right"> | ||
<ActionButton icon = { settings } title = 'Customize' /> | ||
<ActionButton icon = { chevronRight } title = 'Save & Continue' /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default memo( Header ); | ||
export default memo( Header ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { home } from '@wordpress/icons'; | ||
import { lazy } from '@wordpress/element'; | ||
import { __ } from '@wordpress/i18n'; | ||
import { Step } from '../../../OnboardingSPA/data/models/Step'; | ||
import { VIEW_NAV_GET_STARTED } from '../../../constants'; | ||
|
||
const DesignStudioPreview = lazy( () => import( './index' ) ); | ||
|
||
export const stepDesignStudioPreview = new Step( { | ||
path: '/wp-setup/step/get-started/site-gen', | ||
title: __( 'WordPress Site Gen', 'wp-module-onboarding' ), | ||
Component: DesignStudioPreview, | ||
icon: home, | ||
drawerView: VIEW_NAV_GET_STARTED, | ||
sidebars: {}, | ||
} ); |