migrates reuters graphics logo

This commit is contained in:
MinamiFunakoshiTR 2025-03-10 11:46:48 -07:00
parent 8402b1fdbe
commit dc06946fe1
Failed to extract signature
4 changed files with 30 additions and 35 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,10 @@
<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),
};
});
</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,8 +1,5 @@
<!-- @component `ReutersGraphicsLogo` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-logos-reutersgraphicslogo--docs) -->
<script lang="ts">
interface Props {
/** "Kinesis" colour */
logoColour?: string;
@ -12,7 +9,11 @@
width?: string;
}
let { logoColour = '#D64000', textColour = '#212223', width = '100%' }: Props = $props();
let {
logoColour = '#D64000',
textColour = '#212223',
width = '100%',
}: Props = $props();
</script>
<svg

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