blob: 2ab9bef79724080cd8637ca711ee35df6f8d3459 (
plain) (
blame)
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
|
mixin card
-
let classes = {
'o-card': true,
'o-card--quiet': !!attributes.quiet,
}
if (attributes.class) {
classes[attributes.class] = true;
}
if attributes.href
a(href=attributes.href class=classes)
block
else
div(class=classes)
block
mixin card-image
-
let classes = {
'o-card__image': true,
}
if (attributes.class) {
classes[attributes.class] = true;
}
img(class=classes src=attributes.src style=attributes.style)
mixin card-body
.o-card__body(style=attributes.style)
block
mixin card-title
h1.o-card__title
block
mixin card-avatar
+avatar(class='o-card__avatar' src=attributes.src size='xl')
mixin card-content
.o-card__content
block
mixin card-footer
footer.o-card__footer
block
|