-
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
1 parent
8f8eacd
commit b6fa783
Showing
14 changed files
with
217 additions
and
114 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
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
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,8 +1,8 @@ | ||
import { Store, defaultStore } from '@component-controls/core'; | ||
import { Store, getDefaultStore } from '@component-controls/core'; | ||
import { BroadcastStore } from './serialization/BroadcastStore'; | ||
|
||
/** | ||
* store variable, automatically filled with stories. | ||
*/ | ||
export const store: Store = new BroadcastStore(defaultStore); | ||
export const store: Store = new BroadcastStore(getDefaultStore()); | ||
(store as BroadcastStore).readData(); |
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
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,52 @@ | ||
--- | ||
title: Homes | ||
author: atanasster | ||
--- | ||
|
||
import { jsx, Flex, Grid, Box, Heading, Text, Button, Card, Divider, Image } from 'theme-ui'; | ||
import { Link } from '@component-controls/components'; | ||
|
||
export const BoxItem = ({ children, title, action, ...rest }) => ( | ||
<Card sx={{ overflow: 'hidden', py: 4, height: '360px', justifyContent: 'space-between', bg: 'gray', ...rest }}> | ||
<Box> | ||
<Heading sx={{ textAlign: 'center' }} as="h2">{title}</Heading> | ||
<p>{children}</p> | ||
</Box> | ||
{action} | ||
</Card> | ||
); | ||
|
||
<Flex sx={{ py: 4, flexDirection: 'column', minHeight: '350px', alignItems: 'center', justifyContent: 'space-between', bg: 'primary', color: 'background' }}> | ||
<Flex sx={{ flexDirection: 'column', alignItems: 'center', maxWidth: '600px' }}> | ||
<Heading as="h1">component-controls</Heading> | ||
<Heading sx={{ py: 3, textAlign: 'center', px: 1 }} as="h3"> | ||
Start documenting your components with <Link sx={{ color: 'background' }} aria-label="create mdx stories" href="/tutorial/mdx-stories">MDX</Link> and <Link sx={{ color: 'background' }} aria-label="create esm stories" href="/tutorial/esmodules-stories">ESM</Link>. | ||
</Heading> | ||
<Text sx={{ py: 1, textAlign: 'center' }}> | ||
From <Link sx={{ color: 'background' }} aria-label="create documents" href="/tutorial/reference/document">documentation</Link> and <Link sx={{ color: 'background' }} aria-label="create stories" href="/tutorial/reference/story">stories</Link> for your react components, all the way to a full-featured CMS with blogs, tutorials, tags, authors and full-text search: component-controls compbines the best of breed from all pre-existing tools in the industry into a flexible platform. | ||
</Text> | ||
</Flex> | ||
<Button aria-label="visit tutorial" as={Link} href='/tutorial/'>Start learning</Button> | ||
</Flex> | ||
|
||
|
||
<Divider sx={{ my: 4 }}/> | ||
<Flex sx={{ flexDirection: 'column', alignItems: 'center'}}> | ||
<Heading as="h1" sx={{ px: 1, textAlign: 'center' }}>Choose your favorite site generator</Heading> | ||
<Grid | ||
sx={{ | ||
m: 4, | ||
gridTemplateColumns: ['1fr', '1fr', '33.3% 33.3% 33.3%'], | ||
}} | ||
> | ||
<BoxItem title="Start with gatsby" action={<Button aria-label="start with gatsby" as={Link} href='/tutorial/getting-started/gatsby'>get started...</Button>}> | ||
Go beyond static sites: build blogs, e-commerce sites, full-blown apps, and more with Gatsby. | ||
</BoxItem> | ||
<BoxItem title="Start with next.js" action={<Button aria-label="start with nextjs" as={Link} href='/tutorial/getting-started/nextjs'>get started...</Button>}> | ||
Production grade react applications: build static and dynamic websites and web applications that scale. | ||
</BoxItem> | ||
<BoxItem title="Start with storybook" action={<Button aria-label="start with storybook" as={Link} href='/tutorial/getting-started/storybook'>get started...</Button>}> | ||
User interface development environment and playground: create components independently and showcase components interactively in an isolated development environment. | ||
</BoxItem> | ||
</Grid> | ||
</Flex> |
Oops, something went wrong.