From 6bc2819172e7fe916a70214aeb396a66f927fc02 Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Sun, 22 Dec 2024 23:31:29 +0100 Subject: [PATCH] improved README banner --- README.md | 8 +- gallery.bash | 5 +- gallery/readme_banner.typ | 6 +- gallery/readme_banner_default.svg | 679 ++++++++++++++++++ ...dme_banner.svg => readme_banner_light.svg} | 0 5 files changed, 690 insertions(+), 8 deletions(-) create mode 100644 gallery/readme_banner_default.svg rename gallery/{readme_banner.svg => readme_banner_light.svg} (100%) diff --git a/README.md b/README.md index a4afc72..c5c1c3f 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ + +

- - - Banner + + + Banner

diff --git a/gallery.bash b/gallery.bash index cc3cdf6..7633ce6 100644 --- a/gallery.bash +++ b/gallery.bash @@ -1,4 +1,5 @@ #!/bin/bash -typst c --root=. --input dark=false gallery/readme_banner.typ gallery/readme_banner.svg -typst c --root=. --input dark=true gallery/readme_banner.typ gallery/readme_banner_dark.svg \ No newline at end of file +typst c --root=. --input theme=default gallery/readme_banner.typ gallery/readme_banner_default.svg +typst c --root=. --input theme=light gallery/readme_banner.typ gallery/readme_banner_light.svg +typst c --root=. --input theme=dark gallery/readme_banner.typ gallery/readme_banner_dark.svg \ No newline at end of file diff --git a/gallery/readme_banner.typ b/gallery/readme_banner.typ index 7f283de..6296018 100644 --- a/gallery/readme_banner.typ +++ b/gallery/readme_banner.typ @@ -1,18 +1,18 @@ #import "/src/lib.typ": * -#let dark = sys.inputs.at("dark", default: "false") == "true" +#let theme = sys.inputs.at("theme", default: "default") #set page( width: auto, height: auto, margin: 1cm, - fill: none + fill: if theme == "default" {white} else {none} ) #set text( size: 12pt, font: "Source Sans 3", - fill: if dark {white} else {black} + fill: if theme == "dark" {white} else {black} ) #let hex-abc = "0123456789abcdef" diff --git a/gallery/readme_banner_default.svg b/gallery/readme_banner_default.svg new file mode 100644 index 0000000..78df824 --- /dev/null +++ b/gallery/readme_banner_default.svg @@ -0,0 +1,679 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gallery/readme_banner.svg b/gallery/readme_banner_light.svg similarity index 100% rename from gallery/readme_banner.svg rename to gallery/readme_banner_light.svg