1
- import React from ' react' ;
2
- import Link from ' @docusaurus/Link' ;
3
- import useBaseUrl from ' @docusaurus/useBaseUrl' ;
4
- import Translate from ' @docusaurus/Translate' ;
1
+ import React from " react" ;
2
+ import Link from " @docusaurus/Link" ;
3
+ import useBaseUrl from " @docusaurus/useBaseUrl" ;
4
+ import Translate from " @docusaurus/Translate" ;
5
5
6
6
const features = {
7
- entry : [
8
- {
9
- " title" : < Translate > Domains</ Translate > ,
10
- " svg" : "/img/nfdi4chem_Domains_white.svg" ,
11
- " link" : "/docs/domain_guide"
12
- } ,
13
- {
14
- " title" : < Translate > Roles</ Translate > ,
15
- " svg" : "/img/nfdi4chem_Roles_white.svg" ,
16
- " link" : "/docs/role_guide"
17
- } ,
18
- {
19
- " title" : < Translate > Handling Data</ Translate > ,
20
- " svg" : "/img/nfdi4chem_Handling_Data_white.svg" ,
21
- " link" : "/docs/data_guide"
22
- } ,
23
- {
24
- " title" : < Translate > Electronic Lab Notebooks</ Translate > ,
25
- " svg" : "/img/nfdi4chem_SmartLab_white.svg" ,
26
- " link" : "/docs/smartlab"
27
- } ,
28
- {
29
- " title" : < Translate > Data Publishing</ Translate > ,
30
- " svg" : "/img/nfdi4chem_Data_Publication_white.svg" ,
31
- " link" : "/docs/data_publishing"
32
- }
33
- ] ,
34
- domains : [
35
- {
36
- " title" : < Translate > Synthetic Chemistry</ Translate > ,
37
- " svg" : "/img/nfdi4chem_Synthetic_Chemistry.svg" ,
38
- " link" : "/docs/synthetic_chemistry"
39
- } ,
40
- {
41
- " title" : < Translate > Analytical Chemistry</ Translate > ,
42
- " svg" : "/img/nfdi4chem_Analytical_Chemistry.svg" ,
43
- " link" : "/docs/analytical_chemistry"
44
- } ,
45
- {
46
- " title" : < Translate > Physical Chemistry</ Translate > ,
47
- " svg" : "/img/nfdi4chem_Physial_Chemistry.svg" ,
48
- " link" : "/docs/physical_chemistry"
49
- } ,
50
- {
51
- "title" : < Translate > Polymer Chemistry</ Translate > ,
52
- "svg" : "/img/nfdi4chem_Polymer_Chemistry.svg" ,
53
- "link" : "/docs/polymer_chemistry"
54
- } ,
55
- {
56
- " title" : < Translate > Pharmaceutical Chemistry</ Translate > ,
57
- " svg" : "/img/nfdi4chem_Medicinal-Pharmaceutical_Chemistry.svg" ,
58
- " link" : "/docs/pharmaceutical_chemistry"
59
- }
60
- ] ,
61
- roles : [
62
- {
63
- " title" : < Translate > Research Group Leader</ Translate > ,
64
- " svg" : "/img/nfdi4chem_Research_Group_Leader.svg" ,
65
- " link" : "/docs/research_group_leader"
66
- } ,
67
- {
68
- " title" : < Translate > Research Group Member</ Translate > ,
69
- " svg" : "/img/nfdi4chem_Research_Group_Member.svg" ,
70
- " link" : "/docs/research_group_member"
71
- } ,
72
- {
73
- " title" : < Translate > Student</ Translate > ,
74
- " svg" : "/img/nfdi4chem_Student.svg" ,
75
- " link" : "/docs/student"
76
- } ,
77
- {
78
- " title" : < Translate > Data Steward</ Translate > ,
79
- " svg" : "/img/nfdi4chem_Data_Steward.svg" ,
80
- " link" : "/docs/data_steward"
81
- } ,
82
- {
83
- " title" : < Translate > Core Facility Manager</ Translate > ,
84
- " svg" : "/img/nfdi4chem_Core_Facility_Manager.svg" ,
85
- " link" : "/docs/core_facility_manager"
86
- }
87
- ] ,
88
- stakeholders_data_publishing : [
89
- {
90
- " title" : < Translate > Authors</ Translate > ,
91
- " svg" : "/img/nfdi4chem_Research_Group_Member.svg" ,
92
- " link" : "/docs/publishing_standards_authors"
93
- } ,
94
- {
95
- " title" : < Translate > Academic Publishers</ Translate > ,
96
- " svg" : "/img/nfdi4chem_Data_Publication.svg" ,
97
- " link" : "/docs/publishing_standards_publishers"
98
- } ,
99
- {
100
- " title" : < Translate > Infrastructure Providers</ Translate > ,
101
- " svg" : "/img/nfdi4chem_Core_Facility_Manager.svg" ,
102
- " link" : "/docs/publishing_standards_infrastructure"
103
- }
104
- ]
7
+ entry : [
8
+ {
9
+ title : < Translate > Domains</ Translate > ,
10
+ svg : "/img/nfdi4chem_Domains_white.svg" ,
11
+ link : "/docs/domain_guide" ,
12
+ } ,
13
+ {
14
+ title : < Translate > Roles</ Translate > ,
15
+ svg : "/img/nfdi4chem_Roles_white.svg" ,
16
+ link : "/docs/role_guide" ,
17
+ } ,
18
+ {
19
+ title : < Translate > Handling Data</ Translate > ,
20
+ svg : "/img/nfdi4chem_Handling_Data_white.svg" ,
21
+ link : "/docs/data_guide" ,
22
+ } ,
23
+ {
24
+ title : < Translate > Electronic Lab Notebooks</ Translate > ,
25
+ svg : "/img/nfdi4chem_SmartLab_white.svg" ,
26
+ link : "/docs/smartlab" ,
27
+ } ,
28
+ {
29
+ title : < Translate > Data Publishing</ Translate > ,
30
+ svg : "/img/nfdi4chem_Data_Publication_white.svg" ,
31
+ link : "/docs/data_publishing" ,
32
+ } ,
33
+ ] ,
34
+ domains : [
35
+ {
36
+ title : < Translate > Synthetic Chemistry</ Translate > ,
37
+ svg : "/img/nfdi4chem_Synthetic_Chemistry.svg" ,
38
+ link : "/docs/synthetic_chemistry" ,
39
+ } ,
40
+ {
41
+ title : < Translate > Analytical Chemistry</ Translate > ,
42
+ svg : "/img/nfdi4chem_Analytical_Chemistry.svg" ,
43
+ link : "/docs/analytical_chemistry" ,
44
+ } ,
45
+ {
46
+ title : < Translate > Physical Chemistry</ Translate > ,
47
+ svg : "/img/nfdi4chem_Physial_Chemistry.svg" ,
48
+ link : "/docs/physical_chemistry" ,
49
+ } ,
50
+ // {
51
+ // "title": <Translate>Polymer Chemistry</Translate>,
52
+ // "svg": "/img/nfdi4chem_Polymer_Chemistry.svg",
53
+ // "link": "/docs/polymer_chemistry"
54
+ // },
55
+ {
56
+ title : < Translate > Pharmaceutical Chemistry</ Translate > ,
57
+ svg : "/img/nfdi4chem_Medicinal-Pharmaceutical_Chemistry.svg" ,
58
+ link : "/docs/pharmaceutical_chemistry" ,
59
+ } ,
60
+ ] ,
61
+ roles : [
62
+ {
63
+ title : < Translate > Research Group Leader</ Translate > ,
64
+ svg : "/img/nfdi4chem_Research_Group_Leader.svg" ,
65
+ link : "/docs/research_group_leader" ,
66
+ } ,
67
+ {
68
+ title : < Translate > Research Group Member</ Translate > ,
69
+ svg : "/img/nfdi4chem_Research_Group_Member.svg" ,
70
+ link : "/docs/research_group_member" ,
71
+ } ,
72
+ {
73
+ title : < Translate > Student</ Translate > ,
74
+ svg : "/img/nfdi4chem_Student.svg" ,
75
+ link : "/docs/student" ,
76
+ } ,
77
+ {
78
+ title : < Translate > Data Steward</ Translate > ,
79
+ svg : "/img/nfdi4chem_Data_Steward.svg" ,
80
+ link : "/docs/data_steward" ,
81
+ } ,
82
+ {
83
+ title : < Translate > Core Facility Manager</ Translate > ,
84
+ svg : "/img/nfdi4chem_Core_Facility_Manager.svg" ,
85
+ link : "/docs/core_facility_manager" ,
86
+ } ,
87
+ ] ,
88
+ stakeholders_data_publishing : [
89
+ {
90
+ title : < Translate > Authors</ Translate > ,
91
+ svg : "/img/nfdi4chem_Research_Group_Member.svg" ,
92
+ link : "/docs/publishing_standards_authors" ,
93
+ } ,
94
+ {
95
+ title : < Translate > Academic Publishers</ Translate > ,
96
+ svg : "/img/nfdi4chem_Data_Publication.svg" ,
97
+ link : "/docs/publishing_standards_publishers" ,
98
+ } ,
99
+ {
100
+ title : < Translate > Infrastructure Providers</ Translate > ,
101
+ svg : "/img/nfdi4chem_Core_Facility_Manager.svg" ,
102
+ link : "/docs/publishing_standards_infrastructure" ,
103
+ } ,
104
+ ] ,
105
105
} ;
106
106
107
107
function Feature ( { title, svg, link, style } ) {
108
-
109
- return (
110
- < div className = 'col feature__col' >
111
- < div className = 'text--center' >
112
- { link ? (
113
- < Link
114
- className = { style }
115
- // ? <Link className={clsx('')}
116
- to = { link } >
117
- < img className = "featureSvg" alt = { title } src = { useBaseUrl ( svg ) } /> < br />
118
- { title }
119
- </ Link >
120
- ) : (
121
- < p > { title } </ p >
122
- ) }
123
- </ div >
124
- </ div >
125
- ) ;
108
+ return (
109
+ < div className = "col feature__col" >
110
+ < div className = "text--center" >
111
+ { link ? (
112
+ < Link
113
+ className = { style }
114
+ // ? <Link className={clsx('')}
115
+ to = { link }
116
+ >
117
+ < img
118
+ className = "featureSvg"
119
+ alt = { title }
120
+ src = { useBaseUrl ( svg ) }
121
+ />
122
+ < br />
123
+ { title }
124
+ </ Link >
125
+ ) : (
126
+ < p > { title } </ p >
127
+ ) }
128
+ </ div >
129
+ </ div >
130
+ ) ;
126
131
}
127
132
128
- export default function N4CFeatures ( { feature } ) {
129
-
130
- var style = "" ;
131
- const featureList = features [ feature ] ;
133
+ export default function N4CFeatures ( { feature } ) {
134
+ var style = "" ;
135
+ const featureList = features [ feature ] ;
132
136
133
- if ( feature == "entry" ) {
134
- style = "button button--primary feature__button" ;
135
- } else {
136
- style = "button button--secondary feature__button--secondary" ;
137
- }
137
+ if ( feature == "entry" ) {
138
+ style = "button button--primary feature__button" ;
139
+ } else {
140
+ style = "button button--secondary feature__button--secondary" ;
141
+ }
138
142
139
- return (
140
- < section className = ' features' >
141
- < div className = ' container' >
142
- < div className = ' row' >
143
- { featureList . map ( ( props , idx ) => (
144
- < Feature key = { idx } { ...props } style = { style } />
145
- ) ) }
146
- </ div >
147
- </ div >
148
- </ section >
149
- ) ;
150
- }
143
+ return (
144
+ < section className = " features" >
145
+ < div className = " container" >
146
+ < div className = " row" >
147
+ { featureList . map ( ( props , idx ) => (
148
+ < Feature key = { idx } { ...props } style = { style } />
149
+ ) ) }
150
+ </ div >
151
+ </ div >
152
+ </ section >
153
+ ) ;
154
+ }
0 commit comments