feat: add resume.pdf button

This commit is contained in:
2024-04-08 14:22:36 +02:00
parent fbcd643223
commit cc6ea4ed22
12 changed files with 107 additions and 40 deletions

View File

@@ -1,3 +1,5 @@
import { writable } from "svelte/store";
// function to turn css rgb() strings to hex
export function rgbToHex(rgb: string) {
let hex = rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
@@ -12,3 +14,7 @@ export function rgbToHex(rgb: string) {
.join("")
);
}
export const colors = writable({
background: "#f0f0f0",
});