feat(category): add branded icons for contract-address and data-records
Some checks failed
Deploy to Frontend Servers / deploy (push) Failing after 41s
Some checks failed
Deploy to Frontend Servers / deploy (push) Failing after 41s
Backend zh-CN /api/categories now returns two new categories: id=17 slug=contract-address (合约地址) id=18 slug=data-records (数据收录) Export the matching gold-tone PNGs from Figma and wire them into slugToAsset so CategoryIcon serves the branded artwork instead of falling back to the lucide iconKey (folder / play). en locale still returns 13 categories, so English users will pick this up once the backend ships translations for the two new entries.
This commit is contained in:
BIN
public/assets/ark-library/media/png/contract-address.png
Normal file
BIN
public/assets/ark-library/media/png/contract-address.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 288 KiB |
BIN
public/assets/ark-library/media/png/data-records.png
Normal file
BIN
public/assets/ark-library/media/png/data-records.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 282 KiB |
@@ -14,6 +14,8 @@ const slugToAsset: Record<string, string> = {
|
||||
"media-coverage": "svg/news-record.svg",
|
||||
"academy-video": "png/academy-video.png",
|
||||
"acedemy-video": "png/academy-video.png",
|
||||
"contract-address": "png/contract-address.png",
|
||||
"data-records": "png/data-records.png",
|
||||
general: "svg/general.svg",
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user