File tree Expand file tree Collapse file tree 13 files changed +96
-6
lines changed
Expand file tree Collapse file tree 13 files changed +96
-6
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,10 @@ This is a resume written in Next.js which can be deployed to GitHub Pages as a s
1515Build locally
1616
1717``` bash
18+ # corepack enable
19+ # corepack prepare pnpm@latest --activate
1820pnpm install
21+ #
1922pnpm run format
2023pnpm run lint
2124pnpm run build
Original file line number Diff line number Diff line change 6363 " tailwind"
6464 ],
6565 "license" : " MIT" ,
66+ "packageManager" :
" [email protected] +sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac" ,
6667 "scripts" : {
6768 "build" : " next build" ,
6869 "build:content" : " contentlayer2 build" ,
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ pnpm run build
4+ go run server/main.go
5+
6+ # #
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const dynamic = 'force-static';
99
1010export default function Page ( ) : ReactNode {
1111 return (
12- < div className = "container space-y-12" >
12+ < div className = "container space-y-12 print:text-xs " >
1313 < div className = "grid grid-cols-1 gap-12 md:grid-cols-2" >
1414 < AboutMe />
1515 < ContactInformation />
Original file line number Diff line number Diff line change 55@import './base' ;
66@import './variants' ;
77@import './utilities' ;
8+
9+ @media print {
10+ .break-before-page {
11+ break-before : page;
12+ }
13+ }
14+
15+ @media print {
16+ .container ,
17+ .container * {
18+ font-size : 0.8rem !important ;
19+ }
20+ }
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export default function Achievements(): ReactNode {
2525
2626 return (
2727 < >
28- < article className = "border-neutral-6 bg-neutral-2 rounded-xl border py-12 shadow-md" >
28+ < article className = "border-neutral-6 bg-neutral-2 rounded-xl border py-12 shadow-md print:break-before-page " >
2929 < div className = "container space-y-8" >
3030 < SectionHeading
3131 data-aos = "fade-center"
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export default function AdditionalInfo(): ReactNode {
1515 } ) ;
1616
1717 return (
18- < article className = "border-neutral-6 bg-neutral-2 rounded-xl border py-12 shadow-md" >
18+ < article className = "border-neutral-6 bg-neutral-2 rounded-xl border py-12 shadow-md print:break-before-page " >
1919 < div className = "container space-y-8" >
2020 < SectionHeading
2121 data-aos = "fade-center"
Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ export default function ContactCard(): ReactNode {
3737 href = "https://www.linkedin.com/in/liqiangsprofile/"
3838 rel = "noreferrer"
3939 >
40- < span className = { styles . linkHead } > https://www.linkedin.com/in/</ span >
40+ < span className = { styles . linkHead } >
41+ https://www.linkedin.com/in/
42+ </ span >
4143 < span > liqiangsprofile</ span >
4244 < i
4345 className = "fas fa-external-link-alt"
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export default function Professional(): ReactNode {
1515 } ) ;
1616
1717 return (
18- < article className = "border-neutral-6 bg-neutral-2 rounded-xl border py-12 shadow-md" >
18+ < article className = "border-neutral-6 bg-neutral-2 rounded-xl border py-12 shadow-md print:break-before-page " >
1919 < div className = "container space-y-8" >
2020 < SectionHeading
2121 data-aos = "fade-center"
Original file line number Diff line number Diff line change 1+ 'use client' ;
2+
3+ import { ReactNode } from 'react' ;
4+ import { Button } from 'src/components/button/button' ;
5+
6+ // https://icons.getbootstrap.com/icons/file-pdf/
7+ export default function DownloadButton ( ) : ReactNode {
8+ return (
9+ < Button asChild key = "download-pdf-version" size = "icon" >
10+ < a
11+ href = "/print/pdf"
12+ target = "_blank"
13+ rel = "noopener noreferrer"
14+ title = "Download PDF version"
15+ aria-label = "Download PDF version"
16+ >
17+ < svg
18+ xmlns = "http://www.w3.org/2000/svg"
19+ width = "16"
20+ height = "16"
21+ fill = "currentColor"
22+ className = "bi bi-file-pdf"
23+ viewBox = "0 0 16 16"
24+ >
25+ < path d = "M4 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm0 1h8a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1" />
26+ < path d = "M4.603 12.087a.8.8 0 0 1-.438-.42c-.195-.388-.13-.776.08-1.102.198-.307.526-.568.897-.787a7.7 7.7 0 0 1 1.482-.645 20 20 0 0 0 1.062-2.227 7.3 7.3 0 0 1-.43-1.295c-.086-.4-.119-.796-.046-1.136.075-.354.274-.672.65-.823.192-.077.4-.12.602-.077a.7.7 0 0 1 .477.365c.088.164.12.356.127.538.007.187-.012.395-.047.614-.084.51-.27 1.134-.52 1.794a11 11 0 0 0 .98 1.686 5.8 5.8 0 0 1 1.334.05c.364.065.734.195.96.465.12.144.193.32.2.518.007.192-.047.382-.138.563a1.04 1.04 0 0 1-.354.416.86.86 0 0 1-.51.138c-.331-.014-.654-.196-.933-.417a5.7 5.7 0 0 1-.911-.95 11.6 11.6 0 0 0-1.997.406 11.3 11.3 0 0 1-1.021 1.51c-.29.35-.608.655-.926.787a.8.8 0 0 1-.58.029m1.379-1.901q-.25.115-.459.238c-.328.194-.541.383-.647.547-.094.145-.096.25-.04.361q.016.032.026.044l.035-.012c.137-.056.355-.235.635-.572a8 8 0 0 0 .45-.606m1.64-1.33a13 13 0 0 1 1.01-.193 12 12 0 0 1-.51-.858 21 21 0 0 1-.5 1.05zm2.446.45q.226.244.435.41c.24.19.407.253.498.256a.1.1 0 0 0 .07-.015.3.3 0 0 0 .094-.125.44.44 0 0 0 .059-.2.1.1 0 0 0-.026-.063c-.052-.062-.2-.152-.518-.209a4 4 0 0 0-.612-.053zM8.078 5.8a7 7 0 0 0 .2-.828q.046-.282.038-.465a.6.6 0 0 0-.032-.198.5.5 0 0 0-.145.04c-.087.035-.158.106-.196.283-.04.192-.03.469.046.822q.036.167.09.346z" />
27+ </ svg >
28+ </ a >
29+ </ Button >
30+ ) ;
31+ }
You can’t perform that action at this time.
0 commit comments