feat: add example cover letter

This commit is contained in:
Felix Schröter 2025-04-09 11:16:23 +02:00
parent b2f174b91b
commit 6b2b24a701
Signed by: felschr
GPG key ID: 671E39E6744C807D
3 changed files with 55 additions and 0 deletions

View file

@ -40,6 +40,7 @@
fileset = lib.fileset.unions [
(lib.fileset.fromSource (typixLib.cleanTypstSource ./.))
./src/info.toml
# ./src/signature.svg
];
};
commonArgs = {

51
src/cover-letter.typ Normal file
View file

@ -0,0 +1,51 @@
#import "lib/main.typ": *
#import "lib/extra.typ": *
#let meta = toml("info.toml")
#show: cover-letter.with(
author: meta.personal.name,
title: meta.personal.title,
location: meta.personal.location,
email: meta.personal.email,
github: meta.personal.github,
linkedin: meta.personal.linkedin,
personal-site: meta.personal.website,
accent-color: meta.layout.accent_color,
font: meta.layout.font,
paper: meta.layout.paper,
)
\ \
// recipient
Lorem Ipsum GmbH \
Dolor sit amet Str. 1 \
11111 Lorem \
Germany
\ \
#align(
right,
datetime.today().display(),
)
Dear X,
#lorem(30)
#lorem(50)
#lorem(60)
#lorem(40)
#lorem(20)
\
Sincerely,
Felix Schröter
// #signature("signature.svg")

3
src/lib/extra.typ Normal file
View file

@ -0,0 +1,3 @@
#let signature(path) = {
image("../" + path, alt: "signature", width: 25%)
}