Skip to content

Commit

Permalink
Added Resume download button and added styling
Browse files Browse the repository at this point in the history
  • Loading branch information
kmiguel10 committed Oct 17, 2023
1 parent e5bb8e7 commit 7a1f6c3
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 33 deletions.
39 changes: 37 additions & 2 deletions app/components/ui/header.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
"use client";

import React from "react";
import ProfileAvatar from "./profile-avatar";
import Button from "./button";
import { Github, Twitter, Linkedin } from "lucide-react";
import { Github, Download, Linkedin } from "lucide-react";
import { usePathname } from "next/navigation";

const ProfileHeader = () => {
const currentPath = usePathname();

return (
<div className="flex flex-col items-center rounded-xl border border-gray-6 bg-gray-2 p-3 md:flex-row md:justify-between md:rounded-2xl md:p-6">
<div className="flex w-full items-center">
Expand Down Expand Up @@ -34,13 +39,29 @@ const ProfileHeader = () => {
<Button
href="https://github.com/kmiguel10"
leftIcon={<Github />}
intent="success"
variant="primary"
newTab
>
GitHub
</Button>
{currentPath === "/resume" && (
<Button
size="md"
className="w-full"
leftIcon={<Download />}
intent="success"
variant="outline"
newTab
>
<a href="/kentmiguel.pdf" download>
Resume
</a>
</Button>
)}
</div>
{/* Links (Mobile) */}
<div className="mt-4 flex w-full space-x-2 md:hidden">
{" "}
<Button
size="md"
intent="primary"
Expand All @@ -60,6 +81,20 @@ const ProfileHeader = () => {
>
GitHub
</Button>
{currentPath === "/resume" && (
<Button
size="md"
className="w-full"
leftIcon={<Download />}
intent="success"
variant="outline"
newTab
>
<a href="/kentmiguel.pdf" download>
Resume
</a>
</Button>
)}
</div>
</div>
);
Expand Down
56 changes: 27 additions & 29 deletions public/avatar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/kentmiguel.pdf
Binary file not shown.
1 change: 0 additions & 1 deletion public/next.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/vercel.svg

This file was deleted.

0 comments on commit 7a1f6c3

Please sign in to comment.