Skip to content

Commit

Permalink
feat(resume): add resume
Browse files Browse the repository at this point in the history
Currently doesn't work with smaller screens for some reason. There is a bug with the embedded
  • Loading branch information
Aeonoi committed Oct 25, 2024
1 parent 5d13960 commit 1f390fa
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Contact from "@/components/contact";
import Hero from "@/components/hero";
import Navbar from "@/components/navbar";
import Projects from "@/components/projects";
import Resume from "@/components/resume";

const Home: React.FC = () => {
return (
Expand All @@ -16,6 +17,8 @@ const Home: React.FC = () => {
<Projects />
{/* Contacts Section */}
{/* <Contact /> */}
{/* Resume Section */}
<Resume />
</main>
);
};
Expand Down
8 changes: 8 additions & 0 deletions components/navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Link from "next/link";
import Resume from "./resume";

const Navbar: React.FC = () => {
return (
Expand Down Expand Up @@ -33,6 +34,13 @@ const Navbar: React.FC = () => {
{/* > */}
{/* Contact */}
{/* </Link> */}
{/* Resume */}
<Link
href="#resume"
className="text-gray-800 hover:text-catppuccin_blue"
>
Resume
</Link>
</div>
</div>
</nav>
Expand Down
35 changes: 35 additions & 0 deletions components/resume.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
"use client";

import Background from "./background";

const Resume: React.FC = () => {
return (
<main id="resume" className="animate-fadeIn">
<Background styles="h-max w-max">
<p className="text-5xl items-center text-center text-black">Resume</p>
<div className="grid grid-cols-1 lg:grid-cols-2">
<div className="hidden lg:flex">
<embed
src="Resume.pdf#zoom=100"
width={window.innerWidth / 2}
height={window.innerHeight * 0.8}
type="application/pdf"
/>
</div>
<div className="flex items-center justify-center">
<a href="/Resume.pdf" download="Resume.pdf">
<button
type="button"
className="text-2xl bg-catppuccin_red text-white py-2 px-4 rounded-md hover:bg-red-400 transition duration-300"
>
Download Resume
</button>
</a>
</div>
</div>
</Background>
</main>
);
};

export default Resume;
Binary file added public/Resume.pdf
Binary file not shown.

0 comments on commit 1f390fa

Please sign in to comment.