Merge pull request #225 from reuters-graphics/mf-graphics-logo

Updates Graphics logo
This commit is contained in:
MinamiFunakoshiTR 2025-03-12 10:38:58 -05:00 committed by GitHub
commit 7aad2f9642
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 29 additions and 31 deletions

View 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} />

View file

@ -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" />

View file

@ -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 />
```