update resume to include page viewer
This commit is contained in:
@@ -1,10 +1,13 @@
|
|||||||
---
|
---
|
||||||
interface Props { href: string; primary?: boolean; }
|
interface Props { href: string; primary?: boolean; download?: boolean; newTab?: boolean; }
|
||||||
const { href, primary } = Astro.props;
|
const { href, primary, download, newTab } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<a
|
<a
|
||||||
href={href}
|
href={href}
|
||||||
|
download={download}
|
||||||
|
target={newTab ? '_blank' : undefined}
|
||||||
|
rel={newTab ? 'noopener' : undefined}
|
||||||
class:list={[
|
class:list={[
|
||||||
'border px-5 py-3.5 font-mono text-[14px] hover:border-amber hover:bg-amber hover:text-canvas',
|
'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',
|
primary ? 'border-accent bg-accent font-medium text-canvas' : 'border-line-2 bg-canvas',
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ const links = [
|
|||||||
site.github && { label: 'GitHub', href: site.github },
|
site.github && { label: 'GitHub', href: site.github },
|
||||||
site.linkedin && { label: 'LinkedIn', href: site.linkedin },
|
site.linkedin && { label: 'LinkedIn', href: site.linkedin },
|
||||||
site.gitea && { label: 'Gitea', href: site.gitea },
|
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 }[];
|
].filter(Boolean) as { label: string; href: string }[];
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -8,8 +8,8 @@ export const site = {
|
|||||||
github: "https://github.com/dylanbenzi" as string,
|
github: "https://github.com/dylanbenzi" as string,
|
||||||
linkedin: "https://linkedin.com/in/dylanbenzi" as string,
|
linkedin: "https://linkedin.com/in/dylanbenzi" as string,
|
||||||
gitea: "https://gitea.dylanbenzi.com/dylan",
|
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",
|
||||||
resume: "Dylan Benzi Resume.pdf" as string,
|
resumePage: "/resume",
|
||||||
nowTracking: "Flight Tracker Display",
|
nowTracking: "Flight Tracker Display",
|
||||||
readouts: [
|
readouts: [
|
||||||
{ label: "SCHOOL", value: "Georgia Tech, CpE · 2028", amber: false },
|
{ label: "SCHOOL", value: "Georgia Tech, CpE · 2028", amber: false },
|
||||||
|
|||||||
@@ -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="mt-4 flex flex-wrap items-center justify-between gap-x-6 gap-y-3">
|
||||||
<div class="flex flex-wrap gap-3">
|
<div class="flex flex-wrap gap-3">
|
||||||
<Button primary href="#contact">Contact</Button>
|
<Button primary href="#contact">Contact</Button>
|
||||||
<Button href={site.resume}>{'Résumé (PDF)'}</Button>
|
<Button href={site.resumePage}>{'Résumé (PDF)'}</Button>
|
||||||
</div>
|
</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 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>
|
</div>
|
||||||
|
|||||||
@@ -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>
|
||||||
Reference in New Issue
Block a user