-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.typ.j2
77 lines (67 loc) · 1.67 KB
/
template.typ.j2
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
#set page(
width: 1200pt,
height: 630pt,
fill: rgb("#264323"),
margin: (x:0pt, y: 0pt)
)
#set text(
font: "Fira Sans",
fill: rgb("#FFFFFF"),
hyphenate: false,
)
#show image.where(alt: "team_image"): it => box(
radius: 10pt,
clip: true,
fill: white,
)[#it]
#show image.where(alt: "user_image"): it => box(
radius: 35pt,
clip: true,
stroke: white,
fill: white,
)[#it]
#place(top, dx: 75pt, dy: 75pt, float: true, scope: "parent")[
#block(width: 1000pt)[
#block[
#set text(
size: 60pt,
weight: "bold"
)
#show regex("([a-z|0-9|_])+"): it => {
it.text.codepoints().join(sym.zws)
}
#"{{ krate.name }}"
]
#block(above: 40pt)[
#set text(
size: 40pt,
weight: "regular",
)
#"{{ krate.description }}"
]
#block(above: 40pt)[
#stack(
dir: rtl,
spacing: -5pt,
{%- for owner in krate.user_owners %}
image("{{ owner.avatar }}", width: 70pt, alt: "user_image"),
{%- endfor %}
{%- for owner in krate.team_owners %}
image("{{ owner.avatar }}", width: 70pt, alt: "team_image"),
{%- endfor %}
)
]
]
]
#place(bottom + right, dy: -40pt, dx: -45pt, float: true, scope: "parent")[
#image("cargo.png")
]
#place(bottom + left, dx: 75pt, dy: -75pt, float: true, scope: "parent")[
#block[
#set text(
size: 32pt,
weight: "bold",
)
#"crates.io"
]
]