Skip to content

Commit

Permalink
working resume, remove all react mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
vitormv committed Aug 17, 2023
1 parent f028fa4 commit a18cba3
Show file tree
Hide file tree
Showing 12 changed files with 772 additions and 18 deletions.
4 changes: 1 addition & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
},
"eslint.validate": [
"javascript",
"javascriptreact",
"astro", // Enable .astro
"typescript", // Enable .ts
"typescriptreact" // Enable .tsx
"typescript" // Enable .ts
]
}
4 changes: 2 additions & 2 deletions cli/export-pdf-resume.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'path';
import puppeteer from 'puppeteer';
import tasuku from 'tasuku';

const sourceUrl = 'http://localhost:8092/resume';
const sourceUrl = 'http://localhost:8081/resume';
const targetPdfPath = path.join('public', 'vitor-mello-resume.pdf');

async function exportResumeAsPdf(task) {
Expand All @@ -30,7 +30,7 @@ async function exportResumeAsPdf(task) {
footerTemplate: `
<div style="width: 100%; font-style: italic; font-size: 9px; padding: 0; color: #bbb; font-family: 'Lora', serif; position: relative;">
<div style="position: absolute; right: 9mm; bottom: 5px;">
Vitor Mello; page <span class="pageNumber"></span> of <span class="totalPages"></span>.
Vitor Mello - Senior Full Stack Engineer - page <span class="pageNumber"></span> of <span class="totalPages"></span>.
</div>
</div>
`,
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"preview": "astro preview --port 8081",
"lint": "yarn lint:js && yarn lint:css",
"lint:js": "eslint --cache --cache-location node_modules/.cache/eslint/ .",
"lint:css": "stylelint \"src/**/*.{css,scss,sass}\"",
"lint:css:fix": "stylelint --fix \"src/**/*.{css,scss,sass}\"",
"export": "yarn build && next export",
"resume": "yarn export && concurrently --raw --kill-others --success first npm:serve npm:resume:export",
"resume:export": "node --trace-warnings -r esm cli/export-pdf-resume.js"
"resume": "yarn build && concurrently --raw --kill-others --success first npm:preview npm:resume:export",
"resume:export": "node --trace-warnings cli/export-pdf-resume.mjs"
},
"dependencies": {
"@astrojs/tailwind": "^4.0.0",
Expand Down
Binary file modified public/vitor-mello-resume.pdf
Binary file not shown.

0 comments on commit a18cba3

Please sign in to comment.