Skip to content

Commit

Permalink
feat(app): update embedded type
Browse files Browse the repository at this point in the history
  • Loading branch information
Immo-Be committed Feb 19, 2024
1 parent d2dc91e commit 8ba3258
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ interface Props {
}

const StoryEmbedded: FunctionComponent<Props> = ({embeddedItem}) => {
const {text} = embeddedItem;
const {description} = embeddedItem;
return (
<div className={styles.embeddedContent}>
<iframe src={embeddedItem.embeddedSrc}></iframe>
{text && (
{description && (
<Caption
showLightbox={false}
imageFit={ImageFit.Cover}
content={text}
content={description}
/>
)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/types/gallery-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface VideoItem {

export interface EmbeddedItem {
type: GalleryItemType.Embedded;
text?: string;
description?: string;
embeddedSrc?: string;
}

Expand Down
2 changes: 1 addition & 1 deletion storage/stories/story-12/story-12-de.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
{
"type": "embedded",
"text": "# Atmosphärische Kohlendioxid-Konzentration\r\nAtmosphärische Kohlendioxidkonzentration in den letzten 300 Jahren, basierend auf Luftproben aus Eisbohrkernen und seit 1958 auf direkten Messungen des Mauna Loa Observatory, Hawaii. Kohlendioxid sammelt sich seit der industriellen Revolution in der Atmosphäre an, wobei seine Konzentration in der zweiten Hälfte des zwanzigsten Jahrhunderts rasch anstieg. (Quelle: Scripps Institute of Oceanography)",
"description": "# Atmosphärische Kohlendioxid-Konzentration\r\nAtmosphärische Kohlendioxidkonzentration in den letzten 300 Jahren, basierend auf Luftproben aus Eisbohrkernen und seit 1958 auf direkten Messungen des Mauna Loa Observatory, Hawaii. Kohlendioxid sammelt sich seit der industriellen Revolution in der Atmosphäre an, wobei seine Konzentration in der zweiten Hälfte des zwanzigsten Jahrhunderts rasch anstieg. (Quelle: Scripps Institute of Oceanography)",
"embeddedSrc": "https://datawrapper.dwcdn.net/27Ww5/6/"
},
{
Expand Down
2 changes: 1 addition & 1 deletion storage/stories/story-12/story-12-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
{
"type": "embedded",
"text": "## Atmospheric Carbon Dioxide Concentration\r\nAtmospheric carbon dioxide concentration over the last 300 years, based on air samples from ice cores and, since 1958, direct measurements from Mauna Loa Observatory, Hawaii. Carbon dioxide has been accumulating in the atmosphere since the Industrial Revolution, its concentration increasing rapidly in the second half of the twentieth century. (source: Scripps Institute of Oceanography)",
"description": "## Atmospheric Carbon Dioxide Concentration\r\nAtmospheric carbon dioxide concentration over the last 300 years, based on air samples from ice cores and, since 1958, direct measurements from Mauna Loa Observatory, Hawaii. Carbon dioxide has been accumulating in the atmosphere since the Industrial Revolution, its concentration increasing rapidly in the second half of the twentieth century. (source: Scripps Institute of Oceanography)",
"embeddedSrc": "https://datawrapper.dwcdn.net/27Ww5/6/"
},
{
Expand Down
2 changes: 1 addition & 1 deletion storage/stories/story-12/story-12-es.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
{
"type": "embedded",
"text": "# Concentración de dióxido de carbono en la atmósfera\r\nConcentración atmosférica de dióxido de carbono en los últimos 300 años, basada en muestras de aire de núcleos de hielo y, desde 1958, en mediciones directas del Observatorio de Mauna Loa, en Hawai. El dióxido de carbono se ha ido acumulando en la atmósfera desde la Revolución Industrial, y su concentración aumentó rápidamente en la segunda mitad del siglo XX. (Fuente: Instituto Scripps de Oceanografía)",
"description": "# Concentración de dióxido de carbono en la atmósfera\r\nConcentración atmosférica de dióxido de carbono en los últimos 300 años, basada en muestras de aire de núcleos de hielo y, desde 1958, en mediciones directas del Observatorio de Mauna Loa, en Hawai. El dióxido de carbono se ha ido acumulando en la atmósfera desde la Revolución Industrial, y su concentración aumentó rápidamente en la segunda mitad del siglo XX. (Fuente: Instituto Scripps de Oceanografía)",
"embeddedSrc": "https://datawrapper.dwcdn.net/27Ww5/6/"
},
{
Expand Down
2 changes: 1 addition & 1 deletion storage/stories/story-12/story-12-fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{
"type": "embedded",
"embeddedSrc": "https://datawrapper.dwcdn.net/27Ww5/6/",
"text": "# Concentration de dioxyde de carbone atmosphérique\r\nConcentration de dioxyde de carbone dans l'atmosphère au cours des 300 dernières années, sur la base d'échantillons d'air provenant de carottes de glace et, depuis 1958, de mesures directes effectuées par l'observatoire de Mauna Loa, à Hawaï. Le dioxyde de carbone s'est accumulé dans l'atmosphère depuis la révolution industrielle, sa concentration augmentant rapidement dans la seconde moitié du XXe siècle. (source : Institut océanographique Scripps)"
"description": "# Concentration de dioxyde de carbone atmosphérique\r\nConcentration de dioxyde de carbone dans l'atmosphère au cours des 300 dernières années, sur la base d'échantillons d'air provenant de carottes de glace et, depuis 1958, de mesures directes effectuées par l'observatoire de Mauna Loa, à Hawaï. Le dioxyde de carbone s'est accumulé dans l'atmosphère depuis la révolution industrielle, sa concentration augmentant rapidement dans la seconde moitié du XXe siècle. (source : Institut océanographique Scripps)"
},
{
"type": "image",
Expand Down
2 changes: 1 addition & 1 deletion storage/stories/story-12/story-12-nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
{
"type": "embedded",
"text": "# Atmosferische kooldioxideconcentratie\r\nKooldioxideconcentratie in de atmosfeer over de afgelopen 300 jaar, gebaseerd op luchtmonsters uit ijskernen en, sinds 1958, directe metingen van het Mauna Loa Observatorium, Hawaii. Koolstofdioxide heeft zich sinds de industriële revolutie in de atmosfeer opgehoopt, waarbij de concentratie in de tweede helft van de twintigste eeuw snel toenam. (bron: Scripps Institute of Oceanography)",
"description": "# Atmosferische kooldioxideconcentratie\r\nKooldioxideconcentratie in de atmosfeer over de afgelopen 300 jaar, gebaseerd op luchtmonsters uit ijskernen en, sinds 1958, directe metingen van het Mauna Loa Observatorium, Hawaii. Koolstofdioxide heeft zich sinds de industriële revolutie in de atmosfeer opgehoopt, waarbij de concentratie in de tweede helft van de twintigste eeuw snel toenam. (bron: Scripps Institute of Oceanography)",
"embeddedSrc": "https://datawrapper.dwcdn.net/27Ww5/6/"
},
{
Expand Down

0 comments on commit 8ba3258

Please sign in to comment.