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

Updates Reuters logo
This commit is contained in:
MinamiFunakoshiTR 2025-03-12 10:40:34 -05:00 committed by GitHub
commit e365eb1d13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 38 additions and 44 deletions

View file

@ -0,0 +1,19 @@
import { Meta, Canvas } from '@storybook/blocks';
import * as ReutersLogoStories from './ReutersLogo.stories.svelte';
<Meta of={ReutersLogoStories} />
# ReutersLogo
The `ReutersLogo` component contains the official Reuters logo.
```svelte
<script>
import { ReutersLogo } from '@reuters-graphics/graphics-components';
</script>
<ReutersLogo />
```
<Canvas of={ReutersLogoStories.Demo} />

View file

@ -1,30 +1,15 @@
<script module lang="ts">
// @ts-ignore raw
import componentDocs from './stories/docs/component.md?raw';
import { defineMeta } from '@storybook/addon-svelte-csf';
import ReutersLogo from './ReutersLogo.svelte';
import { withComponentDocs } from '$lib/docs/utils/withParams.js';
export const meta = {
const { Story } = defineMeta({
title: 'Components/Logos/ReutersLogo',
component: ReutersLogo,
...withComponentDocs(componentDocs),
argTypes: {
logoColour: { control: 'color' },
textColour: { control: 'color' },
},
};
});
</script>
<script>
import { Template, Story } from '@storybook/addon-svelte-csf';
</script>
<Template >
{#snippet children({ args })}
<ReutersLogo {...args} />
{/snippet}
</Template>
<Story name="Default" />
<Story name="Demo" />

View file

@ -22,22 +22,6 @@
viewBox="0 0 1760.4 558.7"
style="width: {width}; --logoColour: {logoColour}; --textColour: {textColour};"
>
<defs>
<style>
.cls-1 {
fill: var(--logoColour);
}
.cls-1,
.cls-2 {
stroke-width: 0px;
}
.cls-2 {
fill: var(--textColour);
}
</style>
</defs>
<g id="Primary_Logo" data-name="Primary Logo">
<g>
<g>
@ -187,3 +171,18 @@
</g>
</g>
</svg>
<style>
.cls-1 {
fill: var(--logoColour);
}
.cls-1,
.cls-2 {
stroke-width: 0px;
}
.cls-2 {
fill: var(--textColour);
}
</style>

View file

@ -1,9 +0,0 @@
The official Reuters logo.
```svelte
<script>
import { ReutersLogo } from '@reuters-graphics/graphics-components';
</script>
<ReutersLogo />
```