update resume to include page viewer

This commit is contained in:
2026-11-10 17:17:01 -05:00
parent 16e089ffea
commit 9361f033de
6 changed files with 31 additions and 6 deletions
+5 -2
View File
@@ -1,10 +1,13 @@
---
interface Props { href: string; primary?: boolean; }
const { href, primary } = Astro.props;
interface Props { href: string; primary?: boolean; download?: boolean; newTab?: boolean; }
const { href, primary, download, newTab } = Astro.props;
---
<a
href={href}
download={download}
target={newTab ? '_blank' : undefined}
rel={newTab ? 'noopener' : undefined}
class:list={[
'border px-5 py-3.5 font-mono text-[14px] hover:border-amber hover:bg-amber hover:text-canvas',
primary ? 'border-accent bg-accent font-medium text-canvas' : 'border-line-2 bg-canvas',
+1 -1
View File
@@ -6,7 +6,7 @@ const links = [
site.github && { label: 'GitHub', href: site.github },
site.linkedin && { label: 'LinkedIn', href: site.linkedin },
site.gitea && { label: 'Gitea', href: site.gitea },
site.resume && { label: 'Résumé (PDF)', href: site.resume },
{ label: 'Résumé', href: site.resumePage },
].filter(Boolean) as { label: string; href: string }[];
---
+2 -2
View File
@@ -8,8 +8,8 @@ export const site = {
github: "https://github.com/dylanbenzi" as string,
linkedin: "https://linkedin.com/in/dylanbenzi" as string,
gitea: "https://gitea.dylanbenzi.com/dylan",
// Put a public résumé (no phone or street address) in /public and set e.g. '/dylan-benzi-resume.pdf'.
resume: "Dylan Benzi Resume.pdf" as string,
resume: "/dylan-benzi-resume.pdf",
resumePage: "/resume",
nowTracking: "Flight Tracker Display",
readouts: [
{ label: "SCHOOL", value: "Georgia Tech, CpE · 2028", amber: false },
+1 -1
View File
@@ -34,7 +34,7 @@ const select_projects = projects.slice(0, projects.length > max_projects ? max_p
<div class="mt-4 flex flex-wrap items-center justify-between gap-x-6 gap-y-3">
<div class="flex flex-wrap gap-3">
<Button primary href="#contact">Contact</Button>
<Button href={site.resume}>{'Résumé (PDF)'}</Button>
<Button href={site.resumePage}>{'Résumé (PDF)'}</Button>
</div>
<div class="flex flex-wrap items-center gap-x-4 gap-y-2 border border-now-line bg-now-bg px-4 py-3 text-[15px] text-now-text"><b class="font-mono text-[12px] font-normal text-amber">NOW BUILDING</b>{site.nowTracking}</div>
</div>
+22
View File
@@ -0,0 +1,22 @@
---
import Base from '../layouts/Base.astro';
import SectionHeader from '../components/SectionHeader.astro';
import Button from '../components/Button.astro';
import { site } from '../data/site';
---
<Base title="Résumé — Dylan Benzi">
<section class="pt-10" aria-labelledby="resume-h">
<SectionHeader title="Résumé">
<div class="flex flex-wrap gap-3">
<Button primary href={site.resume} download>Download</Button>
<Button href={site.resume} newTab>Open in new tab</Button>
</div>
</SectionHeader>
<object data={`${site.resume}#view=FitH`} type="application/pdf" class="h-[85vh] w-full border border-line bg-panel">
<p class="p-6 text-body">
Your browser can't display the PDF. <a class="text-accent hover:text-amber" href={site.resume}>Download it instead.</a>
</p>
</object>
</section>
</Base>