Skip to content

Commit ba65c7b

Browse files
committed
feat(about): update content and add performance reports
refactor(Header): add back button and adjust layout style(ContentImage): reduce min-height ci(lighthouse): update reports folder path
1 parent 22bfaa1 commit ba65c7b

File tree

7 files changed

+42
-7
lines changed

7 files changed

+42
-7
lines changed

.github/workflows/lighthouse.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
PSURL: https://pagespeed-insights.herokuapp.com
1616
PSRDESKTOP: desktop
1717
PSRMOBILE: mobile
18-
RESULTSFOLDER: public/assets/images/reports
18+
RESULTSFOLDER: public/media/web-reports/pagespeed
1919
steps:
2020
- uses: actions/checkout@v2 # This is a premade github action
2121
with:
File renamed without changes.
File renamed without changes.

src/contents/about/id.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Saya adalah seorang ***Software Engineer*** dengan pengalaman lebih dari 5 tahun
1010

1111
Saya antusias mengeksplorasi teknologi yang sedang naik daun seperti ***AI***, ***Web3***, dan ***blockchain***, sambil terus mendalami teknologi web & mobile modern dengan fokus pada *Developer Experience (DX)*, performa, dan selalu mengikuti perkembangan terbaru.
1212

13-
Saya cepat belajar, senang bekerja sama dalam tim, dan juga telah membuat beberapa proyek sampingan serta *open-source* yang bisa kamu lihat di [GitHub](https://github.com/gadingnst) mungkin sudah bermanfaat buat developer lain di luar sana.
13+
Saya cepat belajar, senang bekerja sama dalam tim, dan juga telah membuat beberapa proyek sampingan serta *open-source* yang bisa dilihat di [GitHub](https://github.com/gadingnst) (mungkin sudah bermanfaat buat developer lain di luar sana).
1414

1515
#### Cara menyebut namaku
16-
Sebelum mengenal seseorang lebih jauh, hal pertama yang harus kamu tahu adalah cara menyebut namanya dengan benar.
16+
Sebelum mengenal seseorang lebih jauh, hal pertama yang harus diketahui adalah cara menyebut namanya dengan benar.
1717

1818
***Benar***:
1919
- Sutan
@@ -31,8 +31,8 @@ Sebelum mengenal seseorang lebih jauh, hal pertama yang harus kamu tahu adalah c
3131
#### Cerita di balik “Gading”
3232
Saya percaya kalau belajar itu seumur hidup. Komunitas online, proyek open source, mentor, rekan kerja, dan teman-teman semuanya berperan besar dalam perjalanan saya. Dari situ juga saya mulai suka berbagi: nulis dokumentasi, bikin blog, open source, dan konten edukatif buat sesama developer.
3333

34-
#### Mau tahu saya lagi ngapain?
35-
Langsung cek ke halaman [Now](/now), siapa tahu pertanyaan kamu udah kejawab di situ.
34+
#### Mau tau saya ngapain?
35+
Langsung cek ke halaman [Now](/now), siapa tau pertanyaan kamu udah kejawab di situ.
3636

3737
---
3838

@@ -41,6 +41,11 @@ Website ini saya bangun pakai teknologi *JAMStack* dengan *Next.js*. Kode sumber
4141

4242
Saya lumayan peduli sama *performance* dan *SEO*, jadi saya tampilkan laporan performa situs ini di halaman ini dan bakal selalu diperbarui. Thanks banget buat [Ankur Parihar](https://github.com/ankurparihar) yang bikin [Readme Pagespeed Insight](https://github.com/ankurparihar/readme-pagespeed-insights) — tool yang otomatis generate laporan performa ini.
4343

44+
<div className="max-w-[720px] flex flex-col gap-0 mx-auto">
45+
![Laporan *Performance* (Desktop)](/media/web-reports/pagespeed/desktop.svg)
46+
![Laporan *Performance* (Mobile)](/media/web-reports/pagespeed/mobile.svg)
47+
</div>
48+
4449
---
4550

4651
<div className="text-center italic">

src/modules/ContentParser/components/ContentImage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function ContentImage(props: ContentImageProps) {
1212
const { src, alt } = props;
1313
return (
1414
<ImageWithTools
15-
figureClassName="flex flex-col items-center min-h-[300px] w-full justify-center my-4 rounded-lg"
15+
figureClassName="flex flex-col items-center min-h-[200px] w-full justify-center my-4 rounded-lg"
1616
enableZoom
1717
enableDownload
1818
src={src}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
'use client';
2+
3+
import { ChevronLeft } from 'lucide-react';
4+
import { useRouter } from 'next/navigation';
5+
6+
import cn from '@/designs/utils/cn';
7+
import useBlogContentLanguages from '@/modules/Blog/hooks/useBlogContentLanguages';
8+
9+
export default function BackButton() {
10+
const router = useRouter();
11+
12+
const { languagesCount } = useBlogContentLanguages();
13+
14+
if (languagesCount < 1) return null;
15+
16+
return (
17+
<button
18+
onClick={router.back}
19+
className={cn([
20+
'liquid-glass-shadow btn btn-ghost btn-circle',
21+
'transition-all duration-300 hover:bg-white/80 hover:text-black hover:scale-105'
22+
])}
23+
aria-label="Back"
24+
>
25+
<ChevronLeft className="w-5 h-5" />
26+
</button>
27+
);
28+
}

src/packages/components/layouts/Header/Header.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import cn from '@/designs/utils/cn';
44
import NextLink from '@/packages/components/base/Navigations/NextLink';
55

66
import AppThemeSelector from './AppThemeSelector';
7+
import BackButton from './BackButton';
78
import LanguageSelector from './LanguageSelector';
89
import Menu from './Menu';
910

@@ -15,7 +16,8 @@ export default function Header() {
1516
])}
1617
>
1718
<div className="base-container flex justify-between items-center">
18-
<div className="navbar-start">
19+
<div className="navbar-start gap-2">
20+
<BackButton />
1921
<NextLink
2022
withCurrentLocale
2123
href="/"

0 commit comments

Comments
 (0)