diff --git a/src/components/SimpleTimeline/SimpleTimeline.stories.svelte b/src/components/SimpleTimeline/SimpleTimeline.stories.svelte index e1a6581e..c6a6f273 100644 --- a/src/components/SimpleTimeline/SimpleTimeline.stories.svelte +++ b/src/components/SimpleTimeline/SimpleTimeline.stories.svelte @@ -23,9 +23,12 @@ date: 'May 18', events: [ { - title: 'Mariupol defenders surrender to Russia but their fate is uncertain', - titleLink: 'https://www.reuters.com/world/europe/ukrainian-troops-evacuate-mariupol-ceding-control-russia-2022-05-17/', - context: 'More than 250 Ukrainian fighters surrendered to Russian forces at the Azovstal steelworks in Mariupol after weeks of desperate resistance, bringing an end to the most devastating siege of Russia\'s war in Ukraine and allowing President Vladimir Putin to claim a rare victory in his faltering campaign.', + title: + 'Mariupol defenders surrender to Russia but their fate is uncertain', + titleLink: + 'https://www.reuters.com/world/europe/ukrainian-troops-evacuate-mariupol-ceding-control-russia-2022-05-17/', + context: + "More than 250 Ukrainian fighters surrendered to Russian forces at the Azovstal steelworks in Mariupol after weeks of desperate resistance, bringing an end to the most devastating siege of Russia's war in Ukraine and allowing President Vladimir Putin to claim a rare victory in his faltering campaign.", }, ], }, @@ -33,8 +36,10 @@ date: 'May 10', events: [ { - title: 'U.S. House passes $40 bln bill to bolster Ukraine against Russian invasion', - context: 'The U.S. House of Representatives approved more than $40 billion more aid for Ukraine on Tuesday, as Congress races to keep military aid flowing and boost the government in Kyiv as it grapples with the Russian invasion.', + title: + 'U.S. House passes $40 bln bill to bolster Ukraine against Russian invasion', + context: + 'The U.S. House of Representatives approved more than $40 billion more aid for Ukraine on Tuesday, as Congress races to keep military aid flowing and boost the government in Kyiv as it grapples with the Russian invasion.', }, ], }, @@ -42,8 +47,10 @@ date: 'Mar. 3', events: [ { - title: '"We are being destroyed," city council of Ukraine\'s Mariupol says', - context: 'Mariupol city council said Russian forces were constantly and deliberately shelling [vital civilian infrastructure](https://google.com) in the southeastern Ukrainian port, leaving it without water, heating or power and preventing bringing supplies or evacuating people.', + title: + '"We are being destroyed," city council of Ukraine\'s Mariupol says', + context: + 'Mariupol city council said Russian forces were constantly and deliberately shelling [vital civilian infrastructure](https://google.com) in the southeastern Ukrainian port, leaving it without water, heating or power and preventing bringing supplies or evacuating people.', }, ], }, @@ -52,10 +59,12 @@ events: [ { title: 'Russians push into Kharkiv', - titleLink: 'https://www.reuters.com/world/europe/western-allies-expel-key-russian-banks-global-system-ukraine-fights-2022-02-27/', + titleLink: + 'https://www.reuters.com/world/europe/western-allies-expel-key-russian-banks-global-system-ukraine-fights-2022-02-27/', }, { - title: 'Human rights groups and Ukrainian ambassador accuse Russia of using cluster and vacuum bombs', + title: + 'Human rights groups and Ukrainian ambassador accuse Russia of using cluster and vacuum bombs', }, ], }, @@ -64,14 +73,17 @@ events: [ { title: 'NATO deploys more troops', - context: 'NATO leaders said on Friday they were deploying more troops to eastern Europe after Russia invaded Ukraine, saying that Moscow had lied about its intentions.', + context: + 'NATO leaders said on Friday they were deploying more troops to eastern Europe after Russia invaded Ukraine, saying that Moscow had lied about its intentions.', }, { title: 'Invasion continues', - context: 'Missiles pounded the Ukrainian capital as Russian forces pressed their advance and Ukrainian President Volodymyr Zelenskiy pleaded with the international community to do more, saying sanctions announced so far were not enough.\n\nRussian forces battered Ukrainian cities with artillery and cruise missiles but a defiant Zelenskiy said the capital Kyiv remained in Ukrainian hands.', + context: + 'Missiles pounded the Ukrainian capital as Russian forces pressed their advance and Ukrainian President Volodymyr Zelenskiy pleaded with the international community to do more, saying sanctions announced so far were not enough.\n\nRussian forces battered Ukrainian cities with artillery and cruise missiles but a defiant Zelenskiy said the capital Kyiv remained in Ukrainian hands.', }, ], - }, { + }, + { date: 'Feb. 24', events: [ { @@ -95,4 +107,4 @@ symbolColour: '#999', dateColour: '#e05a39', }}" -/> \ No newline at end of file +/> diff --git a/src/components/SimpleTimeline/SimpleTimeline.svelte b/src/components/SimpleTimeline/SimpleTimeline.svelte index ce475eeb..88855a6c 100644 --- a/src/components/SimpleTimeline/SimpleTimeline.svelte +++ b/src/components/SimpleTimeline/SimpleTimeline.svelte @@ -35,14 +35,13 @@ */ export let id: string = ''; - import Block from '../Block/Block.svelte'; import Fa from 'svelte-fa/src/fa.svelte'; import { faLink } from '@fortawesome/free-solid-svg-icons'; import { marked } from 'marked'; - +
{#each dates as date}
@@ -55,7 +54,7 @@ stroke-width="2" fill="transparent"> -
{date.date}
+
{date.date}
{#each date.events as event}
{#if event.titleLink} diff --git a/src/components/SimpleTimeline/stories/docs/component.md b/src/components/SimpleTimeline/stories/docs/component.md index 8168bb16..915105a7 100644 --- a/src/components/SimpleTimeline/stories/docs/component.md +++ b/src/components/SimpleTimeline/stories/docs/component.md @@ -20,6 +20,9 @@ A simple, clean text timeline. ]; - - + ``` diff --git a/src/components/SimpleTimeline/stories/shark.jpg b/src/components/SimpleTimeline/stories/shark.jpg deleted file mode 100644 index 6d32b7fe..00000000 Binary files a/src/components/SimpleTimeline/stories/shark.jpg and /dev/null differ