From 3a773b0abf736ae9bd2255f055ace0a0e46657c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20B=C3=A4r?= Date: Fri, 24 May 2024 15:09:13 +0200 Subject: [PATCH] docs: fix homepage gradients --- website/src/components/Gradients.jsx | 46 ++++++++++++++++++++++++ website/src/components/Highlights.jsx | 4 +-- website/static/img/features/gradient.svg | 40 --------------------- 3 files changed, 48 insertions(+), 42 deletions(-) create mode 100644 website/src/components/Gradients.jsx delete mode 100644 website/static/img/features/gradient.svg diff --git a/website/src/components/Gradients.jsx b/website/src/components/Gradients.jsx new file mode 100644 index 000000000000..1c63f540fe27 --- /dev/null +++ b/website/src/components/Gradients.jsx @@ -0,0 +1,46 @@ +import React from 'react'; + +export default function Gradients() { + return ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ); +} diff --git a/website/src/components/Highlights.jsx b/website/src/components/Highlights.jsx index e96c2121c751..6c561f04446f 100644 --- a/website/src/components/Highlights.jsx +++ b/website/src/components/Highlights.jsx @@ -1,6 +1,7 @@ import React from 'react'; import clsx from 'clsx'; import styles from './Highlights.module.css'; +import Gradients from './Gradients'; const FeatureList = [ { @@ -86,10 +87,9 @@ function Feature({ Svg, title, description }) { } export default function Highlights() { - const Svg = require('../../static/img/features/gradient.svg').default; return (
- {} +
{FeatureList.map((props, idx) => ( diff --git a/website/static/img/features/gradient.svg b/website/static/img/features/gradient.svg deleted file mode 100644 index 3bbc695d749f..000000000000 --- a/website/static/img/features/gradient.svg +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -