From 83eec0fc723a049e8f766fb70c736731518534c1 Mon Sep 17 00:00:00 2001 From: Guus van Meerveld Date: Tue, 12 Mar 2024 19:05:24 +0100 Subject: [PATCH] added cv button to home page --- src/app/(landing)/Header.tsx | 25 ++++++++++++++++++++++--- src/app/(landing)/Projects.tsx | 4 ++-- src/app/cv/Cv.tsx | 1 - 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/src/app/(landing)/Header.tsx b/src/app/(landing)/Header.tsx index ef63fa3..64e28ce 100644 --- a/src/app/(landing)/Header.tsx +++ b/src/app/(landing)/Header.tsx @@ -6,17 +6,25 @@ import { Link } from "@nextui-org/link"; import { Spacer } from "@nextui-org/spacer"; import { Tooltip } from "@nextui-org/tooltip"; import { Component } from "@typings/component"; +import NextLink from "next/link"; import { useMemo } from "react"; -import { FiGithub, FiMail, FiLinkedin } from "react-icons/fi"; +import { FiGithub, FiMail, FiLinkedin, FiFileText } from "react-icons/fi"; import HeaderProps from "@models/header"; +interface Social { + link: string; + name: string; + icon: React.ReactElement; + isExternal?: boolean; +} + export const Header: Component<{ data: HeaderProps; avatar: string }> = ({ data, avatar }) => { - const socials = useMemo( + const socials = useMemo( () => [ { link: `mailto:${data.contact.email}`, @@ -32,6 +40,12 @@ export const Header: Component<{ data: HeaderProps; avatar: string }> = ({ link: data.contact.linkedin, name: "LinkedIn", icon: + }, + { + link: "/cv", + name: "Cv", + icon: , + isExternal: false } ], [data.contact] @@ -57,7 +71,12 @@ export const Header: Component<{ data: HeaderProps; avatar: string }> = ({ {socials.map((social) => ( - +