@swr-data-lab/components 1.3.2 → 1.4.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.
package/package.json
CHANGED
package/src/Card/Card.svelte
CHANGED
|
@@ -25,36 +25,43 @@
|
|
|
25
25
|
<Story name="Basic HighlightCard">
|
|
26
26
|
<HighlightCard
|
|
27
27
|
topline="Die letzte Großspende liegt bei"
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
value="375.000"
|
|
29
|
+
unit="Euro"
|
|
30
30
|
subline="Der Betrag ging am 7. Januar von Dr. Kim Musterperson ein."
|
|
31
31
|
/>
|
|
32
32
|
</Story>
|
|
33
33
|
|
|
34
34
|
<Story name="Basic HighlightCard">
|
|
35
|
-
<div class="
|
|
35
|
+
<div class="highlight-cards">
|
|
36
36
|
<HighlightCard
|
|
37
37
|
topline="Im aktuellen Jahr wurden bisher"
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
value="375.000"
|
|
39
|
+
unit="€"
|
|
40
40
|
subline="an Parteien gespendet."
|
|
41
41
|
/>
|
|
42
42
|
<HighlightCard
|
|
43
43
|
topline="Die letzte Großspende liegt bei"
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
value="37.500"
|
|
45
|
+
unit="€"
|
|
46
46
|
subline="Der Betrag ging am 7. Januar von Dr. Kim Musterperson ein."
|
|
47
47
|
/>
|
|
48
48
|
</div>
|
|
49
49
|
</Story>
|
|
50
50
|
|
|
51
51
|
<style>
|
|
52
|
-
.
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
.highlight-cards {
|
|
53
|
+
@media (min-width: 900px) {
|
|
54
|
+
margin: 0 -1rem;
|
|
55
|
+
display: flex;
|
|
56
|
+
}
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
:global(.
|
|
58
|
-
|
|
59
|
+
:global(.highlight-cards > *) {
|
|
60
|
+
margin: 1rem 0;
|
|
61
|
+
|
|
62
|
+
@media (min-width: 900px) {
|
|
63
|
+
margin: 2rem 1rem;
|
|
64
|
+
flex: 1;
|
|
65
|
+
}
|
|
59
66
|
}
|
|
60
67
|
</style>
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
import Card from '../Card/Card.svelte';
|
|
3
3
|
|
|
4
4
|
export let topline = '';
|
|
5
|
-
export let
|
|
6
|
-
export let
|
|
5
|
+
export let value = '';
|
|
6
|
+
export let unit = '';
|
|
7
7
|
export let subline = '';
|
|
8
|
-
export let alignCards = true;
|
|
9
|
-
export let maxWidth = '500px';
|
|
10
8
|
</script>
|
|
11
9
|
|
|
12
10
|
<Card>
|
|
@@ -18,9 +16,9 @@
|
|
|
18
16
|
{/if}
|
|
19
17
|
<div class="middle">
|
|
20
18
|
<span class="underline">
|
|
21
|
-
{
|
|
19
|
+
{value}
|
|
22
20
|
</span>
|
|
23
|
-
{
|
|
21
|
+
{unit}
|
|
24
22
|
</div>
|
|
25
23
|
<div class="bottom">
|
|
26
24
|
{@html subline}
|
|
@@ -46,7 +44,7 @@
|
|
|
46
44
|
|
|
47
45
|
.middle {
|
|
48
46
|
font-family: $swr-sans;
|
|
49
|
-
font-size:
|
|
47
|
+
font-size: 54px;
|
|
50
48
|
font-weight: 700;
|
|
51
49
|
padding-bottom: 0.2em;
|
|
52
50
|
}
|