diff --git a/src/components/HomepageFeatures/index.tsx b/src/components/HomepageFeatures/index.tsx index 6b7be0933a..6c02b5ee77 100644 --- a/src/components/HomepageFeatures/index.tsx +++ b/src/components/HomepageFeatures/index.tsx @@ -1,8 +1,10 @@ +import Link from "@docusaurus/Link"; import MountainSvg from "@site/static/img/undraw_docusaurus_mountain.svg"; import ReactSvg from "@site/static/img/undraw_docusaurus_react.svg"; import TreeSvg from "@site/static/img/undraw_docusaurus_tree.svg"; import Heading from "@theme/Heading"; import clsx from "clsx"; +import { type ComponentProps } from "react"; import styles from "./styles.module.css"; @@ -10,6 +12,7 @@ interface FeatureItem { title: string; Svg: React.ComponentType>; description: React.ReactNode; + to?: ComponentProps["to"]; } const FeatureList: FeatureItem[] = [ @@ -22,6 +25,7 @@ const FeatureList: FeatureItem[] = [ and expertise for research. ), + to: "/docs/hpc/getting_started/intro/", }, { title: "High Speed Research Network", @@ -33,6 +37,7 @@ const FeatureList: FeatureItem[] = [ sciences. ), + to: "/docs/hsrn/intro/", }, { title: "Pythia", @@ -44,6 +49,7 @@ const FeatureList: FeatureItem[] = [ LLMs and an on-prem vector database. ), + to: "/docs/genai/getting_started/intro/", }, { title: "RTC", @@ -55,6 +61,7 @@ const FeatureList: FeatureItem[] = [ Google Cloud Platform. ), + to: "/docs/rtc/intro/", }, { title: "SRDE", @@ -66,12 +73,15 @@ const FeatureList: FeatureItem[] = [ storage and computational resources specifically for sensitive data. ), + to: "/docs/srde/getting_started/intro/", }, ]; -function Feature({ title, Svg, description }: FeatureItem) { +function Feature({ title, Svg, description, to }: FeatureItem) { + const Wrapper = to ? Link : "div"; + return ( -
+
@@ -79,7 +89,7 @@ function Feature({ title, Svg, description }: FeatureItem) { {title}

{description}

- + ); } diff --git a/src/components/HomepageFeatures/styles.module.css b/src/components/HomepageFeatures/styles.module.css index b248eb2e5d..b8ec513f8b 100644 --- a/src/components/HomepageFeatures/styles.module.css +++ b/src/components/HomepageFeatures/styles.module.css @@ -9,3 +9,15 @@ height: 200px; width: 200px; } + +.featureLink { + color: inherit; + text-decoration: none; + border-radius: 1rem; +} + +.featureLink:hover { + color: inherit; + text-decoration: none; + background-color: rgb(0 0 0 / 5%); +}