Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

#16 Issue Fixed #45

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
10 changes: 10 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { GlobeIcon, MailIcon, PhoneIcon } from "lucide-react";
import { Button } from "@/components/ui/button";
import { RESUME_DATA } from "@/data/resume-data";
import { ProjectCard } from "@/components/project-card";
import { getUrlWithoutProtocol } from "@/lib/utils";

export const metadata: Metadata = {
title: `${RESUME_DATA.name} | ${RESUME_DATA.about}`,
Expand Down Expand Up @@ -84,6 +85,15 @@ export default function Page() {
<span className="underline">{RESUME_DATA.contact.tel}</span>
</a>
) : null}
<div className="mt-3 flex flex-col gap-x-1">
{RESUME_DATA.contact.social.map((social) => (
<a href={social.url} key={social.name}>
<span className="underline">
{getUrlWithoutProtocol(social.url)}
</span>
</a>
))}
</div>
</div>
</div>

Expand Down
4 changes: 4 additions & 0 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}

export function getUrlWithoutProtocol(url: string) {
return url.replace("https://", "").replace("www.", "");
}