Skip to content

Commit

Permalink
5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
metaory committed Jan 10, 2025
1 parent 50533c3 commit 01dd9f2
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Binary file modified sample.pdf
Binary file not shown.
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/basics.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<span>
<img src="{{ image }}" width="200">
</span>
<h2>{{ label }}</h2>
<h2>{{{ label }}}</h2>
</div>
{{> components/hr.hbs size="lg" }}
<section class="section contacts">
Expand Down
4 changes: 1 addition & 3 deletions src/components/interests.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
<section id="interests">
{{#each interests}}
<div class="item">
{{#if name}}
<h4>{{ name }}</h4>
{{/if}}
<h3>{{ name }}</h3>
{{#if keywords.length}}
<ul class="keywords">
{{#each keywords}}
Expand Down
2 changes: 1 addition & 1 deletion src/components/skills.hbs
Original file line number Diff line number Diff line change
@@ -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}}
<section class="section">
<header>
Expand Down
5 changes: 4 additions & 1 deletion src/components/work.hbs
Original file line number Diff line number Diff line change
@@ -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" }}
<section class="section">
<header class="">
<h2 class="section-title">
Expand Down Expand Up @@ -45,6 +45,9 @@
<a target="_blank" href="{{ url }}">{{ URL url }}</a>
</span>
{{/if}}
{{#if location}}
<em class="location">{{ location }}</em>
{{/if}}
<div class="item">
{{#if summary}}
<div class="summary">{{ summary }}</div>
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/main.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
<main>
{{> 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 }}
Expand Down
7 changes: 7 additions & 0 deletions src/styles/legacy.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
43 changes: 37 additions & 6 deletions src/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -268,13 +301,11 @@ section {
}
}

#header h2 {
text-align: center;
}

@page {
size: A4;
margin: 0;
}

@media print {
#scheme-toggle {
display: none !important;
}
}

0 comments on commit 01dd9f2

Please sign in to comment.