@swr-data-lab/components 2.31.4 → 2.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,7 +10,10 @@ let { layout = 'one-up', align = 'left', showLogo = true, children } = $props();
|
|
|
10
10
|
</Note>
|
|
11
11
|
{/if}
|
|
12
12
|
{#if showLogo}
|
|
13
|
-
<
|
|
13
|
+
<a href="https://www.swr.de/home/swr-data-lab-team-100.html" class="logo-link">
|
|
14
|
+
SWR Data Lab
|
|
15
|
+
<Logotype />
|
|
16
|
+
</a>
|
|
14
17
|
{/if}
|
|
15
18
|
</footer>
|
|
16
19
|
|
|
@@ -21,6 +24,13 @@ let { layout = 'one-up', align = 'left', showLogo = true, children } = $props();
|
|
|
21
24
|
width: 100%;
|
|
22
25
|
}
|
|
23
26
|
|
|
27
|
+
.logo-link {
|
|
28
|
+
font-size: 0;
|
|
29
|
+
}
|
|
30
|
+
.logo-link:hover :global(path), .logo-link:focus-visible :global(path) {
|
|
31
|
+
fill: var(--color-logoFillHover);
|
|
32
|
+
}
|
|
33
|
+
|
|
24
34
|
.one-up {
|
|
25
35
|
display: flex;
|
|
26
36
|
flex-flow: column;
|
|
@@ -44,6 +44,7 @@ const rules = [
|
|
|
44
44
|
--color-textSecondary: var(--textSecondary-light);
|
|
45
45
|
--color-textSecondaryHover: var(--textSecondaryHover-light);
|
|
46
46
|
--color-logoFill: var(--logoFill-light);
|
|
47
|
+
--color-logoFillHover: var(--logoFillHover-light);
|
|
47
48
|
--color-pageFill: var(--pageFill-light);
|
|
48
49
|
--color-surfaceFill: var(--surfaceFill-light);
|
|
49
50
|
--color-surfaceHover: var(--surfaceHover-light);
|
|
@@ -52,6 +53,7 @@ const rules = [
|
|
|
52
53
|
}
|
|
53
54
|
.container[data-theme=dark] {
|
|
54
55
|
--color-logoFill: var(--logoFill-dark);
|
|
56
|
+
--color-logoFillHover: var(--logoFillHover-dark);
|
|
55
57
|
--color-pageFill: var(--pageFill-dark);
|
|
56
58
|
--color-surfaceFill: var(--surfaceFill-dark);
|
|
57
59
|
--color-surfaceBorder: var(--surfaceBorder-dark);
|
|
@@ -157,9 +157,13 @@ const semantics = {
|
|
|
157
157
|
dark: '#b4b4b4'
|
|
158
158
|
},
|
|
159
159
|
logoFill: {
|
|
160
|
-
light: shades.gray.
|
|
160
|
+
light: shades.gray.light1,
|
|
161
161
|
dark: shades.gray.base
|
|
162
162
|
},
|
|
163
|
+
logoFillHover: {
|
|
164
|
+
light: shades.gray.base,
|
|
165
|
+
dark: shades.gray.light1
|
|
166
|
+
},
|
|
163
167
|
surfaceFill: {
|
|
164
168
|
dark: '#222325',
|
|
165
169
|
light: '#ffffff'
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
<script lang="ts">import SwrLogo from './SwrLogo.svg.svelte';
|
|
2
2
|
import GridInspector from './GridInspector.svelte';
|
|
3
|
-
import Copy from '../Copy/Copy.svelte';
|
|
4
3
|
import DesignTokens from '../DesignTokens/DesignTokens.svelte';
|
|
5
|
-
import
|
|
6
|
-
let { showHeader = true, showNav = true, showArticleHeader = true, showPlayer = true, eyebrow = 'Wärmewende in Ihrer Gemeinde', title = 'Baden-Württemberg heizt noch größtenteils fossil', intro = 'Fast drei Viertel der privaten Heizungen in Baden-Württemberg liefen 2022 noch mit Öl und Gas. In Neubauten werden inzwischen überwiegend Wärmepumpen eingebaut, doch es gibt regionale Unterschiede.', showBreadcrumbs = true, showGrid = false, paragraphsAbove = 0, paragraphsBelow = 0, children } = $props();
|
|
4
|
+
import Copy from '../Copy/Copy.svelte';
|
|
5
|
+
let { theme = 'light', showHeader = true, showNav = true, showArticleHeader = true, showPlayer = true, eyebrow = 'Wärmewende in Ihrer Gemeinde', title = 'Baden-Württemberg heizt noch größtenteils fossil', intro = 'Fast drei Viertel der privaten Heizungen in Baden-Württemberg liefen 2022 noch mit Öl und Gas. In Neubauten werden inzwischen überwiegend Wärmepumpen eingebaut, doch es gibt regionale Unterschiede.', showBreadcrumbs = true, showGrid = false, paragraphsAbove = 0, paragraphsBelow = 0, children } = $props();
|
|
7
6
|
const date = new Date();
|
|
8
7
|
let articleEl = $state();
|
|
9
8
|
</script>
|
|
10
9
|
|
|
11
|
-
<DesignTokens>
|
|
12
|
-
<div
|
|
10
|
+
<DesignTokens {theme}>
|
|
11
|
+
<div
|
|
12
|
+
class="container"
|
|
13
|
+
style={theme === 'light'
|
|
14
|
+
? '--blue: hsl(221, 75%, 46%); --blue-light: hsl(221, 100%, 95%)'
|
|
15
|
+
: '--blue: hsl(220, 22%, 51%); --blue-light: hsl(219, 22%, 18%)'}
|
|
16
|
+
>
|
|
13
17
|
{#if showHeader}
|
|
14
18
|
<header>
|
|
15
19
|
<div class="header-inner">
|
|
@@ -114,9 +118,8 @@ let articleEl = $state();
|
|
|
114
118
|
}
|
|
115
119
|
|
|
116
120
|
.container {
|
|
117
|
-
--blue: hsl(221, 75%, 46%);
|
|
118
|
-
--blue-light: hsl(221, 100%, 95%);
|
|
119
121
|
color: var(--blue);
|
|
122
|
+
background: var(--color-pageFill);
|
|
120
123
|
font-family: "SWR-VAR-Sans", sans-serif;
|
|
121
124
|
}
|
|
122
125
|
|