Skip to content

Commit 5aaddda

Browse files
committed
feat: update author assets and metadata configuration
- add new author chibi images and update references - remove old cv file and update resume iframe path - update metadata builder to use new default image - fix button label indentation in profile info - remove image from base page metadata
1 parent 754ef1b commit 5aaddda

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed
1.36 MB
Loading
1.36 MB
Loading
1.5 MB
Loading

public/media/cv_gading.pdf

-68.2 KB
Binary file not shown.

src/app/(base)/[lang]/about/page.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { AUTHOR_NAME } from '@/configs/author';
12
import AboutPage, { generateAboutPathsWithLang } from '@/modules/About/About.page';
23
import { getContentMultiLanguage } from '@/modules/Content/services/content-parser';
34
import { I18nLocales } from '@/packages/libs/I18n/interface';
@@ -17,10 +18,10 @@ export const generateMetadata = withGenerateMetadata<{ lang: I18nLocales; }>(asy
1718
locale: lang,
1819
meta: {
1920
slug: '/about',
20-
title: content.meta.title,
21+
title: `About ${AUTHOR_NAME}`,
2122
description: content.meta.description,
2223
keywords: content.meta.keywords,
23-
image: content.meta.image,
24+
image: '/media/authors/gading-chibi-talk-signature.png',
2425
tags: content.meta.tags,
2526
date: content.meta.date
2627
}

src/app/(base)/[lang]/page.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export const generateMetadata = withGenerateMetadata<LangPageProps>(async({ para
3030
description: meta.description,
3131
keywords: meta.keywords,
3232
tags: meta.tags,
33-
image: meta.image,
3433
date: meta.date
3534
}
3635
});

src/app/(base)/about/page.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { AUTHOR_NAME } from '@/configs/author';
12
import AboutPage, { generateAboutPathsDefault } from '@/modules/About/About.page';
23
import { getContentMultiLanguage } from '@/modules/Content/services/content-parser';
34
import { withGenerateMetadata } from '@/packages/utils/metadata/metadata';
@@ -14,10 +15,10 @@ export const generateMetadata = withGenerateMetadata(async() => {
1415
return metadataBuilder({
1516
meta: {
1617
slug: '/about',
17-
title: content.meta.title,
18+
title: `About ${AUTHOR_NAME}`,
1819
description: content.meta.description,
1920
keywords: content.meta.keywords,
20-
image: content.meta.image,
21+
image: '/media/authors/gading-chibi-talk-signature.png',
2122
date: content.meta.date,
2223
tags: content.meta.tags
2324
}

src/modules/About/components/ProfileInfo.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const LeftDesc = ({ className }: { className?: string }) => (
2424
rel="noopener noreferrer"
2525
data-umami-event="about_portfolio"
2626
>
27-
Portfolio
27+
Portfolio
2828
</ButtonLink>
2929
<ButtonLink
3030
href={`https://linkedin.com/in/${AUTHOR_LINKEDIN}`}
@@ -34,7 +34,7 @@ const LeftDesc = ({ className }: { className?: string }) => (
3434
rel="noopener noreferrer"
3535
data-umami-event="about_careers"
3636
>
37-
Careers
37+
Careers
3838
</ButtonLink>
3939
</div>
4040
);
@@ -54,7 +54,7 @@ const RightDesc = ({ className }: { className?: string }) => (
5454
rel="noopener noreferrer"
5555
data-umami-event="about_resume"
5656
>
57-
Resume
57+
Resume
5858
</ButtonLink>
5959
<ButtonLink
6060
href="mailto:[email protected]"
@@ -64,7 +64,7 @@ const RightDesc = ({ className }: { className?: string }) => (
6464
rel="noopener noreferrer"
6565
data-umami-event="about_contact"
6666
>
67-
Contact
67+
Contact
6868
</ButtonLink>
6969
</div>
7070
);
@@ -79,7 +79,7 @@ function ProfileInfo() {
7979
<div className="-mt-4 flex flex-col flex-1 items-center justify-center">
8080
<Image
8181
className="rounded-full cursor-grab active:cursor-grabbing"
82-
src="/media/authors/gading-talks.jpeg"
82+
src="/media/authors/gading-chibi-talk-signature.png"
8383
alt={AUTHOR_NAME}
8484
width={180}
8585
height={180}

src/modules/Resume/Resume.page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function ResumePage() {
22
return (
3-
<iframe src="/media/cv_gading.pdf" className="h-screen w-full" />
3+
<iframe src="/media/authors/cv_gading.pdf" className="h-screen w-full" />
44
);
55
};
66

src/packages/utils/metadata/metadata.builder.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,35 +20,34 @@ interface IMetaBuilder {
2020
};
2121
}
2222

23-
const domain = BASE_URL;
24-
const thumbnail = (imageUrl: string) => cloudinary(imageUrl, { scale: 0.3 });
23+
const thumbnail = (imageUrl: string) => cloudinary(imageUrl, { scale: 0.5 });
2524

2625
export function metadataBuilder({ meta, locale = 'en' }: IMetaBuilder) {
2726
const {
2827
title,
2928
slug,
3029
description = 'Software Engineer from Palembang, Indonesia 🇮🇩',
31-
image = `${domain}/media/authors/gading-talks.jpeg`,
30+
image = '/media/authors/gading-chibi-close-signature.png',
3231
date = dt().format('YYYY-MM-DD'),
3332
keywords = '',
3433
tags = []
3534
} = meta;
3635

37-
const url = `${domain}${locale ? `/${locale}` : ''}${slug}`;
36+
const url = `${BASE_URL}${locale ? `/${locale}` : ''}${slug}`;
3837

3938
const featuredImage = thumbnail(image);
4039

4140
const combinedKeywords = [...tags, keywords].join(', ')
4241
+ 'gading\'s hideout, gadingnst, gadingnstn, gadingdev, gading.dev, gading dev, gading fadhillah, gading developer, sutan nasution, sutan nst, gading nst, gading homepage, gading, sutan gading, sutan gading fadhillah nasution, sutan, sutanlab, gading\'s website, gading website, developer, developer services, programmer, frontend, fullstack, sutanlab';
4342

4443
const metaTags: Metadata = {
45-
metadataBase: new URL(domain),
44+
metadataBase: new URL(BASE_URL),
4645
title: `${title} | ${SITE_NAME}`,
4746
description: description,
4847
keywords: combinedKeywords,
4948
authors: [{
5049
name: AUTHOR_NAME,
51-
url: domain
50+
url: BASE_URL
5251
}],
5352
openGraph: {
5453
title: `${title} | ${SITE_NAME}`,

0 commit comments

Comments
 (0)