generated from wrappid/wrappid-module
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
just hardcoded to build a static ui for pagebuilder Ref: #54
- Loading branch information
Showing
6 changed files
with
223 additions
and
100 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
83 changes: 83 additions & 0 deletions
83
app/components/page-builder/header-components/HeaderComp.js
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,83 @@ | ||
import { | ||
CoreBox, CoreButton, CoreClasses, CoreIcon, CoreIconButton, CoreInput, CoreTooltip, CoreTypographyBody2 | ||
} from "@wrappid/core"; | ||
|
||
export default function HeaderComp() { | ||
return ( | ||
<CoreBox styleClasses={[ | ||
CoreClasses.PADDING.P2, | ||
CoreClasses.DISPLAY.FLEX, | ||
CoreClasses.ALIGNMENT.ALIGN_ITEMS_CENTER, | ||
CoreClasses.ALIGNMENT.JUSTIFY_CONTENT_SPACE_BETWEEN, | ||
CoreClasses.BG.BG_GREY_100 | ||
]}> | ||
<CoreBox styleClasses={[CoreClasses.DISPLAY.FLEX, CoreClasses.ALIGNMENT.ALIGN_ITEMS_CENTER, CoreClasses.ALIGNMENT.JUSTIFY_CONTENT_CENTER, CoreClasses.GAP.GAP_2]}> | ||
<CoreButton | ||
variant="text" | ||
styleClasses={[CoreClasses.GAP.GAP_1, CoreClasses.COLOR.TEXT_BLACK_50]}> | ||
<CoreTypographyBody2 styleClasses={[CoreClasses.MARGIN.M0, CoreClasses.COLOR.TEXT_BLACK_50]}>Example Module</CoreTypographyBody2> | ||
</CoreButton> | ||
|
||
<CoreInput | ||
id="outlined-basic" | ||
placeholder="Page Name" | ||
styleClasses={[CoreClasses.MARGIN.M0]} | ||
/> | ||
</CoreBox> | ||
|
||
<CoreBox styleClasses={[CoreClasses.DISPLAY.FLEX, CoreClasses.ALIGNMENT.JUSTIFY_CONTENT_CENTER, CoreClasses.ALIGNMENT.ALIGN_ITEMS_CENTER, CoreClasses.GAP.GAP_3]}> | ||
<CoreTooltip title= "Layout Selector" arrow> | ||
<CoreIconButton> | ||
<CoreIcon icon="view_module"/> | ||
</CoreIconButton> | ||
</CoreTooltip> | ||
|
||
<CoreTooltip title= "Component Selector" arrow> | ||
<CoreIconButton> | ||
<CoreIcon icon="widgets"/> | ||
</CoreIconButton> | ||
</CoreTooltip> | ||
|
||
<CoreTooltip title= "Props Selector" arrow> | ||
<CoreIconButton> | ||
<CoreIcon icon="tune"/> | ||
</CoreIconButton> | ||
</CoreTooltip> | ||
|
||
<CoreTooltip title= "Theme Selector" arrow> | ||
<CoreIconButton> | ||
<CoreIcon icon="palette"/> | ||
</CoreIconButton> | ||
</CoreTooltip> | ||
|
||
<CoreTooltip title= "Event Selector" arrow> | ||
<CoreIconButton> | ||
<CoreIcon icon="event"/> | ||
</CoreIconButton> | ||
</CoreTooltip> | ||
|
||
<CoreTooltip title= "Device Selector" arrow> | ||
<CoreIconButton> | ||
<CoreIcon icon="devices"/> | ||
</CoreIconButton> | ||
</CoreTooltip> | ||
</CoreBox> | ||
|
||
<CoreBox styleClasses={[ | ||
CoreClasses.DISPLAY.FLEX, | ||
CoreClasses.ALIGNMENT.JUSTIFY_CONTENT_CENTER, | ||
CoreClasses.ALIGNMENT.ALIGN_ITEMS_CENTER, | ||
CoreClasses.GAP.GAP_2, | ||
CoreClasses.COLOR.TEXT_BLACK_50 | ||
]}> | ||
<CoreButton label="Preview" variant="text" color="inherit"/> | ||
|
||
<CoreButton label="History" variant="text" color="inherit"/> | ||
|
||
<CoreButton label="Request for Review" variant="text" color="inherit"/> | ||
|
||
<CoreButton label="Save" /> | ||
</CoreBox> | ||
</CoreBox> | ||
); | ||
} |
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
Oops, something went wrong.