Lee Morgan 2 недель назад
Родитель
Сommit
bf3b071caf
4 измененных файлов с 47 добавлено и 3 удалено
  1. 7 2
      src/routes/+layout.svelte
  2. 2 1
      src/routes/+page.svelte
  3. 38 0
      src/routes/resume/+page.svelte
  4. BIN
      static/resume.pdf

+ 7 - 2
src/routes/+layout.svelte

@@ -9,6 +9,7 @@
 	const isProjects = $derived(page.url.pathname === '/projects');
 	const isProjects = $derived(page.url.pathname === '/projects');
 	const isGalleryMap = $derived(page.url.pathname === '/gallery');
 	const isGalleryMap = $derived(page.url.pathname === '/gallery');
 	const isGallery = $derived(isGalleryMap || page.url.pathname.startsWith('/gallery/'));
 	const isGallery = $derived(isGalleryMap || page.url.pathname.startsWith('/gallery/'));
+	const isResume = $derived(page.url.pathname === '/resume');
 </script>
 </script>
 
 
 <svelte:head>
 <svelte:head>
@@ -44,7 +45,11 @@
 						<a href="/gallery" aria-current={isGallery ? 'page' : undefined}>Gallery</a>
 						<a href="/gallery" aria-current={isGallery ? 'page' : undefined}>Gallery</a>
 					</li>
 					</li>
 					<li><a href="/">Currency</a></li>
 					<li><a href="/">Currency</a></li>
-					<li><a href="/">Resume/CV</a></li>
+					<li>
+						<a href="/resume" data-sveltekit-reload aria-current={isResume ? 'page' : undefined}
+							>Resume/CV</a
+						>
+					</li>
 					<li><a href="/">Git</a></li>
 					<li><a href="/">Git</a></li>
 					<li><a href="/">LinkedIn</a></li>
 					<li><a href="/">LinkedIn</a></li>
 				</ul>
 				</ul>
@@ -56,7 +61,7 @@
 		</div>
 		</div>
 	</aside>
 	</aside>
 
 
-	<div class="page" class:page-flush={isGalleryMap}>
+	<div class="page" class:page-flush={isGalleryMap || isResume}>
 		<main id="main" class="site-main">
 		<main id="main" class="site-main">
 			{@render children()}
 			{@render children()}
 		</main>
 		</main>

+ 2 - 1
src/routes/+page.svelte

@@ -35,7 +35,8 @@
 		I’m based in Murrells Inlet, South Carolina, and I’m open to new work. Whether that means
 		I’m based in Murrells Inlet, South Carolina, and I’m open to new work. Whether that means
 		additional project-based development, contract systems work, or a longer-term role, I’m
 		additional project-based development, contract systems work, or a longer-term role, I’m
 		interested in opportunities that involve building reliable web applications, managing Linux
 		interested in opportunities that involve building reliable web applications, managing Linux
-		infrastructure, or working with databases and backend systems.
+		infrastructure, or working with databases and backend systems. You can read my
+		<a href="/resume">resume</a>.
 	</p>
 	</p>
 </article>
 </article>
 
 

+ 38 - 0
src/routes/resume/+page.svelte

@@ -0,0 +1,38 @@
+<svelte:head>
+	<title>Resume — Lee Morgan</title>
+	<meta name="description" content="Resume of Lee Morgan, web developer and systems administrator." />
+</svelte:head>
+
+<div class="resume">
+	<h1 class="sr-only">Resume</h1>
+	<iframe class="frame" src="/resume.pdf" title="Lee Morgan resume"></iframe>
+</div>
+
+<style>
+	.resume {
+		position: absolute;
+		inset: 0;
+		min-height: 100svh;
+	}
+
+	.frame {
+		display: block;
+		width: 100%;
+		height: 100%;
+		min-height: 100svh;
+		border: 0;
+		background: var(--bg);
+	}
+
+	.sr-only {
+		position: absolute;
+		width: 1px;
+		height: 1px;
+		padding: 0;
+		margin: -1px;
+		overflow: hidden;
+		clip: rect(0, 0, 0, 0);
+		white-space: nowrap;
+		border: 0;
+	}
+</style>

BIN
static/resume.pdf