Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
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";

interface FeatureItem {
title: string;
Svg: React.ComponentType<React.ComponentProps<"svg">>;
description: React.ReactNode;
to?: ComponentProps<typeof Link>["to"];
}

const FeatureList: FeatureItem[] = [
Expand All @@ -22,6 +25,7 @@ const FeatureList: FeatureItem[] = [
and expertise for research.
</>
),
to: "/docs/hpc/getting_started/intro/",
},
{
title: "High Speed Research Network",
Expand All @@ -33,6 +37,7 @@ const FeatureList: FeatureItem[] = [
sciences.
</>
),
to: "/docs/hsrn/intro/",
},
{
title: "Pythia",
Expand All @@ -44,6 +49,7 @@ const FeatureList: FeatureItem[] = [
LLMs and an on-prem vector database.
</>
),
to: "/docs/genai/getting_started/intro/",
},
{
title: "RTC",
Expand All @@ -55,6 +61,7 @@ const FeatureList: FeatureItem[] = [
Google Cloud Platform.
</>
),
to: "/docs/rtc/intro/",
},
{
title: "SRDE",
Expand All @@ -66,20 +73,23 @@ 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 (
<div className={clsx("col col--4")}>
<Wrapper className={clsx("col col--4", to && styles.featureLink)} to={to}>
<div className="text--center">
<Svg className={styles.featureSvg} role="img" />
</div>
<div className="text--center padding-horiz--md">
<Heading as="h3">{title}</Heading>
<p>{description}</p>
</div>
</div>
</Wrapper>
);
}

Expand Down
12 changes: 12 additions & 0 deletions src/components/HomepageFeatures/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -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%);
}