Skip to content

Commit

Permalink
chore: NVIDIA icon and component
Browse files Browse the repository at this point in the history
  • Loading branch information
yomybaby committed Nov 20, 2024
1 parent f67ec31 commit 817af23
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 4 deletions.
24 changes: 24 additions & 0 deletions react/src/components/BAIIcons/Nvidia.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { ReactComponent as logo } from './nvidia.svg';
import Icon from '@ant-design/icons';
import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon';

interface CustomIconProps
extends Omit<CustomIconComponentProps, 'width' | 'height' | 'fill'> {
size?: number;
}

const NvidiaIcon: React.FC<CustomIconProps> = (props) => {
return (
<Icon
component={logo}
{...props}
style={{
color: '#76B900',
fontSize: props.size,
...props.style,
}}
/>
);
};

export default NvidiaIcon;
1 change: 1 addition & 0 deletions react/src/components/BAIIcons/nvidia.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions resources/app_template.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"title": "DIGITS",
"category": "3.Machine Learning Tools",
"redirect": "&redirect=/",
"src": "./resources/icons/nvidia.png"
"src": "./resources/icons/nvidia.svg"
}
],
"h2o-dai": [
Expand Down Expand Up @@ -224,7 +224,7 @@
"title": "Triton Server",
"category": "8.AI Inference Service",
"redirect": "",
"src": "./resources/icons/nvidia.png"
"src": "./resources/icons/nvidia.svg"
}
],
"triton-server-http": [
Expand All @@ -233,7 +233,7 @@
"title": "Triton Server (HTTP)",
"category": "8.AI Inference Service",
"redirect": "",
"src": "./resources/icons/nvidia.png"
"src": "./resources/icons/nvidia.svg"
}
],
"orbit-server-http": [
Expand Down
Binary file removed resources/icons/nvidia.png
Binary file not shown.
1 change: 1 addition & 0 deletions resources/icons/nvidia.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/image_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@
"description": "NVIDIA Triton Inference Server is an open-source, high-performance server that simplifies the deployment of AI models for inference in production environments..This environment is integrated with Nvidia GPU Cloud.",
"group": "Machine Learning / Deep Learning",
"tags": [],
"icon": "nvidia.png",
"icon": "nvidia.svg",
"label": [
{
"category": "Env",
Expand Down

0 comments on commit 817af23

Please sign in to comment.