Skip to content

Commit

Permalink
added cv button
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos.santos-seisdedos committed Sep 1, 2024
1 parent 50da861 commit 0127eec
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
1 change: 1 addition & 0 deletions cv.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"image": "/portfolio/me.webp",
"email": "[email protected]",
"phone": "+34 676040034",
"cv": "/portfolio/CV_CSS.pdf",
"url": "",
"quote": {
"text": "The problem today is most people spend time CONSUMING versus CREATING. Make a real commitment to start creating. It will benefit both your personal and professional life.",
Expand Down
Binary file added public/CV_CSS.pdf
Binary file not shown.
17 changes: 16 additions & 1 deletion src/components/sections/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ import X from "@/icons/X.astro"
import LinkedIn from "@/icons/LinkedIn.astro"
import GitHub from "@/icons/GitHub.astro"
import WorldMap from "@/icons/WorldMap.astro"
import CV from "@/icons/cv.astro"
import type { SocialIcon } from "@/types"
import Cv from "@/icons/cv.astro"
const { name, label, image, location, profiles, email } = basics
const { name, label, image, location, profiles, email, cv } = basics
const { city, region } = location
const SOCIAL_ICONS: SocialIcon = {
GitHub,
LinkedIn,
X,
CV,
}
const linkedInfo = profiles.find(({ network }) => network === "LinkedIn")
Expand Down Expand Up @@ -77,6 +80,18 @@ const printInfo = [email, linkedUrl].filter(Boolean).join(" • ")
)
})
}
{
cv && (
<a
href={cv}
title={`Ver curriculum vitae`}
target="_blank"
rel="noopener noreferrer"
>
<CV />
</a>
)
}
</footer>
</div>
<figure class="my-auto mx-0 sm:flex sm:items-center">
Expand Down
12 changes: 12 additions & 0 deletions src/icons/cv.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<svg
width="16"
height="16"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M14 3v4a1 1 0 0 0 1 1h4" /><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /><path d="M10 17l2 -3" /><path d="M15 17c-2.5 0 -2.5 -6 -5 -6" />
</svg>

0 comments on commit 0127eec

Please sign in to comment.