Skip to content

Commit d29f958

Browse files
committed
feat: Add new recommendation box
1 parent 9cb654d commit d29f958

File tree

5 files changed

+42
-2
lines changed

5 files changed

+42
-2
lines changed

src/data/recommendations.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ export const RECOMMENDATION_PAGE_DATA = {
1515
title: 'Recommendations',
1616
description:
1717
'I have had the pleasure of working with many talented individuals throughout my career. <br /> Here are some of the recommendations I have received from my colleagues and managers. <br /> You can also find more Recommendations on my LinkedIn profile.',
18+
aboutMeDescription:
19+
'I have had the pleasure of working with many talented individuals throughout my career. <br /> Here are some of the recommendations I have received from them.',
1820
footer: 'If you would like to know more about me, feel free to reach out.',
1921
footerActionLabel: 'Contact Me',
2022
footerActionURL: ROUTES.CONTACT_ME,
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import { RECOMMENDATION_PAGE_DATA, RECOMMENDATIONS, type RecommendationItem } from "@/data";
2+
import { ROUTES } from "@/shared/constants";
3+
import Image from "next/image";
4+
import Link from "next/link";
5+
6+
export function RecommendationsBox() {
7+
return (
8+
<div className='w-full flex flex-col mt-5 items-center'>
9+
<p className="w-full mb-4" dangerouslySetInnerHTML={{ __html: RECOMMENDATION_PAGE_DATA.aboutMeDescription }} />
10+
11+
<div className="max-h-[210px] w-full flex flex-wrap items-center justify-center gap-2 overflow-hidden">
12+
{RECOMMENDATIONS.slice(0, 17).map(({ id, fullName, imageURL }: RecommendationItem) => imageURL && (
13+
<Link
14+
key={id}
15+
href={ROUTES.RECOMMENDATIONS}
16+
>
17+
<Image
18+
width={100}
19+
height={100}
20+
alt={fullName}
21+
src={imageURL}
22+
loading="lazy"
23+
className="grayscale rounded-md w-[100px] h-[100px]"
24+
/>
25+
</Link>
26+
))}
27+
</div>
28+
29+
<Link
30+
href={ROUTES.RECOMMENDATIONS}
31+
className="border-b border-orange-500 px-5 pb-1 duration-200 hover:px-8 my-5"
32+
>
33+
See all recommendations
34+
</Link>
35+
</div>
36+
);
37+
}

src/domains/projects/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function ProjectsPage() {
4848
<p>{PROJECTS_DATA.footer}</p>
4949
<Link
5050
href={PROJECTS_DATA.footerActionURL}
51-
className="border-b border-orange-500 px-5 pb-1 duration-200 hover:px-8 hover:text-orange-500"
51+
className="border-b border-orange-500 px-5 pb-1 duration-200 hover:px-8"
5252
>
5353
{PROJECTS_DATA.footerActionLabel}
5454
</Link>

src/domains/recommendations/components/recommendation-card/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export function RecommendationCard({
2626

2727
return (
2828
<div
29+
id={`item-${data.id}`}
2930
style={{ animationDelay }}
3031
className={clsx(
3132
'w-full flex flex-col items-start gap-2 bg-white p-4 dark:bg-black/50',

src/domains/recommendations/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function RecommendationsPage() {
4848
<p>{RECOMMENDATION_PAGE_DATA.footer}</p>
4949
<Link
5050
href={RECOMMENDATION_PAGE_DATA.footerActionURL}
51-
className="border-b border-orange-500 px-5 pb-1 duration-200 hover:px-8 hover:text-orange-500"
51+
className="border-b border-orange-500 px-5 pb-1 duration-200 hover:px-8"
5252
>
5353
{RECOMMENDATION_PAGE_DATA.footerActionLabel}
5454
</Link>

0 commit comments

Comments
 (0)