Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added Resume download button and added styling #17

Merged
merged 1 commit into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.