You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.4 KiB

import React, { useState } from 'react'
import {
Box,
RichTextEditor,
Icon,
Button,
Input,
Drawer,
Header,
DrawerContent,
Label,
DropZone,
} from '..'
export default { title: 'DesignSystem/Templates/Blog' }
export const Default: React.FC = () => {
const [isDrawerVisible, setIsDrawerVisible] = useState(false)
return (
<Box variant="grey" width={1}>
{isDrawerVisible && (
<Drawer>
<DrawerContent>
<Header.H3>
<Button size="icon" rounded mr="lg" onClick={() => setIsDrawerVisible(false)}>
<Icon icon="ChevronRight" />
</Button>
Article settings
</Header.H3>
<Label>Drop splash screen</Label>
<DropZone />
</DrawerContent>
</Drawer>
)}
<Box variant="white">
<Box flex flexDirection="row-reverse" mb="xl">
<Button size="icon" onClick={() => setIsDrawerVisible(true)}>
<Icon icon="Settings" />
</Button>
<Button mr="default" variant="primary">
<Icon icon="Launch" />
Publish
</Button>
<Button mr="default">
<Icon icon="Save" />
Save
</Button>
</Box>
<Box mb="xxl">
<Input variant="xxl" borderless width={1} placeholder="My amazing new article" />
</Box>
<RichTextEditor />
</Box>
</Box>
)
}