mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-23 00:20:40 +07:00
enhance resume pdf
This commit is contained in:
1 parent
e6dc99ec85
commit
2573977508
21 files changed
+1064
-389
No files matched your search
@@ -66,13 +66,13 @@ Personal engineering portfolio — multi-page SPA built with React + TypeScript
|
||||
|
||||
## Data Layer
|
||||
|
||||
- `src/data/profile.ts` — name, title, bio, links, social handles (`githubHandle`, `linkedinHandle`) — the Contact cards render `@{profile.githubHandle}`, never a literal
|
||||
- `src/data/profile.ts` — name, title, bio, links, social handles (`githubHandle`, `linkedinHandle`, `telegramHandle`), messaging URLs (`telegramUrl`, `zaloUrl`) — the Contact cards render `@{profile.githubHandle}`, never a literal
|
||||
- `src/data/skills.ts` — skill groups → skills
|
||||
- `src/data/experience.ts` — work history entries; optional `variant: 'current' | 'gap'` selects the timeline decoration (live node / career break)
|
||||
- `src/data/projects.ts` — project cards with categories
|
||||
- `src/data/resume.ts` — resume availability, supported languages, URL generation
|
||||
- `src/data/navigation.ts` — `navPaths` (bar + sheet order: Home, About, Experience, Projects, Contact, Philosophy), `footerPaths`
|
||||
- `src/data/social.ts` — social tiles as `{id, href, external}`; `email` is a `mailto:` link with `external: false`, so it renders no `target`/`rel`
|
||||
- `src/data/social.ts` — social tiles as `{id, href, external}` (github, linkedin, email, telegram, zalo); `email` is a `mailto:` link with `external: false`, so it renders no `target`/`rel`
|
||||
- `src/i18n/strings.ts` — every chrome string as `{en, vi}`; the sheet's group labels, the Mode options, the language names (`langEn` / `langVi`, each named in its own language) and the language action labels (`langSwitch`, `switchTo`) live in `strings.nav`, the social `aria-label`s in `strings.social`
|
||||
- `src/data/site.ts` — `siteUrl` (the canonical origin) and `siteName`; every absolute URL the site publishes — canonical, Open Graph, JSON-LD, `robots.txt`, `sitemap.xml` — derives from it
|
||||
- `src/i18n/field.ts` — `field(lang, value, valueEn)` is a plain function, not a hook: `lang` is read once at component top level with `useLanguage()`, so bilingual selection is legal inside `.map()` callbacks. Convention: `value` is Vietnamese, `valueEn` English
|
||||
@@ -84,7 +84,7 @@ src/
|
||||
components/
|
||||
layout/ — Layout.tsx, Navigation.tsx, MobileMenu.tsx, Footer.tsx, ThemePaletteMenu.tsx
|
||||
sections/ — Hero, About, Expertise, Experience, Projects, Contact, HeroParticles, DownloadResume
|
||||
ui/ — Badge, Button, LanguageIcon, SectionHeading, SocialLinks, Tag, Typewriter, InView, RollingTextLink, BackToTop
|
||||
ui/ — Badge, Button, ContactLinks, LanguageIcon, SectionHeading, SocialLinks, Tag, Typewriter, InView, RollingTextLink, BackToTop, icons
|
||||
data/ — profile, skills, experience, projects, resume, palettes, navigation, social, site (TS modules)
|
||||
hooks/ — useTheme.tsx, useLanguage.tsx, useClickOutside.ts
|
||||
pages/ — HomePage, AboutPage, ExperiencePage, ProjectsListPage, ProjectDetailPage, PhilosophyPage, ContactPage
|
||||
@@ -107,6 +107,8 @@ src/
|
||||
|
||||
- `public/fonts/` — Source Sans 3 woff2 (Regular, Medium, Semibold, Bold); used by the resume generator only — the SPA renders `system-ui`
|
||||
- `public/resume-template.html` — HTML template for resume PDF generation
|
||||
- `public/resume-logos/` — official company logo SVGs (Lazada, SAP from Wikimedia Commons), embedded in the resume timeline via `ExperienceEntry.logo`
|
||||
- `public/resume-qr/` — owner-supplied QR images (`telegram.png`, `zalo.png`) embedded in the resume header via `resumeQr` in `src/data/resume.ts`; private assets, NOT committed — a missing file prints a warning and the QR is skipped
|
||||
- `public/profile-photo.webp` — profile photo
|
||||
- `public/robots.txt` — allow-all crawler rules plus the `Sitemap:` pointer to the canonical origin
|
||||
|
||||
@@ -167,7 +169,7 @@ All specification documents are in `docs/design/`:
|
||||
| `spec-v2.md` | v2 index — overview, implementation order, feature list |
|
||||
| `specs/ui/spec-ui-*.md` | UI specs per section (hero, about, expertise, etc.) |
|
||||
| `specs/v2/spec-v2-*.md` | v2 feature specs (resume, seo, blog, analytics, testing, cicd) |
|
||||
| `specs/v3/spec-v3-*.md` | v3 feature specs (theme colors, theme switch, theme palette switch, palette reference, UI enhancements, mobile navigation, nav & CTA enhancements, nav swatch & hamburger, typography, i18n, resume improvements, review fixes) |
|
||||
| `specs/v3/spec-v3-*.md` | v3 feature specs (theme colors, theme switch, theme palette switch, palette reference, UI enhancements, mobile navigation, nav & CTA enhancements, nav swatch & hamburger, typography, i18n, resume improvements, resume redesign, review fixes) |
|
||||
|
||||
Read `spec.md` first for product context. Read `spec-v2.md` for current feature scope.
|
||||
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
# Specification — v3 Resume PDF Redesign
|
||||
|
||||
> **Document:** `spec-v3-resume-redesign.md`
|
||||
> **Version:** 1.6.0 (owner follow-up 6: website icon sync DONE; resume QR block wired, awaiting owner's QR images)
|
||||
> **Parent:** `spec-v3-resume-improvements.md`
|
||||
> **Priority:** P1
|
||||
> **Status:** DONE (visual verification by owner pending)
|
||||
|
||||
---
|
||||
|
||||
## Problem
|
||||
|
||||
Review of `scripts/generate-resume.ts` + `public/resume-template.html` (2026-10-19) found:
|
||||
|
||||
| # | Issue | Evidence |
|
||||
|---|-------|----------|
|
||||
| 1 | PDF margins were **0mm** — `@page { margin: 20mm 18mm }` never applied: Playwright `page.pdf` defaults `preferCSSPageSize = false`, margins default to 0 (`playwright-core@1.64` `crPdf.ts`: `marginTop = convert(margin.top) \|\| 0`) | verified in `node_modules/.pnpm/playwright-core@1.64.0/.../coreBundle.js` |
|
||||
| 2 | `.avoid-break` emitted by every renderer but **no CSS rule defined**; no `orphans`/`widows`, no `page-break-*` anywhere in the template | grep: 0 matches |
|
||||
| 3 | ~56 lines of dead CSS `.achievement*` — `achievements` dropped from `experience.ts` 2026-10-16 | old template lines 127-182 |
|
||||
| 4 | `{{ABOUT_ME_LABEL}}` replaced by the script but absent from the template — dead placeholder | old template body |
|
||||
| 5 | `page.pdf` `title`/`author` options **do not exist in Playwright's API** — silently ignored dead options; PDF metadata was never set | `tsc` excess-property check against `PDFPageOptions` |
|
||||
| 6 | Contact printed full URLs (`https://github.com/dong-nz`); `githubHandle`/`linkedinHandle` unused; no clickable links in the PDF | old template lines 264-268 |
|
||||
| 7 | `variant: 'current' \| 'gap'` unused by the resume — career break rendered identically to a real job | `types/index.ts` |
|
||||
| 8 | No brand identity: resume palette was generic warm-gray; site accent (light mode) is `#b04138` | `src/index.css` |
|
||||
| 9 | `siteUrl` (`cv.vugado.com`) never linked from the PDF | `src/data/site.ts` |
|
||||
| 10 | `build:resume-all` launched Chromium twice | `package.json` |
|
||||
|
||||
## Goal
|
||||
|
||||
Modern, elegant, brand-consistent A4 resume: correct print geometry, timeline experience, accent system mirroring the site's light-mode red palette, clickable contact links, single-launch bilingual generation. Open-to-work is excluded from the PDF (owner decision 2026-10-19).
|
||||
|
||||
## Implementation
|
||||
|
||||
### `public/resume-template.html` — full rewrite
|
||||
|
||||
- Brand tokens in `:root`: `--ink #151914`, `--muted #4b4f4a`, `--meta #756b62`, `--accent #b04138`, `--accent-soft rgba(176,65,56,.35)`, `--hairline #d9d6d0`, `--paper #ffffff` — mirrors `src/index.css` light-mode red palette.
|
||||
- `@page { size: A4; margin: 16mm 15mm 14mm 15mm }` — now actually applied (see script).
|
||||
- Print hygiene: `p, li { orphans: 2; widows: 2 }`, `.avoid-break { break-inside: avoid }`, `.section-title { break-after: avoid }`.
|
||||
- Header: 72px circular photo with 2px accent ring, `object-position: center top` — the 3:4 portrait is anchored to the frame top so the head is never cropped (overflow cropped from the bottom, i.e. shoulders); `.header-info` offset 12px from the photo; name 20pt/700/`-0.01em`; title 11pt accent; contact as a two-column grid (`12px 1fr`, 8px column gap) — lucide stroke icons (mail, globe, github, linkedin, `currentColor`, 2px round joins, matching the site's line-art language icons) in the left column, full clickable addresses left-aligned in the right column, order email → website → github → linkedin. Text labels removed. Right end of the header: `.header-qr` block (`margin-left: auto`, 18px gap) — up to two 18mm QR images from `public/resume-qr/` (Telegram, Zalo) with 7pt uppercase `--meta` captions; assets are owner-exported from the apps, private (not committed); a missing file warns and skips (build never blocks).
|
||||
- Summary: bio directly under header, no section title (modern convention; the dead `ABOUT_ME_LABEL` placeholder removed from the script).
|
||||
- Experience: `.timeline` 2px hairline + node dots — filled ink for jobs, hollow `--meta` ring + italic for `variant: 'gap'`; duration pill inline right after the title (`flex-wrap`, 8px gap — no right-margin column); company line is a flex row — official company logo (`<img>` 12px, from `ExperienceEntry.logo`) + `Company · Location`; `::marker` accent bullets.
|
||||
- Timeline TL;DR: final panel on the spine — accent diamond node, `TL;DR` chip (8pt uppercase letterspaced accent) + lede text on `#f5f3ef` surface with hairline border; text imported from `src/i18n/strings.ts` (`strings.experience.tldr` / `tldrText`), the same content as the site timeline.
|
||||
- Projects: outline tech chips (accent text + `--accent-soft` border, radius 999px); metrics removed from the resume (owner decision 2026-10-19; data and site cards unchanged).
|
||||
- Skills: 2-column grid, hairline `border-top` per group, accent group titles.
|
||||
- Footer: `{{UPDATED_LABEL}}: {{UPDATED_DATE}}` only — the website link moved up into the header contact block.
|
||||
|
||||
### `scripts/generate-resume.ts` — full rewrite
|
||||
|
||||
- `--lang=all` → `['en','vi']` in **one** Chromium launch, one page, loop `page.pdf`; rejected with `--preview`.
|
||||
- `escapeHtml()` applied to every data-derived string before template injection.
|
||||
- Placeholder fill via literal `split/join` (avoids regex + `$` pitfalls of `String.replace`); **placeholder guard**: any unresolved `{{KEY}}` after fill → `console.error` + `exit(1)` before browser launch (prevents the dead-placeholder bug class recorded in `spec-v3-resume-improvements.md`).
|
||||
- `renderExperience` filters `variant === 'current'` — the open-to-work entry is excluded from the resume PDF entirely (owner decision 2026-10-19; site timeline untouched). The earlier status-pill design was removed: `renderStatus`, `OPEN_TO_WORK` labels, and the `{{STATUS}}` placeholder no longer exist. `renderTldr` reads the shared `strings` module — no duplicated TL;DR copy.
|
||||
- `resolveField(en, vi, lang)` now takes the language explicitly (script handles multiple languages per run).
|
||||
- `page.pdf`: added `preferCSSPageSize: true` (activates `@page`) and `tagged: true` (tagged/accessibility PDF); removed the non-existent `title`/`author` options — PDF Title metadata now comes from the HTML `<title>` (`Resume - {NAME}` per language).
|
||||
- `mkdirSync(dirname(outputPath), { recursive: true })` before writing.
|
||||
|
||||
### `package.json`
|
||||
|
||||
- `build:resume-all` → `pnpm tsx scripts/generate-resume.ts --lang=all` (single launch).
|
||||
|
||||
## Affected Files
|
||||
|
||||
| File | Action |
|
||||
|---|---|
|
||||
| `public/resume-template.html` | Rewritten (302 → ~300 lines, all placeholders re-keyed) |
|
||||
| `scripts/generate-resume.ts` | Rewritten (~240 lines) |
|
||||
| `package.json` | 1 line (`build:resume-all`) |
|
||||
| `AGENTS.md` | Design Specs table: + "resume redesign" |
|
||||
| `docs/design/specs/v3/spec-v3-resume-redesign.md` | New (this file) |
|
||||
| `src/data/*`, site components | **Unchanged** — resume only reads existing data (`variant`, handles, `siteUrl`) |
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
| # | Requirement | Status |
|
||||
|---|-------------|--------|
|
||||
| 1 | `pnpm build:resume-all` generates `dist/resume.pdf` + `dist/resume-vi.pdf` in one Chromium launch | ✅ (1.5s, both files written) |
|
||||
| 2 | `@page` margin applied via `preferCSSPageSize: true` | ✅ option set; visual ✅ pending owner check |
|
||||
| 3 | No unresolved `{{PLACEHOLDER}}` reaches the renderer | ✅ guard exits 1 on leftover; run passed |
|
||||
| 4 | Contact rows render as icon + full clickable address, icons and values column-aligned, order email → website → github → linkedin | ✅ grid `12px 1fr`, lucide inline SVGs |
|
||||
| 5 | Open-to-work fully excluded from the resume — no pill, no experience entry | ✅ filter verified; pill removed 2026-10-19 |
|
||||
| 6 | Gap entry renders hollow node + italic | ✅ `.gap` variant class emitted from data |
|
||||
| 7 | Company logos render inline for entries with `logo`; entries without logo render unchanged; missing asset file fails the build with a clear error | ✅ logo loader validates, alt="" decorative |
|
||||
| 8 | `pnpm lint` introduces no new warnings | ✅ (only pre-existing warnings in unrelated files) |
|
||||
| 9 | Script type-checks clean | ✅ via throwaway tsconfig (bundler resolution + `@/*` paths); `scripts/` is **not** covered by `tsc -b` — known gap, see Tradeoffs |
|
||||
| 10 | Tagged PDF enabled | ✅ `tagged: true` accepted by Playwright 1.64 types |
|
||||
|
||||
## Tradeoffs
|
||||
|
||||
| Aspect | Detail |
|
||||
|---|---|
|
||||
| PDF author metadata | `printToPDF` has no author parameter; Playwright has no `author` option — author metadata is not set. Title comes from HTML `<title>`. |
|
||||
| Open-to-work | The `variant: 'current'` entry is excluded from the PDF entirely (owner decision); full text remains on the site timeline. |
|
||||
| ATS | Single-column, real bullets, text-first markup kept — chips/pills are visual only, extraction-safe. |
|
||||
| `scripts/` type coverage | `tsconfig.node.json` includes only `vite.config.ts`; the resume script is type-checked only ad hoc. Left as-is (config change out of scope). |
|
||||
| Palette | Resume is locked to the light-mode red palette (print default); no `--palette=` flag. |
|
||||
|
||||
## Progress
|
||||
|
||||
- [x] Template rewrite (tokens, header, timeline, chips, skills grid, footer, print hygiene)
|
||||
- [x] Script rewrite (renderers, escapeHtml, split/join fill, placeholder guard, `--lang=all`, `preferCSSPageSize`, `tagged`, mkdir)
|
||||
- [x] `package.json` `build:resume-all` → `--lang=all`
|
||||
- [x] `pnpm lint` — no new warnings
|
||||
- [x] `pnpm build:resume-all` — both PDFs generated, guard passed
|
||||
- [x] Owner follow-up (2026-10-19): open-to-work pill removed end-to-end; photo `object-position: center top`; both PDFs regenerated
|
||||
- [x] Owner follow-up 2 (2026-10-19): contact stacked one full URL per line + website line added; duration pill inline after title; footer reduced to date only; both PDFs regenerated
|
||||
- [x] Owner follow-up 3 (2026-10-19): contact labelled + reordered (email, website, github, linkedin); TL;DR panel added to resume timeline (shared strings); project metrics removed from resume
|
||||
- [x] Owner follow-up 4 (2026-10-19): text labels replaced with lucide mail/globe/github/linkedin line icons; contact re-aligned as a two-column grid; label plumbing removed from script
|
||||
- [x] Owner follow-up 5 (2026-10-19): company logos in resume timeline — `public/resume-logos/lazada.svg` (Commons "Lazada (2019)", wordmark + heart) + `sap.svg` (Commons "SAP-Logo", blue box wordmark), data-driven via new `ExperienceEntry.logo?: string` (`"lazada"`, `"sap"`); site components NOT touched — owner reviews resume first, site sync is a separate follow-up
|
||||
- [x] Owner follow-up 6a (2026-10-19): website icon sync — new shared `src/components/ui/icons.tsx` (lucide stroke mail/github/linkedin, `currentColor`, 2px round joins — same set as the resume header); `SocialLinks.tsx` tiles (20px) + `Contact.tsx` cards (24px) now import it; filled github octocat / linkedin square marks removed. Resume QR (telegram/zalo) = follow-up 6b, pending owner inputs; website QR gated on owner review
|
||||
- [x] Owner follow-up 6b (2026-10-19): resume QR block wired end-to-end — `resumeQr` descriptors in `src/data/resume.ts`, loader + `renderQr` in the script, `{{QR_CODES}}` placeholder + `.header-qr` CSS in the template; dummy-PNG pipeline test then real assets landed: owner supplied `public/resume-qr/telegram.jpg` + `zalo.jpg` (owner also flipped the data to `.jpg`); payloads decoded locally (pyzbar): `https://t.me/dongdn`, `https://zaloapp.com/qr/p/14ic4cmkuegf`. Both `resume.pdf` and `resume-vi.pdf` now rebuilt with the QR block embedded (verified: 630×630 + 512×512 JPEG XObjects in both). Website QR display gated on owner review
|
||||
- [x] Owner follow-up 7 (2026-10-19): (a) **contact page icons missed in 6a** — `src/pages/ContactPage.tsx` is a third copy of the contact cards with its own inline fill SVGs; now imports the shared `icons.tsx` set too (bundle chunk 3.52 → 2.04 kB proves the inline paths are gone); (b) resume photo 64 → 72px; (c) `.header-info` `margin-left: 12px`; (d) QR gap 10 → 18px. `resume.pdf` rebuilt with all four; `resume-vi.pdf` blocked by owner's locked viewer (EBUSY ×2) — re-run `pnpm build:resume-all` after closing it. NOTE: while a `dist/resume*.pdf` is open in a viewer, `pnpm build` also fails (vite `emptyDir` EPERM on the locked PDF)
|
||||
- [x] Owner follow-up 8 (2026-10-19): Telegram + Zalo added to website social links — `SocialId` extended (`telegram`, `zalo`), `Profile.telegramUrl` (`https://t.me/dongdn`) + `Profile.zaloUrl` (`https://zaloapp.com/qr/p/14ic4cmkuegf`, same target as the resume QR), two entries appended in `social.ts`, aria labels en/vi in `strings.social.aria`; new `TelegramIcon` + `ZaloIcon` in `icons.tsx` as **simple-icons brand glyphs** (monochrome `currentColor`; lucide dropped brand icons — `lucide:telegram` 404s) — so the tiles are stroke lucide (mail/github/linkedin) + filled brand glyphs (telegram/zalo). Hero, footer, and the mobile sheet pick up all 5 tiles automatically via `SocialLinks`. Verified: `tsc -b` pass, bundle contains both hrefs + both aria labels exactly once, lint unchanged
|
||||
- [x] Throwaway strict typecheck of `scripts/generate-resume.ts` — clean (temp config removed)
|
||||
- [x] Owner follow-up 9 (2026-10-19): Telegram + Zalo cards added to contact — new shared `src/components/ui/ContactLinks.tsx` renders all 5 cards (email, github, linkedin, telegram, zalo) from `profile` + `strings.contact` (new labels `telegram`/`zalo`, new `Profile.telegramHandle`); **`Contact.tsx` (98→34 lines) and `ContactPage.tsx` (83→29 lines) deduplicated** — the two hand-copied card lists (root cause of the follow-up 7 miss) are gone, both consumers render `<ContactLinks />`; Zalo card sub is `zaloapp.com/qr/p/14ic4cmkuegf` (URL minus protocol; swap to `zalo.me/<phone>` if owner supplies the number). Proof: throwaway SSR render → exactly 5 `contact-link` anchors with correct href/target/rel (mailto has none) incl. `t.me/dongdn` + `@dongdn`; `pnpm build` + sitemap clean (ContactPage chunk 2.04 → 0.53 kB), lint unchanged. Also unblocked: viewer closed → both resume PDFs rebuilt (14:34)
|
||||
- [ ] Owner visual check of `dist/resume.pdf` / `dist/resume-vi.pdf` in a real browser/PDF viewer
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
"dev": "vite",
|
||||
"build": "tsc -b && vite build && pnpm tsx scripts/generate-sitemap.ts",
|
||||
"build:resume": "pnpm tsx scripts/generate-resume.ts",
|
||||
"build:resume-all": "pnpm tsx scripts/generate-resume.ts --lang=en && pnpm tsx scripts/generate-resume.ts --lang=vi",
|
||||
"build:resume-all": "pnpm tsx scripts/generate-resume.ts --lang=all",
|
||||
"build:resume-preview": "pnpm tsx scripts/generate-resume.ts --preview",
|
||||
"lint": "oxlint",
|
||||
"sitemap": "pnpm tsx scripts/generate-sitemap.ts",
|
||||
|
||||
@@ -0,0 +1,425 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="410.28354mm"
|
||||
height="107.51025mm"
|
||||
viewBox="0 0 410.28354 107.51025"
|
||||
version="1.1"
|
||||
id="svg8"
|
||||
inkscape:version="0.92.3 (2405546, 2018-03-11)"
|
||||
sodipodi:docname="Lazada (2019) alternate.svg">
|
||||
<defs
|
||||
id="defs2">
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient953">
|
||||
<stop
|
||||
style="stop-color:#6fc4ea;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop949" />
|
||||
<stop
|
||||
style="stop-color:#bce4f5;stop-opacity:1"
|
||||
offset="1"
|
||||
id="stop951" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient935"
|
||||
inkscape:collect="always">
|
||||
<stop
|
||||
id="stop931"
|
||||
offset="0"
|
||||
style="stop-color:#f8ad1b;stop-opacity:1;" />
|
||||
<stop
|
||||
id="stop933"
|
||||
offset="1"
|
||||
style="stop-color:#fec80d;stop-opacity:1" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient921">
|
||||
<stop
|
||||
style="stop-color:#4eb745;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop917" />
|
||||
<stop
|
||||
style="stop-color:#c8db30;stop-opacity:1"
|
||||
offset="1"
|
||||
id="stop919" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient905">
|
||||
<stop
|
||||
style="stop-color:#f6a51f;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop901" />
|
||||
<stop
|
||||
style="stop-color:#ffd42a;stop-opacity:1"
|
||||
offset="1"
|
||||
id="stop903" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient905"
|
||||
id="linearGradient907"
|
||||
x1="-255.75984"
|
||||
y1="-233.08481"
|
||||
x2="86.394669"
|
||||
y2="-177.40373"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.42357423,0,0,0.42357423,-295.80831,-17.824806)" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient921"
|
||||
id="linearGradient923"
|
||||
x1="-10.753736"
|
||||
y1="-328.9754"
|
||||
x2="-35.028603"
|
||||
y2="-350.76373"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.42357423,0,0,0.42357423,-295.80831,-17.824806)" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient935"
|
||||
id="linearGradient929"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="38.123863"
|
||||
y1="-84.518074"
|
||||
x2="71.749847"
|
||||
y2="-83.43483"
|
||||
gradientTransform="matrix(0.41803401,0,0,0.42424576,-351.52509,-5.9749175)" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient953"
|
||||
id="linearGradient955"
|
||||
x1="-51.219757"
|
||||
y1="-391.34869"
|
||||
x2="-105.01648"
|
||||
y2="-389.83679"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.42357423,0,0,0.42357423,-295.80831,-17.824806)" />
|
||||
<linearGradient
|
||||
id="gradient1"
|
||||
y2="0.49999899"
|
||||
x2="1.00081"
|
||||
y1="0.49999899"
|
||||
x1="-0.00059854198"
|
||||
gradientUnits="userSpaceOnUse">
|
||||
<stop
|
||||
id="stop4"
|
||||
stop-opacity="1"
|
||||
stop-color="#ff9200"
|
||||
offset="1e-07" />
|
||||
<stop
|
||||
id="stop6"
|
||||
stop-opacity="1"
|
||||
stop-color="#f36d00"
|
||||
offset="0.29" />
|
||||
<stop
|
||||
id="stop8"
|
||||
stop-opacity="1"
|
||||
stop-color="#f4680b"
|
||||
offset="0.32" />
|
||||
<stop
|
||||
id="stop10"
|
||||
stop-opacity="1"
|
||||
stop-color="#f83c72"
|
||||
offset="0.57" />
|
||||
<stop
|
||||
id="stop12"
|
||||
stop-opacity="1"
|
||||
stop-color="#fc1cbe"
|
||||
offset="0.78" />
|
||||
<stop
|
||||
id="stop14"
|
||||
stop-opacity="1"
|
||||
stop-color="#fe08ed"
|
||||
offset="0.93" />
|
||||
<stop
|
||||
id="stop16"
|
||||
stop-opacity="1"
|
||||
stop-color="#ff00ff"
|
||||
offset="1" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="-0.00059854198"
|
||||
y1="0.49999899"
|
||||
x2="1.00081"
|
||||
y2="0.49999899"
|
||||
id="linearGradient966">
|
||||
<stop
|
||||
style="stop-color:#ffb900;stop-opacity:1"
|
||||
offset="1e-07"
|
||||
stop-color="#ff9200"
|
||||
stop-opacity="1"
|
||||
id="stop952" />
|
||||
<stop
|
||||
style="stop-color:#f38000;stop-opacity:1"
|
||||
offset="0.33755317"
|
||||
stop-color="#f36d00"
|
||||
stop-opacity="1"
|
||||
id="stop954" />
|
||||
<stop
|
||||
offset="0.56728965"
|
||||
stop-color="#f83c72"
|
||||
stop-opacity="1"
|
||||
id="stop958" />
|
||||
<stop
|
||||
offset="0.78"
|
||||
stop-color="#fc1cbe"
|
||||
stop-opacity="1"
|
||||
id="stop960" />
|
||||
<stop
|
||||
offset="0.93"
|
||||
stop-color="#fe08ed"
|
||||
stop-opacity="1"
|
||||
id="stop962" />
|
||||
<stop
|
||||
offset="1"
|
||||
stop-color="#ff00ff"
|
||||
stop-opacity="1"
|
||||
id="stop964" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient1736">
|
||||
<stop
|
||||
style="stop-color:#ed6600;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop1732" />
|
||||
<stop
|
||||
style="stop-color:#f98200;stop-opacity:1"
|
||||
offset="1"
|
||||
id="stop1734" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient1728">
|
||||
<stop
|
||||
style="stop-color:#ee0a3f;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop1724" />
|
||||
<stop
|
||||
style="stop-color:#ee0a3f;stop-opacity:0;"
|
||||
offset="1"
|
||||
id="stop1726" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#gradient1"
|
||||
id="linearGradient950"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="-0.00059854198"
|
||||
y1="0.49999899"
|
||||
x2="1.00081"
|
||||
y2="0.49999899" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient966"
|
||||
id="linearGradient948"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="-0.00059854198"
|
||||
y1="0.49999899"
|
||||
x2="66.758224"
|
||||
y2="-0.017084641" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient1728"
|
||||
id="linearGradient1730"
|
||||
x1="18.75388"
|
||||
y1="49.006153"
|
||||
x2="86.817642"
|
||||
y2="11.319839"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient1736"
|
||||
id="linearGradient1738"
|
||||
x1="41.793034"
|
||||
y1="39.348598"
|
||||
x2="75.037086"
|
||||
y2="12.568669"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient1728"
|
||||
id="linearGradient1306"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="18.75388"
|
||||
y1="49.006153"
|
||||
x2="86.817642"
|
||||
y2="11.319839" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient1736"
|
||||
id="linearGradient1308"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="41.793034"
|
||||
y1="39.348598"
|
||||
x2="75.037086"
|
||||
y2="12.568669" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="0.175"
|
||||
inkscape:cx="1312.4877"
|
||||
inkscape:cy="-247.50916"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1-5"
|
||||
showgrid="false"
|
||||
showguides="false"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="745"
|
||||
inkscape:window-x="-8"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata5">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(805.60654,100.39806)">
|
||||
<g
|
||||
id="g975">
|
||||
<g
|
||||
transform="translate(-482.6338,-315.5882)"
|
||||
id="layer1-5"
|
||||
inkscape:label="Layer 1">
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
id="layer1-2"
|
||||
transform="matrix(0.43272125,0,0,0.43272125,12.094952,193.20654)">
|
||||
<g
|
||||
transform="matrix(0.26296827,0,0,0.26296827,-799.54693,61.582129)"
|
||||
id="g1006"
|
||||
style="fill:#000083;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-linecap:square;stroke-linejoin:bevel">
|
||||
<g
|
||||
style="fill:#000083;fill-opacity:1;stroke:none"
|
||||
id="g35"
|
||||
transform="matrix(12.509277,0,0,12.509277,438.06846,8.29825)">
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
style="vector-effect:none;fill:#000083;fill-opacity:1;fill-rule:nonzero"
|
||||
id="path33"
|
||||
d="m 90.4468,6.62439 h 6.5288 V 38.039 H 108.23 V 44.24 H 90.4741 L 90.4468,6.62439" />
|
||||
</g>
|
||||
<g
|
||||
style="fill:#000083;fill-opacity:1;stroke:none"
|
||||
id="g41"
|
||||
transform="matrix(12.509277,0,0,12.509277,438.06846,8.29825)">
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
style="vector-effect:none;fill:#000083;fill-opacity:1;fill-rule:nonzero"
|
||||
id="path39"
|
||||
d="m 123.35,16.0488 c 3.459,-0.0433 6.738,1.5334 8.865,4.2614 v -3.7014 h 6.091 v 27.6858 h -6.091 v -3.7014 c -2.127,2.728 -5.406,4.3047 -8.865,4.2614 -7.594,0 -13.358,-6.4878 -13.358,-14.4097 0,-7.922 5.764,-14.3961 13.358,-14.3961 m 1.107,5.5453 c -4.931,0 -8.196,3.8791 -8.196,8.8508 0,4.9717 3.319,8.8644 8.196,8.8644 4.876,0 8.195,-3.8791 8.195,-8.8644 0,-4.9854 -3.265,-8.8508 -8.195,-8.8508" />
|
||||
</g>
|
||||
<g
|
||||
style="fill:#000083;fill-opacity:1;stroke:none"
|
||||
id="g47"
|
||||
transform="matrix(12.509277,0,0,12.509277,438.06846,8.29825)">
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
style="vector-effect:none;fill:#000083;fill-opacity:1;fill-rule:nonzero"
|
||||
id="path45"
|
||||
d="m 143.046,39.4868 14.519,-17.3463 h -14.301 v -5.5317 h 22.168 v 4.8761 l -14.464,17.278 h 14.792 v 5.5317 h -22.714 v -4.8078" />
|
||||
</g>
|
||||
<g
|
||||
style="fill:#000083;fill-opacity:1;stroke:none"
|
||||
id="g53"
|
||||
transform="matrix(12.509277,0,0,12.509277,438.06846,8.29825)">
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
style="vector-effect:none;fill:#000083;fill-opacity:1;fill-rule:nonzero"
|
||||
id="path51"
|
||||
d="m 181.249,16.0488 c 3.458,-0.0433 6.738,1.5334 8.864,4.2614 v -3.7014 h 6.092 v 27.6858 h -6.092 v -3.7014 c -2.126,2.728 -5.406,4.3047 -8.864,4.2614 -7.594,0 -13.345,-6.4878 -13.345,-14.4097 0,-7.922 5.751,-14.3961 13.345,-14.3961 m 1.106,5.5453 c -4.931,0 -8.195,3.8791 -8.195,8.8508 0,4.9717 3.319,8.8644 8.195,8.8644 4.876,0 8.195,-3.8791 8.195,-8.8644 0,-4.9854 -3.264,-8.8508 -8.195,-8.8508" />
|
||||
</g>
|
||||
<g
|
||||
style="fill:#000083;fill-opacity:1;stroke:none"
|
||||
id="g59"
|
||||
transform="matrix(12.509277,0,0,12.509277,438.06846,8.29825)">
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
style="vector-effect:none;fill:#000083;fill-opacity:1;fill-rule:nonzero"
|
||||
id="path57"
|
||||
d="m 213.606,16.0488 c 3.455,-0.0454 6.731,1.5322 8.851,4.2614 V 4.39805 h 6.091 V 44.2946 h -6.091 v -3.7014 c -2.12,2.7292 -5.396,4.3068 -8.851,4.2614 -7.594,0 -13.358,-6.4878 -13.358,-14.4097 0,-7.922 5.764,-14.3961 13.358,-14.3961 m 1.106,5.5453 c -4.931,0 -8.195,3.8791 -8.195,8.8508 0,4.9717 3.333,8.8644 8.195,8.8644 4.863,0 8.195,-3.8791 8.195,-8.8644 0,-4.9854 -3.264,-8.8508 -8.195,-8.8508" />
|
||||
</g>
|
||||
<g
|
||||
style="fill:#000083;fill-opacity:1;stroke:none"
|
||||
id="g65"
|
||||
transform="matrix(12.509277,0,0,12.509277,438.06846,8.29825)">
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
style="vector-effect:none;fill:#000083;fill-opacity:1;fill-rule:nonzero"
|
||||
id="path63"
|
||||
d="m 245.949,16.0488 c 3.455,-0.0454 6.732,1.5322 8.851,4.2614 v -3.7014 h 6.078 v 27.6858 h -6.105 v -3.7014 c -2.12,2.7292 -5.396,4.3068 -8.851,4.2614 -7.594,0 -13.358,-6.4878 -13.358,-14.4097 0,-7.922 5.791,-14.3961 13.385,-14.3961 m 1.107,5.5453 c -4.931,0 -8.196,3.8791 -8.196,8.8508 0,4.9717 3.333,8.8644 8.196,8.8644 4.862,0 8.195,-3.8791 8.195,-8.8644 0,-4.9854 -3.265,-8.8508 -8.195,-8.8508" />
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(1.3719271,0,0,1.3719271,169.4857,-38.493576)"
|
||||
id="g942">
|
||||
<g
|
||||
style="fill:url(#linearGradient950);fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:square;stroke-linejoin:bevel"
|
||||
id="g71"
|
||||
transform="matrix(3.3097462,0,0,3.3097462,-688.02908,65.088537)">
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
style="vector-effect:none;fill:url(#linearGradient948);fill-rule:nonzero"
|
||||
id="path69"
|
||||
d="M 33.7366,54.7161 C 33.2581,54.7194 32.7871,54.5969 32.3707,54.361 28.8059,52.2985 2.4039,35.7444 1.40683,35.239 0.648025,34.8849 0.129878,34.1595 0.0409756,33.3268 V 10.1073 C 0.0213409,9.24058 0.449817,8.42493 1.17463,7.94927 L 1.36585,7.84 C 3.92,6.25561 12.4702,1.03805 13.8224,0.286829 14.1327,0.102692 14.4861,0.00374668 14.8468,0 c 0.3382,0.00382664 0.6706,0.0881007 0.9698,0.245854 0,0 11.9649,7.799026 13.7951,8.495606 1.2842,0.59 2.6845,0.88406 4.0976,0.86049 1.6012,0.03347 3.1834,-0.35265 4.5892,-1.12 C 40.0878,7.53951 51.52,0.286829 51.6429,0.286829 51.9311,0.112743 52.2623,0.0228451 52.599,0.0273171 52.9601,0.0290843 53.3139,0.128172 53.6234,0.314146 55.1805,1.17463 65.7795,7.66244 66.2302,7.94927 66.9757,8.39902 67.4276,9.20946 67.4185,10.08 v 23.2195 c -0.0836,0.8347 -0.6034,1.5624 -1.3658,1.9122 -0.9971,0.5463 -27.3171,17.1005 -30.9503,19.122 -0.4136,0.2455 -0.8848,0.3774 -1.3658,0.3824" />
|
||||
</g>
|
||||
<g
|
||||
style="fill:url(#linearGradient1730);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:square;stroke-linejoin:bevel"
|
||||
id="g79"
|
||||
transform="matrix(3.3097462,0,0,3.3097462,-688.02908,65.088537)">
|
||||
<path
|
||||
style="vector-effect:none;fill:url(#linearGradient1306);fill-opacity:1;fill-rule:nonzero"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path77"
|
||||
d="m 33.6,54.7162 0.1366,-1e-4 c 0.4785,0.0033 0.9495,-0.1192 1.3658,-0.3551 3.5649,-2.0625 29.9532,-18.6166 30.9503,-19.122 0.7624,-0.3498 1.2822,-1.0775 1.3658,-1.9122 V 10.1073 C 67.4229,9.71423 67.334,9.32571 67.159,8.97366 L 33.6,27.399 v 27.3172" />
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(-3.2744849,0,0,3.2744849,-467.18522,65.934126)"
|
||||
id="g970"
|
||||
style="fill:url(#linearGradient1738);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:square;stroke-linejoin:bevel">
|
||||
<path
|
||||
d="m 33.6,54.7162 0.1366,-1e-4 c 0.4785,0.0033 0.9495,-0.1192 1.3658,-0.3551 3.5649,-2.0625 29.9532,-18.6166 30.9503,-19.122 0.7624,-0.3498 1.2822,-1.0775 1.3658,-1.9122 V 10.1073 C 67.4229,9.71423 67.334,9.32571 67.159,8.97366 L 33.6,27.399 v 27.3172"
|
||||
id="path968"
|
||||
inkscape:connector-curvature="0"
|
||||
style="vector-effect:none;fill:url(#linearGradient1308);fill-opacity:1;fill-rule:nonzero" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 16 KiB |
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="743.36707" height="368.43945">
|
||||
<g transform="translate(-446.7987,535.9143)">
|
||||
<path d="M 446.79872,-168.02763 L 822.11906,-168.02763 L 1190.1658,-535.9143 L 446.79872,-535.9143 L 446.79872,-168.02763" style="fill:#014185;fill-rule:nonzero;stroke:none"/>
|
||||
<path d="M 887.58191,-466.77099 L 814.84541,-466.78553 L 814.84541,-292.77073 L 750.83729,-466.78553 L 688.2839,-466.78553 L 633.00416,-321.25434 C 627.18524,-357.91354 589.36226,-370.58424 558.81293,-380.06908 C 539.90144,-386.4408 518.08049,-395.80926 519.53522,-406.05056 C 519.53522,-414.54618 529.71833,-422.34353 551.53928,-421.17975 C 566.08658,-420.43784 579.17915,-419.23041 605.36429,-406.74883 L 631.54943,-451.07445 C 606.81902,-463.06142 574.81496,-470.64057 548.62982,-470.66966 L 548.62982,-470.66966 C 516.62576,-470.66966 490.44062,-460.60293 474.43859,-443.91718 C 464.25548,-432.30843 456.98183,-417.57202 456.98183,-401.2354 C 456.98183,-378.75982 465.71021,-362.81598 481.71224,-350.11619 C 497.71427,-339.42392 515.17103,-332.45577 532.62779,-327.34966 C 552.99401,-321.05068 568.99604,-315.59544 568.99604,-303.89942 C 568.99604,-299.57887 567.54131,-295.6511 564.63185,-292.49433 C 558.81293,-287.27185 551.53928,-285.29342 539.90144,-285.04611 C 519.53522,-284.66789 504.98792,-287.91193 480.25751,-302.3574 L 456.98183,-257.47898 C 481.71224,-243.57176 510.80684,-235.39618 539.90144,-235.39618 L 544.26563,-235.42527 C 568.99604,-235.89079 590.81699,-243.23717 606.81902,-256.5916 C 608.27375,-257.37715 608.27375,-258.10452 609.72848,-258.83188 L 602.45483,-239.29486 L 669.37241,-239.29486 L 679.55552,-273.16097 C 691.19336,-269.26229 704.28593,-266.99292 718.83323,-266.99292 C 733.38053,-266.99292 745.01837,-269.18956 756.65621,-272.88457 L 768.29405,-239.29486 L 875.94407,-239.29486 L 875.94407,-309.54377 L 900.67448,-309.54377 C 957.40895,-309.54377 990.86774,-338.65292 990.86774,-387.47365 C 990.86774,-441.82237 958.86368,-466.77099 887.58191,-466.77099 z M 718.83323,-317.79209 C 710.10485,-317.79209 702.8312,-319.30501 695.55755,-321.95261 L 718.83323,-395.15463 L 718.83323,-395.15463 L 742.10891,-321.71986 C 734.83526,-319.21772 727.56161,-317.79209 718.83323,-317.79209 z M 891.9461,-359.89197 L 875.94407,-359.89197 L 875.94407,-418.91037 L 891.9461,-418.91037 C 913.76705,-418.91037 931.22381,-411.76765 931.22381,-389.69939 C 931.22381,-367.0056 913.76705,-359.89197 891.9461,-359.89197" style="fill:#FFF;fill-rule:evenodd;stroke:none"/>
|
||||
<path d="M 913.76705,-191.53607 C 913.76705,-202.78113 922.49543,-211.34949 932.67854,-211.34949 C 942.86165,-211.34949 951.59003,-202.78113 951.59003,-191.53607 C 951.59003,-179.86914 942.86165,-171.4608 932.67854,-171.4608 C 922.49543,-171.4608 913.76705,-179.86914 913.76705,-191.53607 z M 932.67854,-167.47484 C 945.77111,-167.47484 957.40895,-177.67249 957.40895,-191.53607 C 957.40895,-205.19599 945.77111,-215.23362 932.67854,-215.23362 C 919.58597,-215.23362 907.94813,-205.19599 907.94813,-191.53607 C 907.94813,-177.67249 919.58597,-167.47484 932.67854,-167.47484 z M 928.31435,-189.54309 L 932.67854,-189.54309 L 939.95219,-177.67249 L 944.31638,-177.67249 L 937.04273,-189.77585 C 939.95219,-190.27046 944.31638,-192.40891 944.31638,-197.2968 C 944.31638,-202.78113 939.95219,-205.19599 934.13327,-205.19599 L 923.95016,-205.19599 L 923.95016,-177.67249 L 928.31435,-177.67249 L 928.31435,-189.54309 z M 928.31435,-193.09263 L 928.31435,-201.69009 L 934.13327,-201.69009 C 935.588,-201.69009 939.95219,-201.02091 939.95219,-197.54411 C 939.95219,-193.36903 935.588,-193.09263 932.67854,-193.09263 L 928.31435,-193.09263" style="fill:#014185;fill-rule:nonzero;stroke:none"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 69 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 82 KiB |
+203
-151
@@ -2,121 +2,192 @@
|
||||
<html lang="{{LANG}}">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Resume - Dong Nguyen</title>
|
||||
<title>Resume - {{NAME}}</title>
|
||||
<style>
|
||||
/* Font faces — injected at build time */
|
||||
{{FONT_FACES}}
|
||||
|
||||
/* Page layout */
|
||||
/* Page layout — applied by page.pdf({ preferCSSPageSize: true }) */
|
||||
@page {
|
||||
size: A4;
|
||||
margin: 20mm 18mm 20mm 18mm;
|
||||
margin: 16mm 15mm 14mm 15mm;
|
||||
}
|
||||
|
||||
/* Reset */
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
/* Brand tokens — mirrors the portfolio's light-mode red palette (src/index.css) */
|
||||
:root {
|
||||
--ink: #151914;
|
||||
--muted: #4b4f4a;
|
||||
--meta: #756b62;
|
||||
--accent: #b04138;
|
||||
--accent-soft: rgba(176, 65, 56, 0.35);
|
||||
--hairline: #d9d6d0;
|
||||
--paper: #ffffff;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
|
||||
font-size: 10pt;
|
||||
line-height: 1.5;
|
||||
color: #151914;
|
||||
line-height: 1.45;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
/* Print hygiene */
|
||||
p, li { orphans: 2; widows: 2; }
|
||||
.avoid-break { break-inside: avoid; }
|
||||
|
||||
a { color: inherit; text-decoration: none; }
|
||||
|
||||
/* Header */
|
||||
.header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
gap: 18px;
|
||||
padding-bottom: 12px;
|
||||
border-bottom: 2px solid #151914;
|
||||
margin-bottom: 16px;
|
||||
border-bottom: 1px solid var(--hairline);
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.header-photo {
|
||||
width: 75px;
|
||||
height: 95px;
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
border-radius: 50%;
|
||||
object-fit: cover;
|
||||
object-position: center top;
|
||||
border: 2px solid var(--accent);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.header-info { margin-left: 12px; }
|
||||
.header-info h1 {
|
||||
font-size: 18pt;
|
||||
font-size: 20pt;
|
||||
font-weight: 700;
|
||||
color: #151914;
|
||||
letter-spacing: -0.01em;
|
||||
line-height: 1.2;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.header-info .title {
|
||||
font-size: 11pt;
|
||||
font-weight: 500;
|
||||
color: #4b4f4a;
|
||||
margin-bottom: 4px;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
margin: 1px 0 5px;
|
||||
}
|
||||
|
||||
.header-info .contact {
|
||||
display: grid;
|
||||
grid-template-columns: 12px 1fr;
|
||||
column-gap: 8px;
|
||||
row-gap: 3px;
|
||||
align-items: center;
|
||||
font-size: 9pt;
|
||||
color: #6b6d68;
|
||||
line-height: 1.6;
|
||||
color: var(--meta);
|
||||
}
|
||||
.header-info .contact svg { width: 12px; height: 12px; color: var(--meta); }
|
||||
.header-info .contact a { color: var(--muted); }
|
||||
|
||||
/* About me */
|
||||
.about-summary {
|
||||
font-size: 9.5pt;
|
||||
color: #4b4f4a;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.header-qr { display: flex; gap: 18px; margin-left: auto; }
|
||||
.qr-item { display: flex; flex-direction: column; align-items: center; gap: 3px; }
|
||||
.qr-img { width: 18mm; height: 18mm; object-fit: contain; }
|
||||
.qr-label { font-size: 7pt; letter-spacing: 0.08em; text-transform: uppercase; color: var(--meta); }
|
||||
|
||||
/* Sections */
|
||||
.section { margin-bottom: 14px; }
|
||||
|
||||
.section-title {
|
||||
font-size: 12pt;
|
||||
font-weight: 700;
|
||||
font-size: 11pt;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5pt;
|
||||
color: #151914;
|
||||
padding-bottom: 4px;
|
||||
border-bottom: 1px solid #d9d6d0;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--ink);
|
||||
border-left: 3px solid var(--accent);
|
||||
padding-left: 8px;
|
||||
margin-bottom: 10px;
|
||||
line-height: 1.2;
|
||||
break-after: avoid;
|
||||
}
|
||||
/* Experience */
|
||||
|
||||
/* Summary — sits directly under the header, no title (modern resume convention) */
|
||||
.about-summary {
|
||||
font-size: 9.5pt;
|
||||
color: var(--muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Experience — timeline mirroring the site's ExperiencePage */
|
||||
.timeline {
|
||||
border-left: 2px solid var(--hairline);
|
||||
margin-left: 4px;
|
||||
padding-left: 16px;
|
||||
}
|
||||
|
||||
.exp-entry {
|
||||
position: relative;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.exp-entry:last-child { margin-bottom: 0; }
|
||||
|
||||
.exp-entry::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: -21px;
|
||||
top: 5px;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--ink);
|
||||
}
|
||||
|
||||
.exp-entry.gap::before {
|
||||
background: var(--paper);
|
||||
border: 2px solid var(--meta);
|
||||
}
|
||||
|
||||
.exp-entry.gap .exp-title { color: var(--meta); font-style: italic; }
|
||||
.exp-entry.gap .exp-company { font-style: italic; }
|
||||
.exp-entry.gap .exp-responsibilities li { color: var(--muted); font-style: italic; }
|
||||
|
||||
.exp-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
align-items: baseline;
|
||||
margin-bottom: 2px;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.exp-title {
|
||||
font-weight: 600;
|
||||
font-size: 11pt;
|
||||
color: #151914;
|
||||
color: var(--ink);
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.exp-duration {
|
||||
font-size: 9pt;
|
||||
color: #6b6d68;
|
||||
font-size: 8.5pt;
|
||||
color: var(--meta);
|
||||
white-space: nowrap;
|
||||
border: 1px solid var(--hairline);
|
||||
border-radius: 999px;
|
||||
padding: 1px 8px;
|
||||
}
|
||||
|
||||
.exp-company {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 10pt;
|
||||
color: #4b4f4a;
|
||||
margin-bottom: 2px;
|
||||
color: var(--muted);
|
||||
margin-top: 1px;
|
||||
}
|
||||
|
||||
.exp-location {
|
||||
font-size: 9pt;
|
||||
color: #756b62;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.exp-logo { height: 12px; width: auto; }
|
||||
|
||||
.exp-responsibilities {
|
||||
list-style: disc;
|
||||
padding-left: 16px;
|
||||
margin-bottom: 6px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.exp-responsibilities li {
|
||||
@@ -124,160 +195,143 @@
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
/* Achievement */
|
||||
.achievement {
|
||||
margin-left: 12px;
|
||||
margin-bottom: 8px;
|
||||
.exp-responsibilities li::marker { color: var(--accent); }
|
||||
|
||||
/* TL;DR — mirrors the site timeline's TLDR panel (strings.experience) */
|
||||
.timeline-tldr {
|
||||
position: relative;
|
||||
background: #f5f3ef;
|
||||
border: 1px solid var(--hairline);
|
||||
border-radius: 6px;
|
||||
padding: 8px 12px;
|
||||
}
|
||||
|
||||
.achievement-title {
|
||||
font-weight: 600;
|
||||
font-size: 10pt;
|
||||
color: #151914;
|
||||
.timeline-tldr::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: -21px;
|
||||
top: 10px;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
background: var(--accent);
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
.timeline-tldr-chip {
|
||||
font-size: 8pt;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: var(--accent);
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.achievement-context {
|
||||
.timeline-tldr-text {
|
||||
font-size: 9.5pt;
|
||||
color: var(--muted);
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
/* Projects */
|
||||
.project { margin-bottom: 12px; }
|
||||
.project:last-child { margin-bottom: 0; }
|
||||
|
||||
.project-title {
|
||||
font-weight: 600;
|
||||
font-size: 11pt;
|
||||
color: var(--ink);
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.project-role {
|
||||
font-size: 9pt;
|
||||
color: #4b4f4a;
|
||||
margin-bottom: 4px;
|
||||
font-style: italic;
|
||||
color: var(--meta);
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.achievement-technical {
|
||||
list-style: disc;
|
||||
padding-left: 20px;
|
||||
margin-bottom: 4px;
|
||||
.project-summary {
|
||||
font-size: 9.5pt;
|
||||
color: var(--muted);
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.achievement-technical li {
|
||||
font-size: 9pt;
|
||||
color: #4b4f4a;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
|
||||
.achievement-tech {
|
||||
font-size: 8.5pt;
|
||||
color: #6b6d68;
|
||||
}
|
||||
|
||||
.achievement-tech span {
|
||||
.project-tech span {
|
||||
display: inline-block;
|
||||
background: #efece6;
|
||||
padding: 0 4px;
|
||||
border-radius: 2px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.achievement-impact {
|
||||
font-size: 9pt;
|
||||
color: #4b4f4a;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.achievement-metrics {
|
||||
font-size: 9pt;
|
||||
color: #4b4f4a;
|
||||
margin-top: 1px;
|
||||
font-size: 8.5pt;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
border: 1px solid var(--accent-soft);
|
||||
border-radius: 999px;
|
||||
padding: 1px 8px;
|
||||
margin: 0 4px 4px 0;
|
||||
}
|
||||
|
||||
/* Skills */
|
||||
.skills-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 8px 24px;
|
||||
gap: 0 24px;
|
||||
}
|
||||
|
||||
.skill-group {
|
||||
padding: 6px 0;
|
||||
border-top: 1px solid var(--hairline);
|
||||
}
|
||||
|
||||
.skill-group-title {
|
||||
font-weight: 600;
|
||||
font-size: 10pt;
|
||||
color: #151914;
|
||||
margin-bottom: 2px;
|
||||
font-size: 9.5pt;
|
||||
color: var(--accent);
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
|
||||
.skill-list {
|
||||
font-size: 9pt;
|
||||
color: #4b4f4a;
|
||||
color: var(--muted);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
/* Projects */
|
||||
.project {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.project-title {
|
||||
font-weight: 600;
|
||||
font-size: 11pt;
|
||||
color: #151914;
|
||||
}
|
||||
|
||||
.project-role {
|
||||
font-size: 9pt;
|
||||
color: #6b6d68;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.project-summary {
|
||||
font-size: 9.5pt;
|
||||
color: #4b4f4a;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.project-tech {
|
||||
font-size: 8.5pt;
|
||||
color: #6b6d68;
|
||||
}
|
||||
|
||||
.project-tech span {
|
||||
display: inline-block;
|
||||
background: #efece6;
|
||||
padding: 0 4px;
|
||||
border-radius: 2px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.project-metrics {
|
||||
font-size: 9pt;
|
||||
color: #4b4f4a;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
/* Version stamp footer */
|
||||
/* Footer */
|
||||
.pdf-footer {
|
||||
text-align: center;
|
||||
font-size: 8pt;
|
||||
color: #756b62;
|
||||
color: var(--meta);
|
||||
margin-top: 16px;
|
||||
padding-top: 8px;
|
||||
border-top: 1px solid #e3e1dc;
|
||||
border-top: 1px solid var(--hairline);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Header -->
|
||||
<div class="header">
|
||||
<img class="header-photo" src="data:image/webp;base64,{{PHOTO_BASE64}}" alt="Dong Nguyen" />
|
||||
<div class="header avoid-break">
|
||||
<img class="header-photo" src="data:image/webp;base64,{{PHOTO_BASE64}}" alt="{{NAME}}" />
|
||||
<div class="header-info">
|
||||
<h1>{{NAME}}</h1>
|
||||
<div class="title">{{TITLE}}</div>
|
||||
<div class="contact">
|
||||
{{EMAIL}}<br>
|
||||
{{GITHUB}}<br>
|
||||
{{LINKEDIN}}
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m22 7l-8.991 5.727a2 2 0 0 1-2.009 0L2 7"/><rect width="20" height="16" x="2" y="4" rx="2"/></g></svg>
|
||||
<a href="mailto:{{EMAIL}}">{{EMAIL}}</a>
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M12 2a14.5 14.5 0 0 0 0 20a14.5 14.5 0 0 0 0-20M2 12h20"/></g></svg>
|
||||
<a href="{{SITE_URL}}">{{SITE_URL}}</a>
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5c.08-1.25-.27-2.48-1-3.5c.28-1.15.28-2.35 0-3.5c0 0-1 0-3 1.5c-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.4 5.4 0 0 0 4 9c0 3.5 3 5.5 6 5.5c-.39.49-.68 1.05-.85 1.65S8.93 17.38 9 18v4"/><path d="M9 18c-4.51 2-5-2-7-2"/></g></svg>
|
||||
<a href="{{GITHUB_URL}}">{{GITHUB_URL}}</a>
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2a2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6M2 9h4v12H2z"/><circle cx="4" cy="4" r="2"/></g></svg>
|
||||
<a href="{{LINKEDIN_URL}}">{{LINKEDIN_URL}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-qr">{{QR_CODES}}</div>
|
||||
</div>
|
||||
|
||||
<!-- About me -->
|
||||
<div class="section">
|
||||
<!-- Summary -->
|
||||
<div class="section avoid-break">
|
||||
<div class="about-summary">{{BIO}}</div>
|
||||
</div>
|
||||
|
||||
<!-- Experience -->
|
||||
<div class="section">
|
||||
<div class="section-title">{{EXPERIENCE_LABEL}}</div>
|
||||
{{EXPERIENCE}}
|
||||
<div class="timeline">{{EXPERIENCE}}{{TLDR}}</div>
|
||||
</div>
|
||||
|
||||
<!-- Projects -->
|
||||
@@ -289,14 +343,12 @@
|
||||
<!-- Skills -->
|
||||
<div class="section">
|
||||
<div class="section-title">{{SKILLS_LABEL}}</div>
|
||||
<div class="skills-grid">
|
||||
{{SKILLS}}
|
||||
</div>
|
||||
<div class="skills-grid">{{SKILLS}}</div>
|
||||
</div>
|
||||
|
||||
<!-- Version stamp footer -->
|
||||
<!-- Footer -->
|
||||
<div class="pdf-footer">
|
||||
Last updated: {{UPDATED_DATE}}
|
||||
{{UPDATED_LABEL}}: {{UPDATED_DATE}}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+154
-53
@@ -1,20 +1,33 @@
|
||||
import { chromium } from 'playwright';
|
||||
import { readFileSync, existsSync } from 'node:fs';
|
||||
import { join, resolve } from 'node:path';
|
||||
import { existsSync, mkdirSync, readFileSync } from 'node:fs';
|
||||
import { dirname, join, resolve } from 'node:path';
|
||||
import { profile } from '../src/data/profile.js';
|
||||
import { experiences } from '../src/data/experience.js';
|
||||
import { skillGroups } from '../src/data/skills.js';
|
||||
import { projects } from '../src/data/projects.js';
|
||||
import { resumeQr } from '../src/data/resume.js';
|
||||
import { siteUrl } from '../src/data/site.js';
|
||||
import { strings } from '../src/i18n/strings.js';
|
||||
import type { Language } from '../src/types/index.js';
|
||||
|
||||
const ROOT = resolve(import.meta.dirname, '..');
|
||||
|
||||
// --- CLI args ---
|
||||
const args = process.argv.slice(2);
|
||||
const langArg = (args.find(a => a.startsWith('--lang=')) || '').replace('--lang=', '') as Language;
|
||||
const lang: Language = (langArg === 'en' || langArg === 'vi') ? langArg : 'en';
|
||||
const langArg = (args.find(a => a.startsWith('--lang=')) || '').replace('--lang=', '');
|
||||
const previewMode = args.includes('--preview');
|
||||
|
||||
let langs: Language[];
|
||||
if (langArg === 'all') {
|
||||
if (previewMode) {
|
||||
console.error('❌ --lang=all cannot be combined with --preview (preview renders one language)');
|
||||
process.exit(1);
|
||||
}
|
||||
langs = ['en', 'vi'];
|
||||
} else {
|
||||
langs = [langArg === 'vi' ? 'vi' : 'en'];
|
||||
}
|
||||
|
||||
// --- Validate required files ---
|
||||
const requiredFiles = [
|
||||
'public/profile-photo.webp',
|
||||
@@ -42,7 +55,7 @@ const fonts: Record<string, string> = {};
|
||||
for (const [name, weight] of [
|
||||
['REGULAR', 'SourceSans3-Regular.woff2'],
|
||||
['MEDIUM', 'SourceSans3-Medium.woff2'],
|
||||
['SEMIBOLD', 'SourceSans3-Semibold.woff2'],
|
||||
['SEMIBOLD', 'SourceSans3-Semibold.woff2',],
|
||||
['BOLD', 'SourceSans3-Bold.woff2'],
|
||||
] as const) {
|
||||
fonts[name] = readFileSync(join(ROOT, 'public/fonts', weight)).toString('base64');
|
||||
@@ -60,6 +73,34 @@ const fontFaces = Object.entries(fonts).map(([key, b64]) => {
|
||||
}`;
|
||||
}).join('\n');
|
||||
|
||||
// --- Company logos: load every logo referenced by experience entries ---
|
||||
const logoIds = [...new Set(experiences.map(exp => exp.logo).filter((id): id is string => id !== undefined))];
|
||||
const logos: Record<string, string> = {};
|
||||
for (const id of logoIds) {
|
||||
const logoFile = join(ROOT, 'public/resume-logos', `${id}.svg`);
|
||||
if (!existsSync(logoFile)) {
|
||||
console.error(`❌ Missing logo asset: public/resume-logos/${id}.svg`);
|
||||
process.exit(1);
|
||||
}
|
||||
logos[id] = readFileSync(logoFile).toString('base64');
|
||||
}
|
||||
|
||||
// --- QR codes: owner-exported images from the Telegram/Zalo apps ---
|
||||
// These are private, owner-supplied assets (not committed). A missing file is
|
||||
// reported loudly but does not block the build — the resume still ships without it.
|
||||
const qrMime: Record<string, string> = { png: 'image/png', jpg: 'image/jpeg', jpeg: 'image/jpeg' };
|
||||
const qrAssets: { label: string; dataUri: string }[] = [];
|
||||
for (const q of resumeQr) {
|
||||
const file = join(ROOT, 'public/resume-qr', q.file);
|
||||
if (!existsSync(file)) {
|
||||
console.warn(`⚠️ QR asset missing: public/resume-qr/${q.file} — ${q.label} QR skipped`);
|
||||
continue;
|
||||
}
|
||||
const ext = q.file.split('.').pop() ?? '';
|
||||
const mime = qrMime[ext] ?? 'image/png';
|
||||
qrAssets.push({ label: q.label, dataUri: `data:${mime};base64,${readFileSync(file).toString('base64')}` });
|
||||
}
|
||||
|
||||
// --- Version stamp date ---
|
||||
const updatedDate = new Date().toISOString().slice(0, 10);
|
||||
|
||||
@@ -69,103 +110,163 @@ const labels: Record<Language, Record<string, string>> = {
|
||||
EXPERIENCE: 'Experience',
|
||||
SKILLS: 'Skills',
|
||||
PROJECTS: 'Projects',
|
||||
ABOUT_ME: 'About me',
|
||||
UPDATED: 'Last updated',
|
||||
QR_ALT: 'QR code',
|
||||
},
|
||||
vi: {
|
||||
EXPERIENCE: 'Kinh nghiệm',
|
||||
SKILLS: 'Kỹ năng',
|
||||
PROJECTS: 'Dự án',
|
||||
ABOUT_ME: 'Về tôi',
|
||||
UPDATED: 'Cập nhật lần cuối',
|
||||
QR_ALT: 'mã QR',
|
||||
},
|
||||
};
|
||||
|
||||
// --- Resolve bilingual field ---
|
||||
function resolveField<T>(en?: T, vi?: T): T {
|
||||
return lang === 'en' && en !== undefined ? en : (vi !== undefined ? vi : en as T);
|
||||
function resolveField<T>(en: T | undefined, vi: T | undefined, lang: Language): T {
|
||||
return lang === 'en' && en !== undefined ? en : (vi !== undefined ? vi : (en as T));
|
||||
}
|
||||
|
||||
// --- Escape data strings before injection ---
|
||||
function escapeHtml(value: string): string {
|
||||
return value
|
||||
.replace(/&/g, '&')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/"/g, '"');
|
||||
}
|
||||
|
||||
// QR block: owner-exported Telegram/Zalo QR images, right side of the header
|
||||
function renderQr(lang: Language): string {
|
||||
return qrAssets
|
||||
.map(q => `
|
||||
<div class="qr-item">
|
||||
<img class="qr-img" src="${q.dataUri}" alt="${escapeHtml(`${q.label} ${labels[lang].QR_ALT}`)}" />
|
||||
<span class="qr-label">${escapeHtml(q.label)}</span>
|
||||
</div>`)
|
||||
.join('');
|
||||
}
|
||||
|
||||
// --- Render HTML helpers ---
|
||||
function renderExperience(exps: typeof experiences): string {
|
||||
return exps.map(exp => `
|
||||
<div class="exp-entry avoid-break">
|
||||
function renderExperience(exps: typeof experiences, lang: Language): string {
|
||||
return exps
|
||||
// open-to-work (variant 'current') is excluded from the resume PDF entirely
|
||||
.filter(exp => exp.variant !== 'current')
|
||||
.map(exp => {
|
||||
const variantClass = exp.variant ? ` ${exp.variant}` : '';
|
||||
const companyLine = [exp.company, exp.location].filter(Boolean).join(' · ');
|
||||
const responsibilities = resolveField(exp.responsibilitiesEn, exp.responsibilities, lang);
|
||||
return `
|
||||
<div class="exp-entry avoid-break${variantClass}">
|
||||
<div class="exp-header">
|
||||
<span class="exp-title">${resolveField(exp.titleEn, exp.title)}</span>
|
||||
<span class="exp-duration">${exp.duration}</span>
|
||||
<span class="exp-title">${escapeHtml(resolveField(exp.titleEn, exp.title, lang))}</span>
|
||||
<span class="exp-duration">${escapeHtml(exp.duration)}</span>
|
||||
</div>
|
||||
<div class="exp-company">${exp.company}</div>
|
||||
${exp.location ? `<div class="exp-location">${exp.location}</div>` : ''}
|
||||
<div class="exp-company">${exp.logo ? `<img class="exp-logo" src="data:image/svg+xml;base64,${logos[exp.logo]}" alt="" />` : ''}${escapeHtml(companyLine)}</div>
|
||||
<ul class="exp-responsibilities">
|
||||
${resolveField(exp.responsibilitiesEn, exp.responsibilities).map(r => `<li>${r}</li>`).join('')}
|
||||
${responsibilities.map(r => `<li>${escapeHtml(r)}</li>`).join('')}
|
||||
</ul>
|
||||
</div>
|
||||
`).join('');
|
||||
`;
|
||||
})
|
||||
.join('');
|
||||
}
|
||||
|
||||
function renderSkills(groups: typeof skillGroups): string {
|
||||
function renderTldr(lang: Language): string {
|
||||
return `
|
||||
<div class="timeline-tldr avoid-break">
|
||||
<div class="timeline-tldr-chip">${escapeHtml(strings.experience.tldr[lang])}</div>
|
||||
<div class="timeline-tldr-text">${escapeHtml(strings.experience.tldrText[lang])}</div>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
||||
function renderSkills(groups: typeof skillGroups, lang: Language): string {
|
||||
return groups.map(group => `
|
||||
<div class="avoid-break">
|
||||
<div class="skill-group-title">${resolveField(group.titleEn, group.title)}</div>
|
||||
<div class="skill-list">${group.skills.join(' · ')}</div>
|
||||
<div class="skill-group avoid-break">
|
||||
<div class="skill-group-title">${escapeHtml(resolveField(group.titleEn, group.title, lang))}</div>
|
||||
<div class="skill-list">${group.skills.map(skill => escapeHtml(skill)).join(' · ')}</div>
|
||||
</div>
|
||||
`).join('');
|
||||
}
|
||||
|
||||
function renderProjects(projs: typeof projects): string {
|
||||
function renderProjects(projs: typeof projects, lang: Language): string {
|
||||
return projs.map(project => `
|
||||
<div class="project avoid-break">
|
||||
<div class="project-title">${resolveField(project.titleEn, project.title)}</div>
|
||||
<div class="project-role">${project.role}</div>
|
||||
<div class="project-summary">${resolveField(project.summaryEn, project.summary)}</div>
|
||||
<div class="project-title">${escapeHtml(resolveField(project.titleEn, project.title, lang))}</div>
|
||||
<div class="project-role">${escapeHtml(project.role)}</div>
|
||||
<div class="project-summary">${escapeHtml(resolveField(project.summaryEn, project.summary, lang))}</div>
|
||||
<div class="project-tech">
|
||||
${project.technologies.map(t => `<span>${t}</span>`).join('')}
|
||||
${project.technologies.map(t => `<span>${escapeHtml(t)}</span>`).join('')}
|
||||
</div>
|
||||
${project.metrics?.length ? `<div class="project-metrics">${project.metrics.join(', ')}</div>` : ''}
|
||||
</div>
|
||||
`).join('');
|
||||
}
|
||||
|
||||
// --- Assemble HTML ---
|
||||
const html = template
|
||||
.replace('{{NAME}}', resolveField(profile.nameEn, profile.name))
|
||||
.replace('{{TITLE}}', resolveField(profile.titleEn, profile.title))
|
||||
.replace('{{BIO}}', resolveField(profile.bioEn, profile.bio))
|
||||
.replace('{{EMAIL}}', profile.email)
|
||||
.replace('{{GITHUB}}', profile.githubUrl)
|
||||
.replace('{{LINKEDIN}}', profile.linkedinUrl)
|
||||
.replace('{{PHOTO_BASE64}}', photoBase64)
|
||||
.replace('{{FONT_FACES}}', fontFaces)
|
||||
.replace('{{UPDATED_DATE}}', updatedDate)
|
||||
.replace('{{LANG}}', lang)
|
||||
.replace('{{ABOUT_ME_LABEL}}', labels[lang].ABOUT_ME)
|
||||
.replace('{{EXPERIENCE_LABEL}}', labels[lang].EXPERIENCE)
|
||||
.replace('{{SKILLS_LABEL}}', labels[lang].SKILLS)
|
||||
.replace('{{PROJECTS_LABEL}}', labels[lang].PROJECTS)
|
||||
.replace('{{EXPERIENCE}}', renderExperience(experiences))
|
||||
.replace('{{SKILLS}}', renderSkills(skillGroups))
|
||||
.replace('{{PROJECTS}}', renderProjects(projects));
|
||||
function buildHtml(lang: Language): string {
|
||||
const fills: Array<[string, string]> = [
|
||||
['{{NAME}}', escapeHtml(resolveField(profile.nameEn, profile.name, lang))],
|
||||
['{{TITLE}}', escapeHtml(resolveField(profile.titleEn, profile.title, lang))],
|
||||
['{{BIO}}', escapeHtml(resolveField(profile.bioEn, profile.bio, lang))],
|
||||
['{{EMAIL}}', escapeHtml(profile.email)],
|
||||
['{{GITHUB_URL}}', escapeHtml(profile.githubUrl)],
|
||||
['{{LINKEDIN_URL}}', escapeHtml(profile.linkedinUrl)],
|
||||
['{{PHOTO_BASE64}}', photoBase64],
|
||||
['{{FONT_FACES}}', fontFaces],
|
||||
['{{UPDATED_DATE}}', updatedDate],
|
||||
['{{UPDATED_LABEL}}', labels[lang].UPDATED],
|
||||
['{{SITE_URL}}', escapeHtml(siteUrl)],
|
||||
['{{LANG}}', lang],
|
||||
['{{EXPERIENCE_LABEL}}', labels[lang].EXPERIENCE],
|
||||
['{{SKILLS_LABEL}}', labels[lang].SKILLS],
|
||||
['{{PROJECTS_LABEL}}', labels[lang].PROJECTS],
|
||||
['{{EXPERIENCE}}', renderExperience(experiences, lang)],
|
||||
['{{TLDR}}', renderTldr(lang)],
|
||||
['{{SKILLS}}', renderSkills(skillGroups, lang)],
|
||||
['{{PROJECTS}}', renderProjects(projects, lang)],
|
||||
['{{QR_CODES}}', renderQr(lang)],
|
||||
];
|
||||
return fills.reduce((html, [key, value]) => html.split(key).join(value), template);
|
||||
}
|
||||
|
||||
// --- Build per language; fail fast on unresolved placeholders ---
|
||||
const pages: Record<Language, string> = { en: '', vi: '' };
|
||||
for (const lang of langs) {
|
||||
const html = buildHtml(lang);
|
||||
const leftover = html.match(/\{\{[A-Z_]+\}\}/g);
|
||||
if (leftover) {
|
||||
console.error(`❌ Unresolved placeholders in resume HTML [${lang}]: ${[...new Set(leftover)].join(', ')}`);
|
||||
process.exit(1);
|
||||
}
|
||||
pages[lang] = html;
|
||||
}
|
||||
|
||||
// --- Generate output ---
|
||||
const browser = await chromium.launch({ headless: !previewMode });
|
||||
|
||||
if (previewMode) {
|
||||
const lang = langs[0];
|
||||
const page = await browser.newPage();
|
||||
await page.setContent(html);
|
||||
await page.setContent(pages[lang]);
|
||||
await page.bringToFront();
|
||||
console.log(`Preview opened in browser [${lang}] — Ctrl+C to exit`);
|
||||
await Promise.withResolvers<void>().promise;
|
||||
} else {
|
||||
const page = await browser.newPage();
|
||||
for (const lang of langs) {
|
||||
const langSuffix = lang === 'en' ? '' : `-${lang}`;
|
||||
const outputPath = join(ROOT, `dist/resume${langSuffix}.pdf`);
|
||||
const page = await browser.newPage();
|
||||
await page.setContent(html);
|
||||
mkdirSync(dirname(outputPath), { recursive: true });
|
||||
await page.setContent(pages[lang]);
|
||||
await page.pdf({
|
||||
path: outputPath,
|
||||
format: 'A4',
|
||||
printBackground: true,
|
||||
title: `Resume - ${profile.name} (${lang === 'en' ? 'English' : 'Vietnamese'})`,
|
||||
author: profile.name,
|
||||
preferCSSPageSize: true,
|
||||
tagged: true,
|
||||
});
|
||||
|
||||
await browser.close();
|
||||
console.log(`resume${langSuffix}.pdf generated at ${outputPath} [${lang}]`);
|
||||
}
|
||||
await browser.close();
|
||||
}
|
||||
+10
-2
@@ -1679,7 +1679,8 @@
|
||||
|
||||
/* ===== Contact ===== */
|
||||
.contact-links {
|
||||
display: flex;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 32px;
|
||||
margin-top: 32px;
|
||||
}
|
||||
@@ -1713,6 +1714,7 @@
|
||||
font-size: var(--text-meta);
|
||||
line-height: 1.5;
|
||||
color: var(--text-muted);
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
/* Resume download button variant of the contact tile */
|
||||
@@ -1722,9 +1724,15 @@
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.contact-links {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.contact-links {
|
||||
flex-direction: column;
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { motion } from "motion/react"
|
||||
import { DownloadResume } from "@/components/sections/DownloadResume"
|
||||
import { SectionHeading } from "@/components/ui/SectionHeading"
|
||||
import { profile } from "@/data/profile"
|
||||
import { ContactLinks } from "@/components/ui/ContactLinks"
|
||||
import { InView } from "@/components/ui/InView"
|
||||
import { useLanguage } from '@/hooks/useLanguage'
|
||||
import { strings } from '@/i18n/strings'
|
||||
@@ -22,98 +22,7 @@ export function Contact() {
|
||||
>
|
||||
|
||||
<SectionHeading title={strings.contact.heading[lang]} tag={strings.common.contactTag[lang]} />
|
||||
<div className="page-body">
|
||||
<div className="contact-links">
|
||||
<motion.a
|
||||
href={`mailto:${profile.email}`}
|
||||
className="contact-link"
|
||||
initial={{ opacity: 0, y: 24 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true, amount: 0.2 }}
|
||||
transition={{ duration: 0.45, ease: 'easeOut', delay: 0 }}
|
||||
whileHover={{ scale: 1.02, y: -4 }}
|
||||
whileTap={{ scale: 0.98 }}
|
||||
>
|
||||
<svg
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth="2"
|
||||
width="24"
|
||||
height="24"
|
||||
>
|
||||
<rect x="2" y="4" width="20" height="16" rx="2" />
|
||||
<path d="M22 4l-10 8L2 4" />
|
||||
</svg>
|
||||
<div>
|
||||
<div className="link-label">
|
||||
{strings.contact.email[lang]}
|
||||
</div>
|
||||
<div className="contact-link-sub">
|
||||
{profile.email}
|
||||
</div>
|
||||
</div>
|
||||
</motion.a>
|
||||
<motion.a
|
||||
href={profile.githubUrl}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="contact-link"
|
||||
initial={{ opacity: 0, y: 24 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true, amount: 0.2 }}
|
||||
transition={{ duration: 0.45, ease: 'easeOut', delay: 0.08 }}
|
||||
whileHover={{ scale: 1.02, y: -4 }}
|
||||
whileTap={{ scale: 0.98 }}
|
||||
>
|
||||
<svg
|
||||
viewBox="0 0 24 24"
|
||||
fill="currentColor"
|
||||
width="24"
|
||||
height="24"
|
||||
>
|
||||
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z" />
|
||||
</svg>
|
||||
<div>
|
||||
<div className="link-label">
|
||||
{strings.contact.github[lang]}
|
||||
</div>
|
||||
<div className="contact-link-sub">
|
||||
@{profile.githubHandle}
|
||||
</div>
|
||||
</div>
|
||||
</motion.a>
|
||||
<motion.a
|
||||
href={profile.linkedinUrl}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="contact-link"
|
||||
initial={{ opacity: 0, y: 24 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true, amount: 0.2 }}
|
||||
transition={{ duration: 0.45, ease: 'easeOut', delay: 0.16 }}
|
||||
whileHover={{ scale: 1.02, y: -4 }}
|
||||
whileTap={{ scale: 0.98 }}
|
||||
>
|
||||
<svg
|
||||
viewBox="0 0 24 24"
|
||||
fill="currentColor"
|
||||
width="24"
|
||||
height="24"
|
||||
>
|
||||
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" />
|
||||
</svg>
|
||||
<div>
|
||||
<div className="link-label">
|
||||
{strings.contact.linkedin[lang]}
|
||||
</div>
|
||||
<div className="contact-link-sub">
|
||||
@{profile.linkedinHandle}
|
||||
</div>
|
||||
</div>
|
||||
</motion.a>
|
||||
</div>
|
||||
</div>
|
||||
<ContactLinks />
|
||||
<DownloadResume />
|
||||
</motion.section>
|
||||
</InView>
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
import { motion } from "motion/react"
|
||||
import { profile } from "@/data/profile"
|
||||
import { useLanguage } from "@/hooks/useLanguage"
|
||||
import { strings } from "@/i18n/strings"
|
||||
import { GithubIcon, LinkedinIcon, MailIcon, TelegramIcon, ZaloIcon } from "@/components/ui/icons"
|
||||
import type { Language, SocialId } from "@/types"
|
||||
|
||||
type ContactEntry = {
|
||||
id: SocialId
|
||||
href: string
|
||||
external: boolean
|
||||
labelKey: 'email' | 'github' | 'linkedin' | 'telegram' | 'zalo'
|
||||
sub: Record<Language, string>
|
||||
icon: React.ReactNode
|
||||
}
|
||||
|
||||
const entries: ContactEntry[] = [
|
||||
{ id: 'email', href: `mailto:${profile.email}`, external: false, labelKey: 'email', sub: { en: profile.email, vi: profile.email }, icon: <MailIcon size={24} /> },
|
||||
{ id: 'github', href: profile.githubUrl, external: true, labelKey: 'github', sub: { en: `@${profile.githubHandle}`, vi: `@${profile.githubHandle}` }, icon: <GithubIcon size={24} /> },
|
||||
{ id: 'linkedin', href: profile.linkedinUrl, external: true, labelKey: 'linkedin', sub: { en: `@${profile.linkedinHandle}`, vi: `@${profile.linkedinHandle}` }, icon: <LinkedinIcon size={24} /> },
|
||||
{ id: 'telegram', href: profile.telegramUrl, external: true, labelKey: 'telegram', sub: { en: `@${profile.telegramHandle}`, vi: `@${profile.telegramHandle}` }, icon: <TelegramIcon size={24} /> },
|
||||
{ id: 'zalo', href: profile.zaloUrl, external: true, labelKey: 'zalo', sub: strings.contact.zaloSub, icon: <ZaloIcon size={24} /> },
|
||||
]
|
||||
|
||||
export function ContactLinks() {
|
||||
const { lang } = useLanguage()
|
||||
|
||||
return (
|
||||
<div className="contact-links">
|
||||
{entries.map((entry, i) => (
|
||||
<motion.a
|
||||
key={entry.id}
|
||||
href={entry.href}
|
||||
target={entry.external ? "_blank" : undefined}
|
||||
rel={entry.external ? "noopener noreferrer" : undefined}
|
||||
className="contact-link"
|
||||
initial={{ opacity: 0, y: 24 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true, amount: 0.2 }}
|
||||
transition={{ duration: 0.45, ease: 'easeOut', delay: i * 0.08 }}
|
||||
whileHover={{ scale: 1.02, y: -4 }}
|
||||
whileTap={{ scale: 0.98 }}
|
||||
>
|
||||
{entry.icon}
|
||||
<div>
|
||||
<div className="link-label">{strings.contact[entry.labelKey][lang]}</div>
|
||||
<div className="contact-link-sub">{entry.sub[lang]}</div>
|
||||
</div>
|
||||
</motion.a>
|
||||
))}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -2,29 +2,15 @@ import { motion } from "motion/react"
|
||||
import { socialLinks } from "@/data/social"
|
||||
import { useLanguage } from "@/hooks/useLanguage"
|
||||
import { strings } from "@/i18n/strings"
|
||||
import { GithubIcon, LinkedinIcon, MailIcon, TelegramIcon, ZaloIcon } from "@/components/ui/icons"
|
||||
import type { SocialId } from "@/types"
|
||||
|
||||
const icons: Record<SocialId, React.ReactNode> = {
|
||||
github: (
|
||||
<svg viewBox="0 0 24 24" fill="currentColor" width="20" height="20">
|
||||
<path
|
||||
d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z"
|
||||
/>
|
||||
</svg>
|
||||
),
|
||||
linkedin: (
|
||||
<svg viewBox="0 0 24 24" fill="currentColor" width="20" height="20">
|
||||
<path
|
||||
d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"
|
||||
/>
|
||||
</svg>
|
||||
),
|
||||
email: (
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" width="20" height="20">
|
||||
<rect x="2" y="4" width="20" height="16" rx="2" />
|
||||
<path d="M22 4l-10 8L2 4" />
|
||||
</svg>
|
||||
),
|
||||
github: <GithubIcon size={20} />,
|
||||
linkedin: <LinkedinIcon size={20} />,
|
||||
email: <MailIcon size={20} />,
|
||||
telegram: <TelegramIcon size={20} />,
|
||||
zalo: <ZaloIcon size={20} />,
|
||||
}
|
||||
|
||||
export function SocialLinks() {
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
type IconProps = { size?: number }
|
||||
|
||||
const strokeProps = {
|
||||
fill: "none",
|
||||
stroke: "currentColor",
|
||||
strokeWidth: 2,
|
||||
strokeLinecap: "round",
|
||||
strokeLinejoin: "round",
|
||||
} as const
|
||||
|
||||
export function MailIcon({ size = 20 }: IconProps) {
|
||||
return (
|
||||
<svg viewBox="0 0 24 24" width={size} height={size} aria-hidden="true" {...strokeProps}>
|
||||
<path d="m22 7l-8.991 5.727a2 2 0 0 1-2.009 0L2 7" />
|
||||
<rect width="20" height="16" x="2" y="4" rx="2" />
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function GithubIcon({ size = 20 }: IconProps) {
|
||||
return (
|
||||
<svg viewBox="0 0 24 24" width={size} height={size} aria-hidden="true" {...strokeProps}>
|
||||
<path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5c.08-1.25-.27-2.48-1-3.5c.28-1.15.28-2.35 0-3.5c0 0-1 0-3 1.5c-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.4 5.4 0 0 0 4 9c0 3.5 3 5.5 6 5.5c-.39.49-.68 1.05-.85 1.65S8.93 17.38 9 18v4" />
|
||||
<path d="M9 18c-4.51 2-5-2-7-2" />
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function LinkedinIcon({ size = 20 }: IconProps) {
|
||||
return (
|
||||
<svg viewBox="0 0 24 24" width={size} height={size} aria-hidden="true" {...strokeProps}>
|
||||
<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2a2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6M2 9h4v12H2z" />
|
||||
<circle cx="4" cy="4" r="2" />
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
// Brand glyphs (simple-icons, monochrome currentColor) — lucide dropped brand icons
|
||||
export function TelegramIcon({ size = 20 }: IconProps) {
|
||||
return (
|
||||
<svg viewBox="0 0 24 24" width={size} height={size} aria-hidden="true" fill="currentColor">
|
||||
<path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12a12 12 0 0 0 12-12A12 12 0 0 0 12 0zm4.962 7.224c.1-.002.321.023.465.14a.5.5 0 0 1 .171.325c.016.093.036.306.02.472c-.18 1.898-.962 6.502-1.36 8.627c-.168.9-.499 1.201-.82 1.23c-.696.065-1.225-.46-1.9-.902c-1.056-.693-1.653-1.124-2.678-1.8c-1.185-.78-.417-1.21.258-1.91c.177-.184 3.247-2.977 3.307-3.23c.007-.032.014-.15-.056-.212s-.174-.041-.249-.024q-.159.037-5.061 3.345q-.72.495-1.302.48c-.428-.008-1.252-.241-1.865-.44c-.752-.245-1.349-.374-1.297-.789q.04-.324.893-.663q5.247-2.286 6.998-3.014c3.332-1.386 4.025-1.627 4.476-1.635" />
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function ZaloIcon({ size = 20 }: IconProps) {
|
||||
return (
|
||||
<svg viewBox="0 0 24 24" width={size} height={size} aria-hidden="true" fill="currentColor">
|
||||
<path d="M12.49 10.272v-.45h1.347v6.322h-.77a.576.576 0 0 1-.577-.573v.001a3.27 3.27 0 0 1-1.938.632a3.284 3.284 0 0 1-3.284-3.282a3.284 3.284 0 0 1 3.284-3.282a3.27 3.27 0 0 1 1.937.632zM6.919 7.79v.205c0 .382-.051.694-.3 1.06l-.03.034a8 8 0 0 0-.242.285L2.024 14.8h4.895v.768a.576.576 0 0 1-.577.576H0v-.362c0-.443.11-.641.25-.847L4.858 9.23H.192V7.79zm8.551 8.354a.48.48 0 0 1-.48-.48V7.79h1.441v8.354zM20.693 9.6a3.306 3.306 0 1 1 .002 6.612a3.306 3.306 0 0 1-.002-6.612m-10.14 5.253a1.932 1.932 0 1 0 0-3.863a1.932 1.932 0 0 0 0 3.863m10.14-.003a1.945 1.945 0 1 0 0-3.89a1.945 1.945 0 0 0 0 3.89" fillRule="evenodd" />
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
@@ -35,6 +35,7 @@ export const experiences: ExperienceEntry[] = [
|
||||
title: "Senior Software Engineer",
|
||||
titleEn: "Senior Software Engineer",
|
||||
company: "Lazada Tech Hub Vietnam",
|
||||
logo: "lazada",
|
||||
duration: "Jan 2020 – Aug 2026",
|
||||
location: "Ho Chi Minh City, Vietnam",
|
||||
responsibilities: [
|
||||
@@ -70,6 +71,7 @@ export const experiences: ExperienceEntry[] = [
|
||||
id: "sap-senior-swe",
|
||||
title: "Senior Software Engineer",
|
||||
titleEn: "Senior Software Engineer",
|
||||
logo: "sap",
|
||||
company: "SAP Lab Vietnam",
|
||||
duration: "2017 – 12/2019",
|
||||
location: "Ho Chi Minh City, Vietnam",
|
||||
|
||||
@@ -18,6 +18,9 @@ export const profile: Profile = {
|
||||
linkedinUrl: "https://www.linkedin.com/in/dong-nz",
|
||||
githubHandle: "dong-nz",
|
||||
linkedinHandle: "dong-nz",
|
||||
telegramUrl: "https://t.me/dongdn",
|
||||
telegramHandle: "dongdn",
|
||||
zaloUrl: "https://zaloapp.com/qr/p/14ic4cmkuegf",
|
||||
currentInterests: [
|
||||
"AI in logistics",
|
||||
"Digital twins",
|
||||
|
||||
@@ -8,5 +8,12 @@ export const resumeLanguageLabels: Record<Language, string> = {
|
||||
vi: 'Tiếng Việt',
|
||||
}
|
||||
|
||||
// QR codes embedded in the resume header — images exported from the
|
||||
// Telegram/Zalo apps, stored in public/resume-qr/ (owner-provided assets)
|
||||
export const resumeQr: { id: string; file: string; label: string }[] = [
|
||||
{ id: 'telegram', file: 'telegram.jpg', label: 'Telegram' },
|
||||
{ id: 'zalo', file: 'zalo.jpg', label: 'Zalo' },
|
||||
]
|
||||
|
||||
export const resumeUrlFor = (lang: Language): string =>
|
||||
lang === 'en' ? '/resume.pdf' : `/resume-${lang}.pdf`
|
||||
@@ -9,4 +9,6 @@ export const socialLinks: {
|
||||
{ id: 'github', href: profile.githubUrl, external: true },
|
||||
{ id: 'linkedin', href: profile.linkedinUrl, external: true },
|
||||
{ id: 'email', href: `mailto:${profile.email}`, external: false },
|
||||
{ id: 'telegram', href: profile.telegramUrl, external: true },
|
||||
{ id: 'zalo', href: profile.zaloUrl, external: true },
|
||||
]
|
||||
+7
-2
@@ -31,6 +31,8 @@ export const strings = {
|
||||
github: {en: 'View GitHub profile', vi: 'Xem hồ sơ GitHub'},
|
||||
linkedin: {en: 'View LinkedIn profile', vi: 'Xem hồ sơ LinkedIn'},
|
||||
email: {en: 'Send email', vi: 'Gửi email'},
|
||||
telegram: {en: 'Open Telegram chat', vi: 'Mở chat Telegram'},
|
||||
zalo: {en: 'Open Zalo profile', vi: 'Mở hồ sơ Zalo'},
|
||||
},
|
||||
},
|
||||
footer: {
|
||||
@@ -66,8 +68,8 @@ export const strings = {
|
||||
heading: {en: 'Experience', vi: 'Kinh nghiệm'},
|
||||
tldr: {en: 'TL;DR', vi: 'TL;DR'},
|
||||
tldrText: {
|
||||
en: '15 years of experience, more than 5 companies along the way. Too long to tell.',
|
||||
vi: '15 năm kinh nghiệm, hơn 5 công ty đã đi qua. Quá dài để kể hết.'
|
||||
en: '15 years of experience, more than 8 companies along the way. Too long to tell.',
|
||||
vi: '15 năm kinh nghiệm, hơn 8 công ty đã đi qua. Quá dài để kể hết.'
|
||||
},
|
||||
},
|
||||
projects: {
|
||||
@@ -89,6 +91,9 @@ export const strings = {
|
||||
email: {en: 'Email', vi: 'Email'},
|
||||
github: {en: 'GitHub', vi: 'GitHub'},
|
||||
linkedin: {en: 'LinkedIn', vi: 'LinkedIn'},
|
||||
telegram: {en: 'Telegram', vi: 'Telegram'},
|
||||
zalo: {en: 'Zalo', vi: 'Zalo'},
|
||||
zaloSub: {en: 'Chat on Zalo', vi: 'Chat qua Zalo'},
|
||||
},
|
||||
projectDetail: {
|
||||
notFound: {en: 'Project Not Found', vi: 'Không tìm thấy dự án'},
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { SectionHeading } from '@/components/ui/SectionHeading'
|
||||
import { DownloadResume } from '@/components/sections/DownloadResume'
|
||||
import { ContactLinks } from '@/components/ui/ContactLinks'
|
||||
import { motion } from 'motion/react'
|
||||
import { InView } from '@/components/ui/InView'
|
||||
import { profile } from '@/data/profile'
|
||||
import { useLanguage } from '@/hooks/useLanguage'
|
||||
import { strings } from '@/i18n/strings'
|
||||
export function ContactPage() {
|
||||
@@ -21,67 +21,7 @@ export function ContactPage() {
|
||||
}}
|
||||
>
|
||||
<SectionHeading title={strings.contact.heading[lang]} tag={strings.common.contactTag[lang]} />
|
||||
<div className="contact-links">
|
||||
<motion.a
|
||||
href={`mailto:${profile.email}`}
|
||||
className="contact-link"
|
||||
initial={{ opacity: 0, y: 24 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true, amount: 0.2 }}
|
||||
transition={{ duration: 0.45, ease: 'easeOut', delay: 0 }}
|
||||
whileHover={{ scale: 1.02, y: -4 }}
|
||||
whileTap={{ scale: 0.98 }}
|
||||
>
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" width="24" height="24">
|
||||
<rect x="2" y="4" width="20" height="16" rx="2" />
|
||||
<path d="M22 4l-10 8L2 4" />
|
||||
</svg>
|
||||
<div>
|
||||
<div className="link-label">{strings.contact.email[lang]}</div>
|
||||
<div className="contact-link-sub">{profile.email}</div>
|
||||
</div>
|
||||
</motion.a>
|
||||
<motion.a
|
||||
href={profile.githubUrl}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="contact-link"
|
||||
initial={{ opacity: 0, y: 24 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true, amount: 0.2 }}
|
||||
transition={{ duration: 0.45, ease: 'easeOut', delay: 0.08 }}
|
||||
whileHover={{ scale: 1.02, y: -4 }}
|
||||
whileTap={{ scale: 0.98 }}
|
||||
>
|
||||
<svg viewBox="0 0 24 24" fill="currentColor" width="24" height="24">
|
||||
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z" />
|
||||
</svg>
|
||||
<div>
|
||||
<div className="link-label">{strings.contact.github[lang]}</div>
|
||||
<div className="contact-link-sub">@{profile.githubHandle}</div>
|
||||
</div>
|
||||
</motion.a>
|
||||
<motion.a
|
||||
href={profile.linkedinUrl}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="contact-link"
|
||||
initial={{ opacity: 0, y: 24 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true, amount: 0.2 }}
|
||||
transition={{ duration: 0.45, ease: 'easeOut', delay: 0.16 }}
|
||||
whileHover={{ scale: 1.02, y: -4 }}
|
||||
whileTap={{ scale: 0.98 }}
|
||||
>
|
||||
<svg viewBox="0 0 24 24" fill="currentColor" width="24" height="24">
|
||||
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" />
|
||||
</svg>
|
||||
<div>
|
||||
<div className="link-label">{strings.contact.linkedin[lang]}</div>
|
||||
<div className="contact-link-sub">@{profile.linkedinHandle}</div>
|
||||
</div>
|
||||
</motion.a>
|
||||
</div>
|
||||
<ContactLinks />
|
||||
<DownloadResume />
|
||||
</motion.section>
|
||||
</InView>
|
||||
|
||||
+5
-1
@@ -2,7 +2,7 @@ export type Language = 'en' | 'vi';
|
||||
|
||||
export type Palette = 'red' | 'blue';
|
||||
|
||||
export type SocialId = 'github' | 'linkedin' | 'email';
|
||||
export type SocialId = 'github' | 'linkedin' | 'email' | 'telegram' | 'zalo';
|
||||
|
||||
export type ProjectCategory =
|
||||
| "software-engineering"
|
||||
@@ -48,6 +48,7 @@ export interface ExperienceEntry {
|
||||
responsibilities: string[];
|
||||
responsibilitiesEn?: string[];
|
||||
variant?: 'current' | 'gap';
|
||||
logo?: string;
|
||||
}
|
||||
|
||||
export interface SkillGroup {
|
||||
@@ -80,6 +81,9 @@ export interface Profile {
|
||||
linkedinUrl: string;
|
||||
githubHandle: string;
|
||||
linkedinHandle: string;
|
||||
telegramUrl: string;
|
||||
telegramHandle: string;
|
||||
zaloUrl: string;
|
||||
currentInterests: string[];
|
||||
roles: string[];
|
||||
philosophy: PhilosophyPoint[];
|
||||
|
||||
Reference in new issue
Block a user