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

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


The following commit(s) were added to refs/heads/master by this push:
     new c0ba2777c82 (fix) update download source code icon (#413)
c0ba2777c82 is described below

commit c0ba2777c82e9c16223573b5cd98ee3d9d4d7f62
Author: song7788q <[email protected]>
AuthorDate: Thu Mar 7 22:26:05 2024 +0800

    (fix) update download source code icon (#413)
---
 src/components/Icons/download-icon.tsx             | 36 ++++++++++++++++++++++
 .../download-form/download-form-tools.tsx          |  6 ++--
 2 files changed, 39 insertions(+), 3 deletions(-)

diff --git a/src/components/Icons/download-icon.tsx 
b/src/components/Icons/download-icon.tsx
new file mode 100644
index 00000000000..456b2119f85
--- /dev/null
+++ b/src/components/Icons/download-icon.tsx
@@ -0,0 +1,36 @@
+import React from 'react';
+
+export function DownloadIcon(props: any) {
+    return (
+        <span {...props}>
+            <svg width="1rem" height="1rem" viewBox="0 0 16 16" fill="none" 
xmlns="http://www.w3.org/2000/svg";>
+                <g id="download">
+                    <path
+                        id="Vector"
+                        d="M2.5 9L2.5 13.5H13.5V9"
+                        stroke="currentColor"
+                        strokeWidth="1.2"
+                        strokeLinecap="round"
+                        strokeLinejoin="round"
+                    />
+                    <path
+                        id="Vector_2"
+                        d="M5 7L8 10L11 7"
+                        stroke="currentColor"
+                        strokeWidth="1.2"
+                        strokeLinecap="round"
+                        strokeLinejoin="round"
+                    />
+                    <path
+                        id="Vector_3"
+                        d="M8 10V2.49996"
+                        stroke="currentColor"
+                        strokeWidth="1.2"
+                        strokeLinecap="round"
+                        strokeLinejoin="round"
+                    />
+                </g>
+            </svg>
+        </span>
+    );
+}
diff --git a/src/components/download-form/download-form-tools.tsx 
b/src/components/download-form/download-form-tools.tsx
index 86bd7d545ee..df1d2226d5a 100644
--- a/src/components/download-form/download-form-tools.tsx
+++ b/src/components/download-form/download-form-tools.tsx
@@ -5,7 +5,7 @@ import FormSelect from '../form-select/form-select';
 import copy from 'copy-to-clipboard';
 import { ToolsEnum } from '@site/src/constant/download.data';
 import { useForm, useWatch } from 'antd/es/form/Form';
-import { ExternalLinkIcon } from '../Icons/external-link-icon';
+import { DownloadIcon } from '../Icons/download-icon';
 
 interface DownloadFormToolsProps {
     data: Option[];
@@ -130,7 +130,7 @@ export default function DownloadFormTools(props: 
DownloadFormToolsProps) {
                     </svg>
                 </div>
                 {tool === ToolsEnum.StreamLoader && (
-                    <div className="flex justify-center mt-4">
+                    <div className="flex justify-center mt-4 
hover:text-[#444FD9]">
                         <div
                             className="inline-flex items-center text-[#8592A6] 
cursor-pointer hover:underline hover:text-[#444FD9]"
                             onClick={() => {
@@ -140,7 +140,7 @@ export default function DownloadFormTools(props: 
DownloadFormToolsProps) {
                         >
                             Source code
                             <div className="ml-1">
-                                <ExternalLinkIcon />
+                                <DownloadIcon style={{ fontSize: 14 }} />
                             </div>
                         </div>
                     </div>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to