diff --git a/README.md b/README.md index dae718e..5d798b9 100644 --- a/README.md +++ b/README.md @@ -162,12 +162,12 @@ Colors Troubleshooting --------------- -> [!Caution] +> [!CAUTION] > You need the dev script running before running the pdf build script --- -> [!Warning] +> [!WARNING] > `sh: line 1: chromium: command not found` > > [chromium](https://chromium.org) is used for pdf exports diff --git a/package.json b/package.json index 5ed6659..d3e66ae 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "dev": "vite dev", "build": "npm run build:private", "build:vite": "vite build", + "build:screenshot": "chromium --headless --disable-gpu --virtual-time-budget=2000 --screenshot --clip=0,0,780,790 http://localhost:5173", "build:sample": "chromium --headless --disable-gpu --no-pdf-header-footer --print-to-pdf=sample.pdf http://localhost:5173", "build:private": "chromium --headless --disable-gpu --no-pdf-header-footer --print-to-pdf=private.pdf http://localhost:5173/private", "deploy": "vite build --base=/jsonresume-theme-legacy", diff --git a/sample.pdf b/sample.pdf index 34edace..3e65fe7 100644 Binary files a/sample.pdf and b/sample.pdf differ diff --git a/screenshot.png b/screenshot.png index 24e5fdc..eae6093 100644 Binary files a/screenshot.png and b/screenshot.png differ diff --git a/src/components/basics.hbs b/src/components/basics.hbs index 858e4aa..3a7dd0a 100644 --- a/src/components/basics.hbs +++ b/src/components/basics.hbs @@ -11,7 +11,7 @@ -

{{ label }}

+

{{{ label }}}

{{> components/hr.hbs size="lg" }}
diff --git a/src/components/interests.hbs b/src/components/interests.hbs index 1992c57..8273031 100644 --- a/src/components/interests.hbs +++ b/src/components/interests.hbs @@ -10,9 +10,7 @@
{{#each interests}}
- {{#if name}} -

{{ name }}

- {{/if}} +

{{ name }}

{{#if keywords.length}}
    {{#each keywords}} diff --git a/src/components/skills.hbs b/src/components/skills.hbs index db3d6ed..b5e6586 100644 --- a/src/components/skills.hbs +++ b/src/components/skills.hbs @@ -1,4 +1,4 @@ -{{> components/hr.hbs size="md" etc="do-break-after" }} +{{> components/hr.hbs size="md" etc="auto-break-before auto-break-after" }} {{#if skills.length}}
    diff --git a/src/components/work.hbs b/src/components/work.hbs index 67be048..ea8ff09 100644 --- a/src/components/work.hbs +++ b/src/components/work.hbs @@ -1,5 +1,5 @@ {{#if work.length}} -{{> components/hr.hbs size="md" etc="auto-break-before" }} +{{> components/hr.hbs size="md" etc="do-break-before" }}

    @@ -45,6 +45,9 @@ {{ URL url }} {{/if}} + {{#if location}} + {{ location }} + {{/if}}
    {{#if summary}}
    {{ summary }}
    diff --git a/src/layouts/main.hbs b/src/layouts/main.hbs index a37e429..2f640a8 100644 --- a/src/layouts/main.hbs +++ b/src/layouts/main.hbs @@ -25,9 +25,9 @@
    {{> components/dark.hbs }} {{> components/basics.hbs }} + {{> components/interests.hbs }} {{> components/skills.hbs }} {{> components/languages.hbs }} - {{> components/interests.hbs }} {{> components/work.hbs }} {{> components/projects.hbs }} {{> components/volunteer.hbs }} diff --git a/src/styles/legacy.css b/src/styles/legacy.css index 264e830..c3c0f9d 100644 --- a/src/styles/legacy.css +++ b/src/styles/legacy.css @@ -193,6 +193,13 @@ section.main-summary { } } +section.work-item { + em.location { + position: absolute; + padding-top: 10px; + font-size: 12px; + } +} section#skills { border-radius: var(--brm); display: grid; diff --git a/src/styles/main.css b/src/styles/main.css index 2b1c955..981d932 100644 --- a/src/styles/main.css +++ b/src/styles/main.css @@ -2,6 +2,39 @@ @tailwind components; @tailwind utilities; +@media print, (width: 780px) { + * { + transition: none !important; + animation: none !important; + } + :root { + --bg: white !important; + --fg: var(--wk5) !important; + --f2: var(--wk6) !important; + --f3: var(--wk7) !important; + --f4: var(--wk8) !important; + --f5: var(--wk9) !important; + --ic: var(--c05) !important; + --ix: var(--c05) !important; + --iz: var(--c13) !important; + } + #scheme-toggle { display: none !important } + html { + background: white !important; + color-scheme: light !important; + height: 100% !important; + } + body { + min-height: 100% !important; + margin: 0 !important; + background: white !important; + } + main { + min-height: 100% !important; + background: white !important; + } +} + :root { --brx: 18px; --brl: 14px; @@ -268,13 +301,11 @@ section { } } +#header h2 { + text-align: center; +} + @page { size: A4; margin: 0; } - -@media print { - #scheme-toggle { - display: none !important; - } -}