Skip to content

Commit

Permalink
Make résumé print friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
banga committed Jan 5, 2024
1 parent 299fb43 commit 582a952
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { SocialIcons } from "./SocialIcons.js";

export function Footer() {
return (
<div className="mt1 flex-row space-between align-center flex-wrap">
<div className="mt1 flex-row space-between align-center flex-wrap no-print">
<div className="flex-col">
<div className="bold">Shrey Banga</div>
<div className="font-small dim">banga.shrey@gmail.com</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function Header({ pathName }: { pathName: string }) {
return (
<BuildContext.Consumer>
{({ baseUrl }) => (
<div>
<div className="no-print">
<Link href="/">{new URL(baseUrl).hostname}</Link>
<span className="dim"> / </span>
<Link href={pathName}>{title}</Link>
Expand Down
16 changes: 13 additions & 3 deletions src/pages/ResumePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,19 @@ function Education() {

function Projects() {
return (
<div className="pb1 pt1">
A list of my other projects is <Link href={PROJECTS_PATH}>here</Link>.
</div>
<BuildContext.Consumer>
{({ baseUrl }) => (
<div className="pb1 pt1">
A list of my side projects is at{" "}
<Link href={PROJECTS_PATH}>
{new URL(PROJECTS_PATH, baseUrl)
.toString()
.replace(/^https?:\/\//g, "")}
</Link>
.
</div>
)}
</BuildContext.Consumer>
);
}

Expand Down
11 changes: 11 additions & 0 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -308,3 +308,14 @@ h2:hover > .permalink,
h3:hover > .permalink {
opacity: 1;
}

/* Print */
@media print {
.no-print {
display: none;
}

body {
max-width: 100%;
}
}

0 comments on commit 582a952

Please sign in to comment.