diff --git a/CHANGELOG.md b/CHANGELOG.md index b4fa012..317d3e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ ## Fix -- Fix unclickable contact details in the header of CV. \ No newline at end of file +- Fix unclickable contact details in the header of CV. +- Page margin is better adjusted. + +## Update + +- Update the `fontawesome` package to version `0.5.0`. diff --git a/README.md b/README.md index bf006c9..fa8a877 100644 --- a/README.md +++ b/README.md @@ -56,21 +56,21 @@ The template has the following arguments: If you want to use the single column version, you create a new `.typ` file and copy the following code: ```Typst -#import "@preview/modernpro-cv:1.0.1": * +#import "@preview/modernpro-cv:1.0.2": * +#import "@preview/fontawesome:0.5.0": * #show: cv-single.with( font-type: "PT Serif", continue-header: "false", - name: "", - address: ""," + name: [], + address: [], lastupdated: "true", pagecount: "true", date: "2024-07-03", contacts: ( - (text: "08856", link: ""), - (text: "example.com", link: "https://www.example.com"), - (text: "github.com", link: "https://www.github.com"), - (text: "123@example.com", link: "mailto:123@example.com"), + (text: [#fa-icon("location-dot") UK]), + (text: [#fa-icon("mobile") 123-456-789], link: "tel:123-456-789"), + (text: [#fa-icon("link") example.com], link: "https://www.example.com"), ) ) ``` @@ -80,7 +80,8 @@ If you want to use the single column version, you create a new `.typ` file and c The double column version is similar to the single column version. However, you need to add contents to the specific `left` and `right` sections. ```Typst -#import "@preview/modernpro-cv:1.0.1": * +#import "@preview/modernpro-cv:1.0.2": * +#import "@preview/fontawesome:0.5.0": * #show: cv-double( font-type: "PT Sans", @@ -91,10 +92,9 @@ The double column version is similar to the single column version. However, you pagecount: "true", date: "2024-07-03", contacts: ( - (text: "08856", link: ""), - (text: "example.com", link: "https://www.example.com"), - (text: "github.com", link: "https://www.github.com"), - (text: "123@example.com", link: "mailto:123@example.com"), + (text: [#fa-icon("location-dot") UK]), + (text: [#fa-icon("mobile") 123-456-789], link: "tel:123-456-789"), + (text: [#fa-icon("link") example.com], link: "https://www.example.com"), ), left: [ // contents for the left column diff --git a/example_double.typ b/example_double.typ index faa3406..08cf8a6 100644 --- a/example_double.typ +++ b/example_double.typ @@ -1,5 +1,5 @@ #import "@local/modernpro-cv:1.0.0": * - +#import "@preview/fontawesome:0.5.0": * #show: cv-double( font-type: "PT Sans", @@ -10,10 +10,9 @@ pagecount: "true", date: "2024-07-03", contacts: ( - (text: "08856", link: ""), - (text: "example.com", link: "https://www.example.com"), - (text: "github.com", link: "https://www.github.com"), - (text: "123@example.com", link: "mailto:123@example.com"), + (text: [#fa-icon("location-dot") UK]), + (text: [#fa-icon("mobile") 123-456-789], link: "tel:123-456-789"), + (text: [#fa-icon("link") example.com], link: "https://www.example.com"), ), left: [ #section[about] diff --git a/example_single.typ b/example_single.typ index 6fdc4d7..0451a7d 100644 --- a/example_single.typ +++ b/example_single.typ @@ -1,21 +1,23 @@ // #import "@local/modernpro-cv:1.0.0": * #import "modernpro-cv.typ": * +#import "@preview/fontawesome:0.5.0": * #show: cv-single.with( font-type: "PT Serif", continue-header: "false", name: [#lorem(2)], //name:"" or name:[] - address: [], + address: [UK], lastupdated: "true", pagecount: "true", date: "2024-07-03", contacts: ( - (text: "08856", link: ""), - (text: "example.com", link: "https://www.example.com"), - (text: "github.com", link: "https://www.github.com"), - (text: "123@example.com", link: "mailto:123@example.com"), - ) + (text: [#fa-icon("location-dot") UK]), + (text: [#fa-icon("mobile") 123-456-789], link: "tel:123-456-789"), + (text: [#fa-icon("link") example.com], link: "https://www.example.com"), + (text: [#fa-icon("github") github], link: "https://github.com/"), + (text: [#fa-icon("envelope") example\@example.com], link: "mailto:example@example.com"), + ), ) // about diff --git a/modernpro-cv.typ b/modernpro-cv.typ index bed75f8..45f19f8 100644 --- a/modernpro-cv.typ +++ b/modernpro-cv.typ @@ -4,8 +4,8 @@ // Copyright (c) 2024 // Author: Jiaxin Peng // License: MIT -// Version: 1.0.1 -// Date: 2024-08-29 +// Version: 1.0.2 +// Date: 2024-10-21 // Email: jiaxin.peng@outlook.com /////////////////////////////// @@ -230,7 +230,7 @@ )[#align(center, [#name])] // address if address != none { - v(2pt) + v(3pt) text( 11pt, fill: primary-colour, @@ -258,7 +258,7 @@ )[#align(center, [#name])] // address if address != none { - v(2pt) + v(3pt) text( 11pt, fill: primary-colour, @@ -332,7 +332,7 @@ )[#align(center, [#name])] // address if address != none { - v(2pt) + v(3pt) text( 11pt, fill: primary-colour, @@ -366,7 +366,7 @@ )[#align(center, [#name])] // address if address != none { - v(2pt) + v(3pt) text( 11pt, fill: primary-colour, diff --git a/template/cv-double.pdf b/template/cv-double.pdf new file mode 100644 index 0000000..ab911b2 Binary files /dev/null and b/template/cv-double.pdf differ diff --git a/template/cv-double.typ b/template/cv-double.typ index 03b67db..9671d03 100644 --- a/template/cv-double.typ +++ b/template/cv-double.typ @@ -1,4 +1,6 @@ -#import "@preview/modernpro-cv:1.0.1": * +#import "@preview/modernpro-cv:1.0.2": * + +#import "@preview/fontawesome:0.5.0": * #show: cv-double( font-type: "PT Sans", @@ -7,10 +9,11 @@ address: [#lorem(4)], lastupdated: "true", pagecount: "true", - date: "2024-07-03", + date: [2024-07-03], contacts: ( - (text: "08856", link: ""), - (text: "example.com", link: "https://www.example.com"), + (text: [#fa-icon("location-dot") UK]), + (text: [#fa-icon("mobile") 123-456-789], link: "tel:123-456-789"), + (text: [#fa-icon("link") example.com], link: "https://www.example.com"), ), left: [ #section[about] diff --git a/template/cv-single.pdf b/template/cv-single.pdf new file mode 100644 index 0000000..2b4bb9c Binary files /dev/null and b/template/cv-single.pdf differ diff --git a/template/cv-single.typ b/template/cv-single.typ index 8975015..7b16921 100644 --- a/template/cv-single.typ +++ b/template/cv-single.typ @@ -1,18 +1,19 @@ -#import "@preview/modernpro-cv:1.0.1": * +#import "@preview/modernpro-cv:1.0.2": * + +#import "@preview/fontawesome:0.5.0": * #show: cv-single.with( font-type: "PT Serif", continue-header: "false", - name: "John Doe", - address: "123 Street, City, Country", + name: [John Doe], + address: [123 Street, City, Country], lastupdated: "true", pagecount: "true", - date: "2024-07-03", + date: [2024-07-03], contacts: ( - (text: "08856", link: ""), - (text: "example.com", link: "https://www.example.com"), - (text: "github.com", link: "https://www.github.com"), - (text: "123@example.com", link: "mailto:123@example.com"), + (text: [#fa-icon("location-dot") UK]), + (text: [#fa-icon("mobile") 123-456-789], link: "tel:123-456-789"), + (text: [#fa-icon("link") example.com], link: "https://www.example.com"), ), ) diff --git a/typst.toml b/typst.toml index 79e284d..6ed6a57 100755 --- a/typst.toml +++ b/typst.toml @@ -1,6 +1,6 @@ [package] name = "modernpro-cv" -version = "1.0.1" +version = "1.0.2" entrypoint = "modernpro-cv.typ" authors = [ "jxpeng98",] repository = "https://github.com/jxpeng98/Typst-CV-Resume"