This is an automated email from the ASF dual-hosted git repository.

shuyangw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 6571ab4  fix: added icon to go runner doc card (#404)
6571ab4 is described below

commit 6571ab4c73de8ed427b8c44b5c6700473dad8bee
Author: Ayush das <[email protected]>
AuthorDate: Wed Jul 7 20:31:14 2021 +0530

    fix: added icon to go runner doc card (#404)
    
    Co-authored-by: 琚致远 <[email protected]>
---
 website/docusaurus.config.js         | 4 ++--
 website/src/assets/icons/octagon.svg | 1 +
 website/src/pages/docs.js            | 5 ++++-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index 7d6b405..65d6121 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -86,8 +86,8 @@ module.exports = {
         name: "APISIX™ Go Plugin Runner",
         nameInParamCase: "go-plugin-runner",
         description: "Runs Apache APISIX plugins written in Go. Implemented as 
a sidecar that accompanies Apache APISIX.",
-        shape: "nonagon",
-        color: "#FB9300",
+        shape: "octagon",
+        color: "#3B14A7",
         githubRepo: "apache/apisix-go-plugin-runner",
         version: "0.1.0",
         releaseDate: "2021-07-6",
diff --git a/website/src/assets/icons/octagon.svg 
b/website/src/assets/icons/octagon.svg
new file mode 100644
index 0000000..4dba723
--- /dev/null
+++ b/website/src/assets/icons/octagon.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg"; width="32" height="32" viewBox="0 0 24 
24" fill="currentColor"><path d="M24 16.971l-7.029 
7.029h-9.942l-7.029-7.029v-9.942l7.029-7.029h9.942l7.029 7.029z"/></svg>
diff --git a/website/src/pages/docs.js b/website/src/pages/docs.js
index 39f768b..14463d2 100644
--- a/website/src/pages/docs.js
+++ b/website/src/pages/docs.js
@@ -10,6 +10,7 @@ import IconHexagon from "../assets/icons/hexagon.svg";
 import IconPentagon from "../assets/icons/pentagon.svg";
 import IconDiamond from "../assets/icons/diamond.svg";
 import IconStar from "../assets/icons/star-solid.svg";
+import IconOctagon from "../assets/icons/octagon.svg";
 
 const Page = styled.div`
   max-width: var(--ifm-container-width);
@@ -124,8 +125,10 @@ const ProjectCard = (props) => {
       <IconSquare />
     ) : shape === "hexagon" ? (
       <IconHexagon />
-    ) : (
+    ) : shape === "star" ? (
       <IconStar />
+    ) : (
+      <IconOctagon />
     );
 
   return (

Reply via email to