diff --git a/src/components/N4CFeatures.js b/src/components/N4CFeatures.js index 7fdcadab..3f8953ff 100644 --- a/src/components/N4CFeatures.js +++ b/src/components/N4CFeatures.js @@ -1,150 +1,154 @@ -import React from 'react'; -import Link from '@docusaurus/Link'; -import useBaseUrl from '@docusaurus/useBaseUrl'; -import Translate from '@docusaurus/Translate'; +import React from "react"; +import Link from "@docusaurus/Link"; +import useBaseUrl from "@docusaurus/useBaseUrl"; +import Translate from "@docusaurus/Translate"; const features = { - entry: [ - { - "title": Domains, - "svg": "/img/nfdi4chem_Domains_white.svg", - "link": "/docs/domain_guide" - }, - { - "title": Roles, - "svg": "/img/nfdi4chem_Roles_white.svg", - "link": "/docs/role_guide" - }, - { - "title": Handling Data, - "svg": "/img/nfdi4chem_Handling_Data_white.svg", - "link": "/docs/data_guide" - }, - { - "title": Electronic Lab Notebooks, - "svg": "/img/nfdi4chem_SmartLab_white.svg", - "link": "/docs/smartlab" - }, - { - "title": Data Publishing, - "svg": "/img/nfdi4chem_Data_Publication_white.svg", - "link": "/docs/data_publishing" - } - ], - domains: [ - { - "title": Synthetic Chemistry, - "svg": "/img/nfdi4chem_Synthetic_Chemistry.svg", - "link": "/docs/synthetic_chemistry" - }, - { - "title": Analytical Chemistry, - "svg": "/img/nfdi4chem_Analytical_Chemistry.svg", - "link": "/docs/analytical_chemistry" - }, - { - "title": Physical Chemistry, - "svg": "/img/nfdi4chem_Physial_Chemistry.svg", - "link": "/docs/physical_chemistry" - }, - { - "title": Polymer Chemistry, - "svg": "/img/nfdi4chem_Polymer_Chemistry.svg", - "link": "/docs/polymer_chemistry" - }, - { - "title": Pharmaceutical Chemistry, - "svg": "/img/nfdi4chem_Medicinal-Pharmaceutical_Chemistry.svg", - "link": "/docs/pharmaceutical_chemistry" - } - ], - roles: [ - { - "title": Research Group Leader, - "svg": "/img/nfdi4chem_Research_Group_Leader.svg", - "link": "/docs/research_group_leader" - }, - { - "title": Research Group Member, - "svg": "/img/nfdi4chem_Research_Group_Member.svg", - "link": "/docs/research_group_member" - }, - { - "title": Student, - "svg": "/img/nfdi4chem_Student.svg", - "link": "/docs/student" - }, - { - "title": Data Steward, - "svg": "/img/nfdi4chem_Data_Steward.svg", - "link": "/docs/data_steward" - }, - { - "title": Core Facility Manager, - "svg": "/img/nfdi4chem_Core_Facility_Manager.svg", - "link": "/docs/core_facility_manager" - } - ], - stakeholders_data_publishing: [ - { - "title": Authors, - "svg": "/img/nfdi4chem_Research_Group_Member.svg", - "link": "/docs/publishing_standards_authors" - }, - { - "title": Academic Publishers, - "svg": "/img/nfdi4chem_Data_Publication.svg", - "link": "/docs/publishing_standards_publishers" - }, - { - "title": Infrastructure Providers, - "svg": "/img/nfdi4chem_Core_Facility_Manager.svg", - "link": "/docs/publishing_standards_infrastructure" - } - ] + entry: [ + { + title: Domains, + svg: "/img/nfdi4chem_Domains_white.svg", + link: "/docs/domain_guide", + }, + { + title: Roles, + svg: "/img/nfdi4chem_Roles_white.svg", + link: "/docs/role_guide", + }, + { + title: Handling Data, + svg: "/img/nfdi4chem_Handling_Data_white.svg", + link: "/docs/data_guide", + }, + { + title: Electronic Lab Notebooks, + svg: "/img/nfdi4chem_SmartLab_white.svg", + link: "/docs/smartlab", + }, + { + title: Data Publishing, + svg: "/img/nfdi4chem_Data_Publication_white.svg", + link: "/docs/data_publishing", + }, + ], + domains: [ + { + title: Synthetic Chemistry, + svg: "/img/nfdi4chem_Synthetic_Chemistry.svg", + link: "/docs/synthetic_chemistry", + }, + { + title: Analytical Chemistry, + svg: "/img/nfdi4chem_Analytical_Chemistry.svg", + link: "/docs/analytical_chemistry", + }, + { + title: Physical Chemistry, + svg: "/img/nfdi4chem_Physial_Chemistry.svg", + link: "/docs/physical_chemistry", + }, + // { + // "title": Polymer Chemistry, + // "svg": "/img/nfdi4chem_Polymer_Chemistry.svg", + // "link": "/docs/polymer_chemistry" + // }, + { + title: Pharmaceutical Chemistry, + svg: "/img/nfdi4chem_Medicinal-Pharmaceutical_Chemistry.svg", + link: "/docs/pharmaceutical_chemistry", + }, + ], + roles: [ + { + title: Research Group Leader, + svg: "/img/nfdi4chem_Research_Group_Leader.svg", + link: "/docs/research_group_leader", + }, + { + title: Research Group Member, + svg: "/img/nfdi4chem_Research_Group_Member.svg", + link: "/docs/research_group_member", + }, + { + title: Student, + svg: "/img/nfdi4chem_Student.svg", + link: "/docs/student", + }, + { + title: Data Steward, + svg: "/img/nfdi4chem_Data_Steward.svg", + link: "/docs/data_steward", + }, + { + title: Core Facility Manager, + svg: "/img/nfdi4chem_Core_Facility_Manager.svg", + link: "/docs/core_facility_manager", + }, + ], + stakeholders_data_publishing: [ + { + title: Authors, + svg: "/img/nfdi4chem_Research_Group_Member.svg", + link: "/docs/publishing_standards_authors", + }, + { + title: Academic Publishers, + svg: "/img/nfdi4chem_Data_Publication.svg", + link: "/docs/publishing_standards_publishers", + }, + { + title: Infrastructure Providers, + svg: "/img/nfdi4chem_Core_Facility_Manager.svg", + link: "/docs/publishing_standards_infrastructure", + }, + ], }; function Feature({ title, svg, link, style }) { - - return ( -
-
- {link ? ( - - {title}
- {title} - - ) : ( -

{title}

- )} -
-
- ); + return ( +
+
+ {link ? ( + + {title} +
+ {title} + + ) : ( +

{title}

+ )} +
+
+ ); } -export default function N4CFeatures( { feature } ) { - - var style = ""; - const featureList = features[feature]; +export default function N4CFeatures({ feature }) { + var style = ""; + const featureList = features[feature]; - if (feature == "entry") { - style="button button--primary feature__button"; - } else { - style="button button--secondary feature__button--secondary"; - } + if (feature == "entry") { + style = "button button--primary feature__button"; + } else { + style = "button button--secondary feature__button--secondary"; + } - return ( -
-
-
- {featureList.map((props, idx) => ( - - ))} -
-
-
- ); -} \ No newline at end of file + return ( +
+
+
+ {featureList.map((props, idx) => ( + + ))} +
+
+
+ ); +}