File tree Expand file tree Collapse file tree 5 files changed +53
-12
lines changed
Expand file tree Collapse file tree 5 files changed +53
-12
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,18 @@ import { SUPPORTERS } from '~/data/supporters'
33import { Image } from '~/components/ui/image'
44import clsx from 'clsx'
55import { EyeClosedIcon } from 'lucide-react'
6+ import Solana from '~/icons/solana.svg'
7+
8+ const getCurrencySymbol = ( currency : string ) => {
9+ switch ( currency ) {
10+ case 'CNY' :
11+ return '¥'
12+ case 'USD' :
13+ return '$'
14+ case 'SOL' :
15+ return < Solana className = "mr-[2px] mt-[-2px] inline-block h-4 w-4" />
16+ }
17+ }
618
719export function SupportMe ( { className } : { className ?: string } ) {
820 const supportersSort = SUPPORTERS . sort ( ( a , b ) => {
@@ -61,7 +73,7 @@ export function SupportMe({ className }: { className?: string }) {
6173 ) }
6274 { supporter . amount && supporter . currency && (
6375 < span className = "ml-2 font-medium text-green-600 dark:text-green-400" >
64- { supporter . currency === 'CNY' ? '¥' : '$' }
76+ { getCurrencySymbol ( supporter . currency ) }
6577 { supporter . amount }
6678 </ span >
6779 ) }
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ import Commitlint from '~/icons/commitlint.svg'
5959import Html from '~/icons/html5.svg'
6060import Postcss from '~/icons/postcss.svg'
6161import Env from '~/icons/env.svg'
62+ import Solana from '~/icons/solana.svg'
6263
6364export const BrandsMap : Record <
6465 string ,
@@ -311,6 +312,10 @@ export const BrandsMap: Record<
311312 Icon : Apple ,
312313 url : 'https://www.apple.com/ios' ,
313314 } ,
315+ Solana : {
316+ Icon : Solana ,
317+ url : 'https://sloana.com/' ,
318+ } ,
314319}
315320
316321export function Brand ( props : {
Original file line number Diff line number Diff line change 11export interface Supporter {
22 name ?: string
33 amount ?: number
4- currency ?: 'CNY' | 'USD'
4+ currency ?: 'CNY' | 'USD' | 'SOL'
55 date : string
66 message ?: string
77 via : 'Ko-fi' | 'WeChat' | 'Other'
Original file line number Diff line number Diff line change 22 "2023" : 1 ,
33 "2024" : 1 ,
44 "fe" : 13 ,
5- "react" : 3 ,
6- "react-router-dom" : 1 ,
75 "javascript" : 6 ,
86 "flat" : 1 ,
7+ "react" : 3 ,
8+ "react-router-dom" : 1 ,
99 "vue" : 5 ,
1010 "vue3" : 2 ,
1111 "deno" : 1 ,
2626 "effects-video" : 1 ,
2727 "webgl" : 2 ,
2828 "canvas" : 2 ,
29+ "record-screen" : 1 ,
30+ "html2canvas" : 1 ,
2931 "video" : 1 ,
3032 "android" : 1 ,
3133 "webview" : 2 ,
32- "visualization" : 1 ,
33- "record-screen" : 1 ,
34- "html2canvas" : 1 ,
34+ "visualization" : 2 ,
3535 "life" : 4 ,
3636 "year-end" : 2 ,
3737 "summary" : 2 ,
4141 "collect" : 1 ,
4242 "optimization" : 1 ,
4343 "webworker" : 1 ,
44- "travel" : 1 ,
45- "japan" : 1 ,
4644 "blog" : 1 ,
4745 "code-life" : 1 ,
46+ "travel" : 1 ,
47+ "japan" : 1 ,
4848 "ai" : 4 ,
49- "deepseek " : 1 ,
49+ "mcp " : 3 ,
5050 "llm" : 4 ,
51+ "deepseek" : 1 ,
5152 "ollama" : 1 ,
5253 "dify" : 1 ,
53- "mcp" : 3 ,
54+ "test" : 1 ,
55+ "mermaid" : 1 ,
56+ "markdown" : 2 ,
5457 "typescript" : 3 ,
5558 "string" : 1 ,
5659 "casing" : 1 ,
7073 "spotify-api" : 1 ,
7174 "ios" : 1 ,
7275 "swiftui" : 1 ,
73- "markdown" : 1 ,
7476 "code-block" : 1 ,
7577 "syntax" : 1 ,
7678 "npm" : 1 ,
You can’t perform that action at this time.
0 commit comments