Skip to content

Commit 07f306a

Browse files
committed
feat(moment): add Moments link to navigation & homepage, update related icon styles
1 parent 06d9150 commit 07f306a

File tree

4 files changed

+24
-27
lines changed

4 files changed

+24
-27
lines changed

components/home-page/links.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ const LINKS = [
2222
emoji: 'dna',
2323
event: 'home-link-snippets',
2424
},
25+
...(SITE_METADATA.momentApi
26+
? [{ title: `My moment`, href: `/moment`, emoji: 'snowboarder', event: 'home-link-moment' }]
27+
: []),
2528
{
2629
title: `About me & this blog`,
2730
href: `/about`,

css/twemoji.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,3 +379,6 @@
379379
.twa-link {
380380
background-image: url('https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/1f517.svg');
381381
}
382+
.twa-snowboarder {
383+
background-image: url('https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/1f3c2.svg');
384+
}

data/navigation.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import { SITE_METADATA } from './site-metadata'
33
export const HEADER_NAV_LINKS = [
44
{ href: '/blog', title: 'Blog', emoji: 'writing-hand' },
55
{ href: '/snippets', title: 'Snippets', emoji: 'dna' },
6-
...(SITE_METADATA.momentApi
7-
? [{ href: '/moment', title: 'Moment', emoji: 'speech-balloon' }]
8-
: []),
6+
...(SITE_METADATA.momentApi ? [{ href: '/moment', title: 'Moment', emoji: 'snowboarder' }] : []),
97
{ href: '/projects', title: 'Projects', emoji: 'man-technologist' },
108
{ href: '/about', title: 'About', emoji: 'smiling-face-with-sunglasses' },
119
]
@@ -26,6 +24,7 @@ export const FOOTER_NAV_LINKS = [
2624

2725
export const FOOTER_PERSONAL_STUFF = [
2826
{ href: '/about', title: 'About' },
27+
{ href: '/moment', title: 'Moment' },
2928
{ href: '/friends', title: 'Friends' },
3029
// { href: SITE_METADATA.analytics.umamiAnalytics.shareUrl, title: 'Blog stats' },
3130
]

json/tag-data.json

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,20 @@
22
"2023": 1,
33
"2024": 1,
44
"fe": 13,
5-
"javascript": 6,
6-
"flat": 1,
7-
"react": 3,
8-
"react-router-dom": 1,
9-
"vue": 5,
10-
"vue3": 2,
115
"vue": 5,
126
"vue3": 2,
137
"deno": 1,
8+
"react": 3,
9+
"react-router-dom": 1,
10+
"javascript": 6,
11+
"flat": 1,
1412
"nextjs": 2,
1513
"database": 1,
1614
"mysql": 1,
1715
"nestjs": 1,
1816
"pinia": 2,
1917
"starapi": 1,
2018
"api": 1,
21-
"javascript": 6,
22-
"flat": 1,
2319
"css": 3,
2420
"flex": 1,
2521
"font-family": 1,
@@ -32,35 +28,31 @@
3228
"canvas": 2,
3329
"record-screen": 1,
3430
"html2canvas": 1,
31+
"video": 1,
32+
"android": 1,
33+
"webview": 2,
34+
"visualization": 1,
3535
"life": 4,
36+
"year-end": 2,
37+
"summary": 2,
3638
"diary": 1,
3739
"leap-day": 1,
3840
"websites": 1,
3941
"collect": 1,
40-
"year-end": 2,
41-
"summary": 2,
4242
"optimization": 1,
4343
"webworker": 1,
44-
"video": 1,
45-
"android": 1,
46-
"webview": 2,
47-
"visualization": 1,
48-
"blog": 1,
49-
"code-life": 1,
5044
"travel": 1,
5145
"japan": 1,
52-
"diary": 1,
53-
"leap-day": 1,
54-
"websites": 1,
55-
"collect": 1,
46+
"blog": 1,
47+
"code-life": 1,
5648
"ai": 4,
57-
"deepseek": 1,
58-
"llm": 4,
59-
"ollama": 1,
60-
"dify": 1,
6149
"mcp": 3,
50+
"llm": 4,
6251
"harmonyos": 1,
6352
"app": 1,
53+
"deepseek": 1,
54+
"ollama": 1,
55+
"dify": 1,
6456
"typescript": 3,
6557
"string": 1,
6658
"casing": 1,

0 commit comments

Comments
 (0)