blob: 3a14f4f823c22b1b414b99f6a0f130ae86ccced9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
<script lang="ts" context="module">
import type { Quote, Shelf } from '@jet-app/app-store/api/models';
interface QuoteShelf extends Shelf {
contentType: 'quote';
items: [Quote];
}
export function isQuoteShelf(shelf: Shelf): shelf is QuoteShelf {
return shelf.contentType === 'quote' && Array.isArray(shelf.items);
}
</script>
<script lang="ts">
import ShelfWrapper from '~/components/Shelf/Wrapper.svelte';
export let shelf: QuoteShelf;
$: item = shelf.items[0];
</script>
<ShelfWrapper {shelf} withBottomPadding={false}>
<div class="outer">
<div class="inner">
<blockquote>
{item.text}
</blockquote>
<span>{item.credit}</span>
</div>
</div>
</ShelfWrapper>
<style lang="scss">
@use '@amp/web-shared-styles/app/core/globalvars' as *;
@use '@amp/web-shared-styles/sasskit-stylekit/ac-sasskit-config';
@use 'ac-sasskit/core/locale' as *;
.outer {
display: flex;
margin-bottom: 24px;
padding: 0 var(--bodyGutter);
gap: 6px;
}
.outer::before {
content: '❝';
font-size: 40px;
line-height: 2.2rem;
color: var(--systemSecondary);
@include rtl {
content: '❞';
}
}
.inner {
display: flex;
flex-direction: column;
gap: 6px;
}
blockquote {
font: var(--large-title-emphasized);
text-wrap: pretty;
}
blockquote::after {
content: '❞';
color: var(--systemSecondary);
@include rtl {
content: '❝';
}
}
span {
font: var(--title-3);
color: var(--systemSecondary);
}
</style>
|