mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 04:40:37 +03:00
Split up design/style pages
This commit is contained in:
parent
6ad88b2e28
commit
f1e3adbec5
4 changed files with 63 additions and 61 deletions
|
@ -1,16 +1,15 @@
|
|||
import React from 'react';
|
||||
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
||||
import BrowserNotifyModal from '../components/modals/BrowserNotifyModal';
|
||||
import AuthModal from '../components/modals/AuthModal';
|
||||
|
||||
const Example = () => (
|
||||
<div>
|
||||
<AuthModal />
|
||||
<BrowserNotifyModal />
|
||||
</div>
|
||||
);
|
||||
|
||||
export default {
|
||||
title: 'owncast/Modals/Browser Push Notifications',
|
||||
title: 'owncast/Modals/Browser Notifications',
|
||||
component: BrowserNotifyModal,
|
||||
parameters: {},
|
||||
} as ComponentMeta<typeof BrowserNotifyModal>;
|
||||
|
|
|
@ -1,51 +1,10 @@
|
|||
import { Canvas, Meta, Story } from '@storybook/addon-docs';
|
||||
import { Color, ColorRow } from './Color';
|
||||
import { Image, ImageRow } from './ImageAsset';
|
||||
|
||||
import Logo from '../assets/images/logo.svg';
|
||||
import FediverseColor from '../assets/images/fediverse-color.png';
|
||||
import FediverseBlack from '../assets/images/fediverse-black.png';
|
||||
import Moderator from '../assets/images/moderator.svg';
|
||||
import IndieAuth from '../assets/images/indieauth.png';
|
||||
import IsBot from '../assets/images/bot.svg';
|
||||
|
||||
<Meta title="owncast/Style Guide" />
|
||||
|
||||
<style>{`
|
||||
|
||||
|
||||
`}</style>
|
||||
|
||||
export const images = [
|
||||
{
|
||||
src: Logo,
|
||||
name: 'Logo',
|
||||
},
|
||||
{
|
||||
src: FediverseColor,
|
||||
name: 'Fediverse Color',
|
||||
},
|
||||
{
|
||||
src: FediverseBlack,
|
||||
name: 'Fediverse Black',
|
||||
},
|
||||
{
|
||||
src: Moderator,
|
||||
name: 'Moderator',
|
||||
},
|
||||
{
|
||||
src: IndieAuth,
|
||||
name: 'IndieAuth',
|
||||
},
|
||||
{
|
||||
src: IsBot,
|
||||
name: 'Bot Flag',
|
||||
},
|
||||
];
|
||||
<Meta title="owncast/Style Guide/Colors" />
|
||||
|
||||
# Colors
|
||||
|
||||
<Story name="Colors"></Story>
|
||||
|
||||
<ColorRow colors={['theme-primary-color', 'theme-text-color-secondary']} />
|
||||
|
||||
|
@ -110,19 +69,3 @@ export const images = [
|
|||
'color-owncast-orange-900',
|
||||
]}
|
||||
/>
|
||||
|
||||
# Font
|
||||
|
||||
[Inter font](https://rsms.me/inter/)
|
||||
|
||||
<Story name="Fonts">
|
||||
<Canvas style={{ color: 'var(--theme-text-color-secondary)' }}>
|
||||
{getComputedStyle(document.documentElement).getPropertyValue('--theme-font-family')}
|
||||
</Canvas>
|
||||
</Story>
|
||||
|
||||
# Images
|
||||
|
||||
<Story name="Images and Icons"></Story>
|
||||
|
||||
<ImageRow images={images} />
|
49
web/stories/Images.stories.mdx
Normal file
49
web/stories/Images.stories.mdx
Normal file
|
@ -0,0 +1,49 @@
|
|||
import { Canvas, Meta, Story } from '@storybook/addon-docs';
|
||||
import { Image, ImageRow } from './ImageAsset';
|
||||
|
||||
import Logo from '../assets/images/logo.svg';
|
||||
import FediverseColor from '../assets/images/fediverse-color.png';
|
||||
import FediverseBlack from '../assets/images/fediverse-black.png';
|
||||
import Moderator from '../assets/images/moderator.svg';
|
||||
import IndieAuth from '../assets/images/indieauth.png';
|
||||
import IsBot from '../assets/images/bot.svg';
|
||||
|
||||
<Meta title="owncast/Style Guide/Images+Icons" />
|
||||
|
||||
export const images = [
|
||||
{
|
||||
src: Logo,
|
||||
name: 'Logo',
|
||||
},
|
||||
];
|
||||
|
||||
# Images
|
||||
|
||||
<ImageRow images={images} />
|
||||
|
||||
## App Icons
|
||||
|
||||
export const icons = [
|
||||
{
|
||||
src: FediverseColor,
|
||||
name: 'Fediverse Color',
|
||||
},
|
||||
{
|
||||
src: FediverseBlack,
|
||||
name: 'Fediverse Black',
|
||||
},
|
||||
{
|
||||
src: Moderator,
|
||||
name: 'Moderator',
|
||||
},
|
||||
{
|
||||
src: IndieAuth,
|
||||
name: 'IndieAuth',
|
||||
},
|
||||
{
|
||||
src: IsBot,
|
||||
name: 'Bot Flag',
|
||||
},
|
||||
];
|
||||
|
||||
<ImageRow images={icons} />
|
11
web/stories/Typography.stories.mdx
Normal file
11
web/stories/Typography.stories.mdx
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { Canvas, Meta, Story } from '@storybook/addon-docs';
|
||||
|
||||
<Meta title="owncast/Style Guide/Typography" />
|
||||
|
||||
# Font
|
||||
|
||||
[Inter font](https://rsms.me/inter/)
|
||||
|
||||
<Canvas style={{ color: 'var(--theme-text-color-secondary)' }}>
|
||||
{getComputedStyle(document.documentElement).getPropertyValue('--theme-font-family')}
|
||||
</Canvas>
|
Loading…
Reference in a new issue