diff --git a/.changeset/slimy-cities-swim.md b/.changeset/slimy-cities-swim.md new file mode 100644 index 00000000..57e10ff4 --- /dev/null +++ b/.changeset/slimy-cities-swim.md @@ -0,0 +1,5 @@ +--- +'@reuters-graphics/graphics-components': patch +--- + +Adds new Headpile component. diff --git a/src/components/Headpile/Headpile.mdx b/src/components/Headpile/Headpile.mdx new file mode 100644 index 00000000..dcdc28eb --- /dev/null +++ b/src/components/Headpile/Headpile.mdx @@ -0,0 +1,37 @@ +import { Meta, Canvas } from '@storybook/blocks'; + +import * as HeadpileStories from './Headpile.stories.svelte'; + + + +# Headpile + +The `Headpile` component is a headshot-bulleted list of people, identifying them with their names, roles and a short description of their significance to a story. + +It's designed to be used with headshots that have had their background removed, which can be done in the [Preview app](https://support.apple.com/en-gb/guide/preview/prvw15636/mac?#apd320b3b1b750a4) on macOS. + +```svelte + + + +``` + + diff --git a/src/components/Headpile/Headpile.stories.svelte b/src/components/Headpile/Headpile.stories.svelte new file mode 100644 index 00000000..576bd899 --- /dev/null +++ b/src/components/Headpile/Headpile.stories.svelte @@ -0,0 +1,37 @@ + + + diff --git a/src/components/Headpile/Headpile.svelte b/src/components/Headpile/Headpile.svelte new file mode 100644 index 00000000..564f49d8 --- /dev/null +++ b/src/components/Headpile/Headpile.svelte @@ -0,0 +1,81 @@ + + + +
+ {#each figures as figure} + + {/each} +
+
+ + diff --git a/src/components/Headpile/Headshot.svelte b/src/components/Headpile/Headshot.svelte new file mode 100644 index 00000000..dd2affff --- /dev/null +++ b/src/components/Headpile/Headshot.svelte @@ -0,0 +1,41 @@ + + +
+
+
+
+ + diff --git a/src/components/Headpile/KeyFigure.svelte b/src/components/Headpile/KeyFigure.svelte new file mode 100644 index 00000000..14e62666 --- /dev/null +++ b/src/components/Headpile/KeyFigure.svelte @@ -0,0 +1,108 @@ + + +
+
+
+ +
+
+
{name}
+
+ {role || ''} +
+ {#if !mobile.current} +
+ +
+ {/if} +
+
+ + {#if mobile.current} +
+ +
+ {/if} +
+ + diff --git a/src/components/Headpile/images/abdel.png b/src/components/Headpile/images/abdel.png new file mode 100644 index 00000000..dcaef5c2 Binary files /dev/null and b/src/components/Headpile/images/abdel.png differ diff --git a/src/components/Headpile/images/hemedti.png b/src/components/Headpile/images/hemedti.png new file mode 100644 index 00000000..c4321130 Binary files /dev/null and b/src/components/Headpile/images/hemedti.png differ diff --git a/src/index.ts b/src/index.ts index 93f06e4f..669f613e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -20,6 +20,7 @@ export { default as FeaturePhoto } from './components/FeaturePhoto/FeaturePhoto. export { default as Framer } from './components/Framer/Framer.svelte'; export { default as GraphicBlock } from './components/GraphicBlock/GraphicBlock.svelte'; export { default as Headline } from './components/Headline/Headline.svelte'; +export { default as Headpile } from './components/Headpile/Headpile.svelte'; export { default as HeroHeadline } from './components/HeroHeadline/HeroHeadline.svelte'; export { default as EndNotes } from './components/EndNotes/EndNotes.svelte'; export { default as InfoBox } from './components/InfoBox/InfoBox.svelte';