11import Link from "@docusaurus/Link" ;
2- import CloudSvg from "@site/static/img/cloud.svg" ;
3- import HPCSvg from "@site/static/img/hpc.svg" ;
4- import HSRNSvg from "@site/static/img/hsrn.svg" ;
5- import SRDESvg from "@site/static/img/srde.svg" ;
6- import ReactSvg from "@site/static/img/undraw_docusaurus_react.svg" ;
2+ import useBaseUrl from "@docusaurus/useBaseUrl" ;
73import Heading from "@theme/Heading" ;
4+ import ThemedImage from "@theme/ThemedImage" ;
85import clsx from "clsx" ;
96import { type ComponentProps } from "react" ;
107
118import styles from "./styles.module.css" ;
129
1310interface FeatureItem {
1411 title : string ;
15- Svg : React . ComponentType < React . ComponentProps < "svg" > > ;
12+ light_img_path : string ;
13+ dark_img_path : string ;
1614 description : React . ReactNode ;
1715 to ?: ComponentProps < typeof Link > [ "to" ] ;
1816}
1917
2018const FeatureList : FeatureItem [ ] = [
2119 {
2220 title : "High Performance Computing" ,
23- Svg : HPCSvg ,
21+ light_img_path : "img/hpc.svg" ,
22+ dark_img_path : "img/hpc_dark.svg" ,
2423 description : (
2524 < >
26- Seamless access to advanced computing resources, consultation services
27- and expertise for research.
25+ Seamless access to High Performance Computing resources, consultation
26+ services to enable your workflows and access to cloud-based bursting
27+ resources.
2828 </ >
2929 ) ,
3030 to : "/docs/hpc/getting_started/intro/" ,
3131 } ,
3232 {
3333 title : "High Speed Research Network" ,
34- Svg : HSRNSvg ,
34+ light_img_path : "img/hsrn.svg" ,
35+ dark_img_path : "img/hsrn_dark.svg" ,
3536 description : (
3637 < >
3738 The High Speed Research Network (HSRN) is NYU's high-throughput,
@@ -43,7 +44,8 @@ const FeatureList: FeatureItem[] = [
4344 } ,
4445 {
4546 title : "GenAI" ,
46- Svg : ReactSvg ,
47+ light_img_path : "img/undraw_docusaurus_react.svg" ,
48+ dark_img_path : "img/undraw_docusaurus_react.svg" ,
4749 description : (
4850 < >
4951 The Pythia Platform is a suite of tools for researchers to harness
@@ -55,7 +57,8 @@ const FeatureList: FeatureItem[] = [
5557 } ,
5658 {
5759 title : "Cloud Computing" ,
58- Svg : CloudSvg ,
60+ light_img_path : "img/cloud.svg" ,
61+ dark_img_path : "img/cloud_dark.svg" ,
5962 description : (
6063 < >
6164 We facilitate access to Google Cloud Platform and also host an on-prem
@@ -66,7 +69,8 @@ const FeatureList: FeatureItem[] = [
6669 } ,
6770 {
6871 title : "SRDE" ,
69- Svg : SRDESvg ,
72+ light_img_path : "img/srde.svg" ,
73+ dark_img_path : "img/srde_dark.svg" ,
7074 description : (
7175 < >
7276 The Secure Research Data Environment (SRDE) is a centralized secure
@@ -78,13 +82,26 @@ const FeatureList: FeatureItem[] = [
7882 } ,
7983] ;
8084
81- function Feature ( { title, Svg, description, to } : FeatureItem ) {
85+ function Feature ( {
86+ title,
87+ light_img_path,
88+ dark_img_path,
89+ description,
90+ to,
91+ } : FeatureItem ) {
8292 const Wrapper = to ? Link : "div" ;
8393
8494 return (
8595 < Wrapper className = { clsx ( "col col--4" , to && styles . featureLink ) } to = { to } >
8696 < div className = "text--center" >
87- < Svg className = { styles . featureSvg } role = "img" />
97+ < ThemedImage
98+ alt = "Docusaurus themed image"
99+ className = { styles . featureSvg }
100+ sources = { {
101+ light : useBaseUrl ( light_img_path ) ,
102+ dark : useBaseUrl ( dark_img_path ) ,
103+ } }
104+ />
88105 </ div >
89106 < div className = "text--center padding-horiz--md" >
90107 < Heading as = "h3" > { title } </ Heading >
0 commit comments