Skip to content

Commit

Permalink
feat: 添加导航项
Browse files Browse the repository at this point in the history
  • Loading branch information
agoodbook committed Jan 26, 2024
1 parent a84b96f commit 1f2d391
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/assets/icons/JavaSvg.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
function JavaSvg() {
return (
<svg viewBox="0 0 1024 1024">
<path
d="M380.936 784.96s-38.136 22.192 27.176 29.68c79.136 9.04 119.576 7.744 206.76-8.736 0 0 22.968 14.36 54.984 26.808-195.512 83.76-442.464-4.856-288.92-47.752z m-23.904-109.32s-42.784 31.672 22.584 38.44c84.536 8.728 151.28 9.44 266.832-12.8 0 0 15.944 16.2 41.056 25.048-236.336 69.12-499.568 5.44-330.472-50.688z"
fill="#0074BD"
></path>
<path
d="M558.416 490.168c48.2 55.48-12.64 105.36-12.64 105.36s122.312-63.128 66.152-142.216c-52.472-73.72-92.696-110.336 125.08-236.64 0 0.008-341.848 85.36-178.592 273.496z"
fill="#EA2D2E"
></path>
<path
d="M816.984 865.832s28.232 23.28-31.104 41.272c-112.816 34.176-469.648 44.48-568.752 1.368-35.608-15.504 31.192-37 52.208-41.536 21.912-4.744 34.424-3.88 34.424-3.88-39.624-27.896-256.104 54.8-109.944 78.52 398.568 64.608 726.536-29.096 623.168-75.744zM399.296 562.352s-181.488 43.112-64.264 58.784c49.504 6.624 148.144 5.104 240.088-2.608 75.12-6.312 150.504-19.792 150.504-19.792s-26.464 11.352-45.632 24.424c-184.336 48.488-540.352 25.904-437.848-23.664 86.656-41.912 157.152-37.144 157.152-37.144z m325.576 181.976c187.368-97.336 100.728-190.88 40.256-178.28-14.784 3.08-21.416 5.76-21.416 5.76s5.504-8.632 16-12.344c119.624-42.04 211.608 124.024-38.584 189.8 0-0.016 2.872-2.616 3.744-4.936z"
fill="#0074BD"
></path>
<path
d="M611.928 12.696S715.672 116.504 513.504 276.08c-162.128 128.048-36.968 201.04-0.056 284.472-94.648-85.384-164.072-160.56-117.504-230.52C464.328 227.36 653.776 177.56 611.928 12.696z"
fill="#EA2D2E"
></path>
<path
d="M417.712 1008.168c179.808 11.496 456-6.4 462.536-91.488 0 0-12.568 32.256-148.616 57.848-153.488 28.896-342.832 25.528-455.096 6.992 0 0.008 23 19.048 141.176 26.648z"
fill="#0074BD"
></path>
</svg>
);
}

export default JavaSvg;
8 changes: 8 additions & 0 deletions src/data/full-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import RustSvg from "@site/src/assets/icons/RustSvg";
import GoSvg from "@site/src/assets/icons/GoSvg";
import CISvg from "@site/src/assets/icons/CISvg";
import KotlinSvg from "@site/src/assets/icons/KotlinSvg";
import JavaSvg from "@site/src/assets/icons/JavaSvg";

/**
* 书中自有黄金屋
Expand Down Expand Up @@ -179,6 +180,13 @@ export const ProgramLanguage: Navigations = [
url: "https://agoodbook.github.io/go/",
icon: GoSvg,
},
{
title: "Java",
smallTitle:
"Java是一种高度可移植、面向对象、多线程且具有自动内存管理的编程语言,它的设计目标是实现一次编写、到处运行(Write Once, Run Anywhere,WORA),使得开发者能够在不同平台上轻松构建应用程序。Java广泛应用于企业级应用、移动应用、嵌入式系统和云计算等领域,拥有强大的生态系统和丰富的库,成为一门备受欢迎的编程语言。",
url: "https://agoodbook.github.io/java/",
icon: JavaSvg,
},
{
title: "kotlin",
smallTitle:
Expand Down

0 comments on commit 1f2d391

Please sign in to comment.