Merge pull request #225 from reuters-graphics/mf-graphics-logo
Updates Graphics logo
This commit is contained in:
commit
7aad2f9642
3 changed files with 29 additions and 31 deletions
21
src/components/ReutersGraphicsLogo/ReutersGraphicsLogo.mdx
Normal file
21
src/components/ReutersGraphicsLogo/ReutersGraphicsLogo.mdx
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import { Meta, Canvas } from '@storybook/blocks';
|
||||
|
||||
import * as ReutersGraphicsLogoStories from './ReutersGraphicsLogo.stories.svelte';
|
||||
|
||||
<Meta of={ReutersGraphicsLogoStories} />
|
||||
|
||||
# ReutersGraphicsLogo
|
||||
|
||||
The `ReutersGraphicsLogo` component contains the Reuters Graphics team logo.
|
||||
|
||||
> Generally, used only for internal tools. For public pages, use the [ReutersLogo](./?path=/docs/components-logos-reuterslogo--docs) component.
|
||||
|
||||
```svelte
|
||||
<script>
|
||||
import { ReutersGraphicsLogo } from '@reuters-graphics/graphics-components';
|
||||
</script>
|
||||
|
||||
<ReutersGraphicsLogo />
|
||||
```
|
||||
|
||||
<Canvas of={ReutersGraphicsLogoStories.Demo} />
|
||||
|
|
@ -1,26 +1,14 @@
|
|||
<script module lang="ts">
|
||||
// @ts-ignore raw
|
||||
import componentDocs from './stories/docs/component.md?raw';
|
||||
|
||||
import { defineMeta } from '@storybook/addon-svelte-csf';
|
||||
import ReutersGraphicsLogo from './ReutersGraphicsLogo.svelte';
|
||||
|
||||
import { withComponentDocs } from '$lib/docs/utils/withParams.js';
|
||||
|
||||
export const meta = {
|
||||
const { Story } = defineMeta({
|
||||
title: 'Components/Logos/ReutersGraphicsLogo',
|
||||
component: ReutersGraphicsLogo,
|
||||
...withComponentDocs(componentDocs),
|
||||
};
|
||||
argTypes: {
|
||||
logoColour: { control: 'color' },
|
||||
textColour: { control: 'color' },
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
import { Template, Story } from '@storybook/addon-svelte-csf';
|
||||
</script>
|
||||
|
||||
<Template >
|
||||
{#snippet children({ args })}
|
||||
<ReutersGraphicsLogo {...args} />
|
||||
{/snippet}
|
||||
</Template>
|
||||
|
||||
<Story name="Default" args="{{}}" />
|
||||
<Story name="Demo" />
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
Reuters Graphics team logo.
|
||||
|
||||
> Generally, only used for internal tools. For public pages, use the [ReutersLogo](./?path=/docs/components-logos-reuterslogo--docs) component.
|
||||
|
||||
```svelte
|
||||
<script>
|
||||
import { ReutersGraphicsLogo } from '@reuters-graphics/graphics-components';
|
||||
</script>
|
||||
|
||||
<ReutersGraphicsLogo />
|
||||
```
|
||||
Loading…
Reference in a new issue