-
Notifications
You must be signed in to change notification settings - Fork 0
/
cover.typ
103 lines (82 loc) · 1.81 KB
/
cover.typ
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#import "utils.typ": *
#let config = toml("config.toml")
#set page(paper: "us-letter", margin: 0.4in)
#set document(
title: config.at("title", default: config.name + "'s Cover Letter"),
author: config.at("author", default: config.name),
keywords: "cover letter, software engineer, developer, programmer",
)
#set text(font: "open sans", weight: "regular", size: 10.5pt, hyphenate: true)
#set par(leading: 0.5em)
#set list(indent: 1em, spacing: 0.65em, tight: false)
#set block(below: 2em)
#let name = text(
size: 40pt,
font: "jersey 10",
weight: "bold",
fill: white,
config.name
)
#let about = text(
size: 10pt,
stack(
dir: ltr,
spacing: 0.5em,
[
#config.phone \
#link("mailto:" + config.email, config.email) \
#link("https://linkedin.com/in/" + config.linkedin, "linkedin/" + config.linkedin)
],
// vertical line
line(
stroke: 1pt + white,
angle: 90deg,
length: 40pt
),
align(start, [
#config.location \
#link("https://" + config.website, config.website) \
#link("https://github.com/" + config.github, "github/" + config.github)
])
)
)
#header(
text(fill: white, stack(dir: ltr, [
#name \
#text(size: 10pt, "Computer Science student")
],
align(right, about)
)),
alignment: start + horizon
)
#space(h: 0.3in)
#text(
weight: "semibold",
size: 12pt,
[
John Smith \
Hiring Manager \
Acme Corp \
123 Main St \
Springfield, IL 62701
]
)
#line(length: 100%)
Dear Hiring Manager,
#lorem(50)
#lorem(75)
#lorem(40)
#lorem(75)
#lorem(50)
Thank you for your time and consideration. I look forward to hearing from you soon.
#line(length: 100%)
Regards, \
#config.name
#space(h: 0.1fr)
#box(
width: 100%,
fill: rgb(38, 38, 38),
// but since this is at the top, we want to fill
// the margin with the background of the box
outset: (x: 0.4in, bottom: 0.4in),
)