diff --git a/src/components/HeroHeadline/Hero.stories.svelte b/src/components/HeroHeadline/Hero.stories.svelte
index 1e598acd..9031a9d7 100644
--- a/src/components/HeroHeadline/Hero.stories.svelte
+++ b/src/components/HeroHeadline/Hero.stories.svelte
@@ -4,17 +4,22 @@
// @ts-ignore
import componentDocs from './stories/docs/component.md?raw';
// @ts-ignore
- // import backgroundImageDocs from './stories/docs/backgroundImage.md?raw';
+ import backgroundGraphicDocs from './stories/docs/backgroundGraphic.md?raw';
+ // @ts-ignore
+ import inlineGraphicDocs from './stories/docs/inlineGraphic.md?raw';
// @ts-ignore
import polarImgSrc from './stories/polar.jpg';
- // import GraphicBlock from '../GraphicBlock/GraphicBlock.svelte';
import HeroHeadline from './Hero.svelte';
+ import GraphicBlock from '../GraphicBlock/GraphicBlock.svelte';
+
+ import CrashMap from './stories/graphics/crash.svelte';
+ import QuakeMap from './stories/graphics/quakemap.svelte';
import {
withComponentDocs,
- // withStoryDocs,
+ withStoryDocs,
} from '$lib/docs/utils/withParams.js';
const metaProps = {
@@ -25,6 +30,10 @@
control: 'select',
options: ['small', 'normal', 'big', 'bigger', 'biggest'],
},
+ hedWidth: {
+ control: 'select',
+ options: ['normal', 'wide', 'wider', 'widest'],
+ },
width: {
control: 'select',
options: ['normal', 'wide', 'wider', 'widest'],
@@ -44,11 +53,10 @@
-
+ >
+
+
+
+
+
+
+
diff --git a/src/components/HeroHeadline/Hero.svelte b/src/components/HeroHeadline/Hero.svelte
index b04fbd43..f73b5111 100644
--- a/src/components/HeroHeadline/Hero.svelte
+++ b/src/components/HeroHeadline/Hero.svelte
@@ -1,7 +1,6 @@
-
-
+
+
{#if $$slots.background || img}
-
+
{#if $$slots.background}
-
+
{:else}
+ {#if notes}
+
+
+
+ {/if}
{/if}
- {#if notes}
-
-
-
+
+
+ {#if $$slots.inline}
+
+
+
+
+
+
+
{/if}
-{#if $$slots.inline}
-
-
-
-
-{/if}
-
{#if $$slots.byline}
@@ -194,26 +185,33 @@
@import '../../scss/mixins';
:global {
- .hero-headline {
- height: var(--heroHeight);
+ .background-hero {
+ height: var(--heroHeight, 100svh);
max-height: 1800px;
width: 100%;
position: relative;
.headline {
+ @include fmt-0;
+ z-index: 1;
display: flex;
align-items: center;
justify-content: center;
- z-index: 1;
position: absolute;
+ width: 100%;
top: 0;
left: 50%;
- height: var(--heroHeight);
+ height: var(--heroHeight, 100svh);
max-height: 1800px;
transform: translateX(-50%);
}
}
+ .byline-container {
+ z-index: 1;
+ position: relative;
+ }
+
.hero-wrapper {
// Caption and Sources
aside {
@@ -224,17 +222,13 @@
}
}
.background-image {
- position: absolute;
- width: 100%;
- height: var(--heroHeight);
+ width: auto;
+ height: var(--heroHeight, 100svh);
max-height: 1800px;
- top: 0;
- z-index: 0;
- left: 0;
user-select: none;
background-repeat: no-repeat;
- background-position: var(--backgroundPos);
- background-size: var(--backgroundSize);
+ background-position: center;
+ background-size: cover;
}
diff --git a/src/components/HeroHeadline/stories/docs/backgroundGraphic.md b/src/components/HeroHeadline/stories/docs/backgroundGraphic.md
new file mode 100644
index 00000000..c85ced97
--- /dev/null
+++ b/src/components/HeroHeadline/stories/docs/backgroundGraphic.md
@@ -0,0 +1,66 @@
+Reuters Graphics headline with ai2svelte graphic as background.
+
+```svelte
+
+
+
+
+
+
+
+
+
+
+
+```
diff --git a/src/components/HeroHeadline/stories/docs/backgroundImage.md b/src/components/HeroHeadline/stories/docs/backgroundImage.md
deleted file mode 100644
index 1c4be9cb..00000000
--- a/src/components/HeroHeadline/stories/docs/backgroundImage.md
+++ /dev/null
@@ -1,16 +0,0 @@
-> 🔨 **Under construction**: We're working on this component to make it better. Pardon our mess.
-
-Reuters Graphics headline
-
-```svelte
-
-
-
-```
diff --git a/src/components/HeroHeadline/stories/docs/component.md b/src/components/HeroHeadline/stories/docs/component.md
index 1c4be9cb..8a8b07eb 100644
--- a/src/components/HeroHeadline/stories/docs/component.md
+++ b/src/components/HeroHeadline/stories/docs/component.md
@@ -1,16 +1,17 @@
-> 🔨 **Under construction**: We're working on this component to make it better. Pardon our mess.
-
-Reuters Graphics headline
+Reuters Graphics headline with a Hero media
```svelte
-
```
diff --git a/src/components/HeroHeadline/stories/docs/inlineGraphic.md b/src/components/HeroHeadline/stories/docs/inlineGraphic.md
new file mode 100644
index 00000000..c3b0b182
--- /dev/null
+++ b/src/components/HeroHeadline/stories/docs/inlineGraphic.md
@@ -0,0 +1,32 @@
+Reuters Graphics headline followed by a graphic or any media block.
+
+```svelte
+
+
+
+
+
+
+
+
+
+```
diff --git a/src/components/HeroHeadline/stories/graphics/CRASH_1-lg.jpeg b/src/components/HeroHeadline/stories/graphics/CRASH_1-lg.jpeg
new file mode 100644
index 00000000..60e63044
Binary files /dev/null and b/src/components/HeroHeadline/stories/graphics/CRASH_1-lg.jpeg differ
diff --git a/src/components/HeroHeadline/stories/graphics/CRASH_1-md.jpeg b/src/components/HeroHeadline/stories/graphics/CRASH_1-md.jpeg
new file mode 100644
index 00000000..abe9b17e
Binary files /dev/null and b/src/components/HeroHeadline/stories/graphics/CRASH_1-md.jpeg differ
diff --git a/src/components/HeroHeadline/stories/graphics/CRASH_1-sm.jpeg b/src/components/HeroHeadline/stories/graphics/CRASH_1-sm.jpeg
new file mode 100644
index 00000000..ca460800
Binary files /dev/null and b/src/components/HeroHeadline/stories/graphics/CRASH_1-sm.jpeg differ
diff --git a/src/components/HeroHeadline/stories/graphics/CRASH_1-xl.jpeg b/src/components/HeroHeadline/stories/graphics/CRASH_1-xl.jpeg
new file mode 100644
index 00000000..06199572
Binary files /dev/null and b/src/components/HeroHeadline/stories/graphics/CRASH_1-xl.jpeg differ
diff --git a/src/components/HeroHeadline/stories/graphics/CRASH_1-xl_copy.jpeg b/src/components/HeroHeadline/stories/graphics/CRASH_1-xl_copy.jpeg
new file mode 100644
index 00000000..e150f58c
Binary files /dev/null and b/src/components/HeroHeadline/stories/graphics/CRASH_1-xl_copy.jpeg differ
diff --git a/src/components/HeroHeadline/stories/graphics/CRASH_1-xs.jpeg b/src/components/HeroHeadline/stories/graphics/CRASH_1-xs.jpeg
new file mode 100644
index 00000000..4a8245fa
Binary files /dev/null and b/src/components/HeroHeadline/stories/graphics/CRASH_1-xs.jpeg differ
diff --git a/src/components/HeroHeadline/stories/graphics/crash.svelte b/src/components/HeroHeadline/stories/graphics/crash.svelte
new file mode 100644
index 00000000..3cdc7a56
--- /dev/null
+++ b/src/components/HeroHeadline/stories/graphics/crash.svelte
@@ -0,0 +1,609 @@
+
+
+
+
+
+
+ {#if width && width >= 0 && width < 510}
+
+
+
+
+
Cruising at
+
29,100 feet
+
+
+
2.21 pm
+
Steep drop from
+
27,025 feet
+
+
+
Typical path to
+
Guangzhou
+
+
+
Last known
+
location
+
+
+
+ {/if}
+
+ {#if width && width >= 510 && width < 660}
+
+
+
+
+
Cruising at
+
29,100 feet
+
+
+
2.21 pm
+
Steep drop from
+
27,025 feet
+
+
+
Typical path to
+
Guangzhou
+
+
+
Last known
+
location
+
+
+
+ {/if}
+
+ {#if width && width >= 660 && width < 930}
+
+
+
+
+
Cruising at
+
29,100 feet
+
+
+
2.20 pm
+
Slight descent
+
+
+
2.21 pm
+
Steep drop from
+
27,025 feet
+
+
+
Typical path to
+
Guangzhou
+
+
+
Last known
+
location
+
+
+
Approximate
+
crash site
+
+
+ {/if}
+
+ {#if width && width >= 930 && width < 1200}
+
+
+
+
+
Cruising at
+
29,100 feet
+
+
+
2.20 pm
+
Slight descent
+
+
+
2.21 pm
+
Steep drop from
+
27,025 feet
+
+
+
Typical path to
+
Guangzhou
+
+
+
Last known
+
location
+
+
+
Approximate
+
crash site
+
+
+ {/if}
+
+ {#if width && width >= 1200 && width < 1350}
+
+
+
+
+
Cruising at
+
29,100 feet
+
+
+
2.20 pm
+
Slight descent
+
+
+
2.21 pm
+
Steep drop from
+
27,025 feet
+
+
+
Typical path to
+
Guangzhou
+
+
+
Last known
+
location
+
+
+
Approximate
+
crash site
+
+
+ {/if}
+
+ {#if width && width >= 1350}
+
+
+
+
+
Cruising at
+
29,100 feet
+
+
+
2.20 pm
+
Slight descent
+
+
+
2.21 pm
+
Steep drop from
+
27,025 feet
+
+
+
Typical path to
+
Guangzhou
+
+
+
Last known
+
location
+
+
+
Approximate
+
crash site
+
+
+ {/if}
+
+
+
+
+
+
diff --git a/src/components/HeroHeadline/stories/graphics/quake-map-top-lg.jpeg b/src/components/HeroHeadline/stories/graphics/quake-map-top-lg.jpeg
new file mode 100644
index 00000000..67096d62
Binary files /dev/null and b/src/components/HeroHeadline/stories/graphics/quake-map-top-lg.jpeg differ
diff --git a/src/components/HeroHeadline/stories/graphics/quake-map-top-md.jpeg b/src/components/HeroHeadline/stories/graphics/quake-map-top-md.jpeg
new file mode 100644
index 00000000..157b8b37
Binary files /dev/null and b/src/components/HeroHeadline/stories/graphics/quake-map-top-md.jpeg differ
diff --git a/src/components/HeroHeadline/stories/graphics/quake-map-top-sm.jpeg b/src/components/HeroHeadline/stories/graphics/quake-map-top-sm.jpeg
new file mode 100644
index 00000000..f93377af
Binary files /dev/null and b/src/components/HeroHeadline/stories/graphics/quake-map-top-sm.jpeg differ
diff --git a/src/components/HeroHeadline/stories/graphics/quake-map-top-xl.jpeg b/src/components/HeroHeadline/stories/graphics/quake-map-top-xl.jpeg
new file mode 100644
index 00000000..a150f58d
Binary files /dev/null and b/src/components/HeroHeadline/stories/graphics/quake-map-top-xl.jpeg differ
diff --git a/src/components/HeroHeadline/stories/graphics/quake-map-top-xs.jpeg b/src/components/HeroHeadline/stories/graphics/quake-map-top-xs.jpeg
new file mode 100644
index 00000000..34601bd1
Binary files /dev/null and b/src/components/HeroHeadline/stories/graphics/quake-map-top-xs.jpeg differ
diff --git a/src/components/HeroHeadline/stories/graphics/quakemap.svelte b/src/components/HeroHeadline/stories/graphics/quakemap.svelte
new file mode 100644
index 00000000..fe156865
--- /dev/null
+++ b/src/components/HeroHeadline/stories/graphics/quakemap.svelte
@@ -0,0 +1,828 @@
+
+
+
+
+ {#if width && width >= 0 && width < 510}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {/if}
+
+ {#if width && width >= 510 && width < 660}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {/if}
+
+ {#if width && width >= 660 && width < 1200}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {/if}
+
+ {#if width && width >= 1200 && width < 1300}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {/if}
+
+ {#if width && width >= 1300}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {/if}
+
+
+
+
+
+
+
diff --git a/src/scss/reset/_typography.scss b/src/scss/reset/_typography.scss
index 0a97db56..4bc9dbaf 100644
--- a/src/scss/reset/_typography.scss
+++ b/src/scss/reset/_typography.scss
@@ -61,6 +61,10 @@ h6 {
@include body-text;
}
+text {
+ @include body-note;
+}
+
p {
@extend %body-type-block;
}