From 40d01c846baf9a196e33d856535a606a27a60e34 Mon Sep 17 00:00:00 2001 From: kor Date: Fri, 9 Aug 2024 21:55:31 +0200 Subject: [PATCH] Make whole blocks on homepage clickable --- src/components/HomepageFeatures/index.js | 56 +++++++++++++----------- 1 file changed, 31 insertions(+), 25 deletions(-) diff --git a/src/components/HomepageFeatures/index.js b/src/components/HomepageFeatures/index.js index 1b7216f5..7e81afc3 100644 --- a/src/components/HomepageFeatures/index.js +++ b/src/components/HomepageFeatures/index.js @@ -7,57 +7,63 @@ import Link from '@docusaurus/Link'; // Import Link component const FeatureList = [ { title: 'Content Authors', + subtitle: '…', Svg: require('@site/static/img/specup_logo.svg').default, description: ( - <> - → Content Authors guide. - + <> ), + url: './docs/content-author-guide/introduction', }, { title: 'Terminology Authors', + subtitle: '…', Svg: require('@site/static/img/specup_logo.svg').default, description: ( - <> - → Terminology Authors guide - + <> ), + url: './docs/terminology-author-guide/introduction', }, { title: 'Curators', + subtitle: '…', Svg: require('@site/static/img/specup_logo.svg').default, description: ( - <> - → Curators Guide - + <> ), + url: './docs/curator-guide/introduction', }, ]; -function Feature({ Svg, title, description }) { +function Feature({ Svg, title, subtitle, description, url }) { return ( -
-
- -
-
- {title} -

{description}

+ ( +
+ +
+

{title}

+ {/*

{subtitle}

*/} +

{description}

+
+ +
+ +
+
-
+ ) ); } export default function HomepageFeatures() { return (
-
-
- {FeatureList.map((props, idx) => ( - - ))} -
-
+ {/*
*/} + {/*
*/} + {FeatureList.map((props, idx) => ( + + ))} + {/*
*/} + {/*
*/}
); }