Skip to content

Commit 3c2a2d4

Browse files
committed
feat: add language logo
1 parent 5195dd5 commit 3c2a2d4

File tree

4 files changed

+286
-19
lines changed

4 files changed

+286
-19
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212
"dependencies": {
1313
"@emotion/react": "^11.14.0",
1414
"@emotion/styled": "^11.14.0",
15+
"@headlessui/react": "^2.2.0",
1516
"@heroicons/react": "^2.2.0",
1617
"@monaco-editor/react": "^4.6.0",
1718
"@mui/material": "^6.4.3",
1819
"lua-fmt": "^2.6.0",
19-
"next": "14.0.4"
20+
"next": "14.0.4",
21+
"react-icons": "^5.4.0"
2022
},
2123
"devDependencies": {
2224
"@types/js-beautify": "^1.14.3",

pnpm-lock.yaml

Lines changed: 176 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/constants/languageLogos.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import {
2+
SiJavascript,
3+
SiTypescript,
4+
SiLua,
5+
SiPython,
6+
SiGo,
7+
SiRust,
8+
} from "react-icons/si";
9+
10+
export const languageLogos = {
11+
javascript: SiJavascript,
12+
typescript: SiTypescript,
13+
lua: SiLua,
14+
python: SiPython,
15+
go: SiGo,
16+
rust: SiRust,
17+
};
18+
19+
export const languageColors = {
20+
javascript: "#F0DB4F",
21+
typescript: "#007ACC",
22+
python: "#3776AB",
23+
go: "#00ADD8",
24+
rust: "#DEA584",
25+
lua: "#5E97F6", // 更改为 Lua 的另一个官方品牌色
26+
};

0 commit comments

Comments
 (0)