Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 4c4ec99

Browse files
ac-jorellanafCito
andauthored
Add links to all standards and improve appearance (#240)
* Added links to all standards without links * Update src/components/home/homeBottomSection/standards.json Co-authored-by: Christoph Zwerschke <[email protected]> * Some fixes to appearance and code of accordion * Added a background to carousel Fixed statistics text alignment Misc beauty fixes --------- Co-authored-by: Christoph Zwerschke <[email protected]>
1 parent 517e8dd commit 4c4ec99

File tree

3 files changed

+52
-52
lines changed

3 files changed

+52
-52
lines changed

src/components/home/homeBottomSection/homeBottomSection.tsx

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@ import { faArrowUpRightFromSquare } from "@fortawesome/free-solid-svg-icons";
1212
*/
1313
const HomeBottomSection = () => {
1414
return (
15-
<Row className="mx-2 mb-3">
16-
<Col>
17-
<h4 className="fw-bold fs-3 p-3 pb-1">Our Standards</h4>
18-
<hr className="mx-3 border-tertiary mb-5 opacity-100" />
19-
<Carousel indicators={false} variant="dark" interval={null}>
15+
<Row className="mx-2 mb-3 mt-4 bg-tertiary rounded">
16+
<Col style={{ height: "450px" }}>
17+
<h4 className="fw-bold fs-3 p-3 pb-2 mb-4">Our Standards</h4>
18+
<Carousel
19+
indicators={false}
20+
variant="dark"
21+
interval={null}
22+
style={{ height: "320px" }}
23+
>
2024
{standards
2125
.map((value) => ({ value, sort: Math.random() }))
2226
.sort((a, b) => a.sort - b.sort)
@@ -29,30 +33,30 @@ const HomeBottomSection = () => {
2933
{x.img_location === "" ? (
3034
<Col
3135
className="overflow-auto"
32-
style={{ height: "200px" }}
36+
style={{ maxHeight: "220px" }}
3337
>
3438
<PerfectScrollbar>
35-
<p style={{ textAlign: "justify" }}>
36-
{x.description.split("\n").map((z, idz) => (
37-
<span
38-
key={
39-
"homepage_span_" +
40-
x.name +
41-
"_description_" +
42-
idz
43-
}
44-
>
45-
{z}
46-
</span>
47-
))}
48-
</p>
39+
{x.description.split("\n").map((z, idz) => (
40+
<p
41+
className="mb-0"
42+
style={{ textAlign: "justify" }}
43+
key={
44+
"homepage_span_" +
45+
x.name +
46+
"_description_" +
47+
idz
48+
}
49+
>
50+
{z}
51+
</p>
52+
))}
4953
</PerfectScrollbar>
5054
</Col>
5155
) : (
5256
<>
5357
<Col
5458
className="col-7 overflow-auto"
55-
style={{ height: "200px" }}
59+
style={{ maxHeight: "220px" }}
5660
>
5761
<PerfectScrollbar>
5862
<p style={{ textAlign: "justify" }}>
@@ -84,20 +88,14 @@ const HomeBottomSection = () => {
8488
as="a"
8589
target="_blank"
8690
variant="quinary"
87-
className="shadow-md-dark my-4"
91+
className="shadow-md-dark my-3"
8892
href={x.learn_more_href}
8993
>
9094
<FontAwesomeIcon icon={faArrowUpRightFromSquare} />
9195
&nbsp;Learn more...
9296
</Button>
9397
) : (
94-
<Button
95-
variant="white"
96-
className="my-4 bg-white pe-none"
97-
href={x.learn_more_href}
98-
>
99-
&nbsp;
100-
</Button>
98+
""
10199
)}
102100
</div>
103101
</div>

src/components/home/homeBottomSection/standards.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@
101101
"description": "Data Use Ontology (DUO) is a standard released by the fEGA, which grants researchers the ability to use human biomedical datasets for controlled-access datasets depending on their research purpose and permissions. Users can tag the datasets with specific usage constraints, which allows them to be discovered based on the permissions granted to health, clinical, and biological researchers. The DUO standard has already been used to annotate over 200,000 datasets throughout the world. For instance, a rare disease researcher can access any dataset that is authorized for commercial and rare disease use cases. The DUO standard contains human-readable explanations and terms, generated by the corresponding data access committees (DAC). The DUO standard is structured with 25 terms that reflect two types of data use: permission and modifier terms. Permission terms contain, for instance: general research use (GRU), health or medical or biomedical (HMB) disease-specific (DS), and population origins or ancestry (POA), which are all clearly approved applications or specialized fields of study. Modifier terms include limitations and requirements within controlled access such as non-commercial use only (NCU), ethics approval required (IRB) and genetics studies only (GSO).",
102102
"img_alt": "Chart",
103103
"img_location": "",
104-
"learn_more_href": "",
104+
"learn_more_href": "https://www.ga4gh.org/product/data-use-ontology-duo/",
105105
"name": "DUO"
106106
},
107107
{
108108
"description": "The Data Repository Service (DRS) API is a standard released by GA4GH in 2019. It provides standardized access to data independent from the architecture or technology stack of the storage repository. It essentially acts as a data catalog that lists access metadata in a standardized way. Another GA4GH standard being used by GHGA is the encryption file format Crypt4GH. It acts as a container around existing file formats, encrypting files with a symmetric stream cipher to allow for random access of the encrypted data. The symmetric key is encrypted separately via asynchronous encryption. Ideally, this means that neither the secret nor the data itself will be stored on a disk in a decrypted state throughout the file life cycle. Crypt4GH thus provides a solution to both encryptions at rest as well as transfer encryption. It is meant as a file format for bioinformatics research, but in theory can be used for any kind of file format, and some bioinformatic toolsets, like SAMtools, already provide support for Crypt4GH.",
109109
"img_alt": "Chart",
110110
"img_location": "",
111-
"learn_more_href": "",
111+
"learn_more_href": "https://www.ga4gh.org/product/data-repository-service-drs/",
112112
"name": "DRS"
113113
},
114114
{
@@ -122,7 +122,7 @@
122122
"description": "The Dublin CoreTM Metadata Element Set is a vocabulary of fifteen properties for use in resource description. The fifteen element \"Dublin CoreTM\" described in this standard is part of a larger set of metadata vocabularies and technical specifications maintained by the Dublin CoreTM Metadata Initiative (DCMI). The full set of vocabularies, DCMI Metadata Terms [DCMI-TERMS], also includes sets of resource classes (including the DCMI Type Vocabulary [DCMI-TYPE]), vocabulary encoding schemes, and syntax encoding schemes. The terms in DCMI vocabularies are intended to be used in combination with terms from other, compatible vocabularies in the context of application profiles and on the basis of the DCMI Abstract Model [DCAM].",
123123
"img_alt": "Chart",
124124
"img_location": "",
125-
"learn_more_href": "",
125+
"learn_more_href": "https://www.dublincore.org/",
126126
"name": "DublinCore"
127127
}
128128
]

src/components/home/homeMidSection/homeMidSection.tsx

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -167,26 +167,28 @@ const HomeMidSection = () => {
167167

168168
return (
169169
<Col className="px-2">
170-
<Row className="rounded bg-primary w-100 mx-0 mb-3 px-sm-3 px-xl-5 pb-lg-5 justify-content-evenly">
171-
<h4 className="fw-bold fs-2 text-white p-4 pb-4 mx-4">Statistics</h4>
172-
{Badges.map((x, idx) => (
173-
<Col
174-
xs={12}
175-
sm={6}
176-
lg={3}
177-
className="mb-4 mb-lg-0 px-xl-4 px-xxl-5"
178-
key={"home_page_badge_" + idx}
179-
>
180-
<HomeMidSectionBadge
181-
badgeTitle={x.badgeTitle}
182-
badgeBody={x.badgeBody}
183-
bodyRowClasses={x.bodyRowClasses}
184-
bodyColClasses={x.bodyColClasses}
185-
badgeClasses={x.badgeClasses}
186-
badgeDark={x.badgeDark}
187-
/>
188-
</Col>
189-
))}
170+
<Row className="rounded bg-primary w-100 mx-0 mb-3 pb-lg-5">
171+
<h4 className="fw-bold fs-2 text-white p-4 pb-4 mx-2">Statistics</h4>
172+
<div className="px-sm-3 px-xl-5 d-flex justify-content-evenly">
173+
{Badges.map((x, idx) => (
174+
<Col
175+
xs={12}
176+
sm={6}
177+
lg={3}
178+
className="mb-4 mb-lg-0 px-xl-4 px-xxl-5"
179+
key={"home_page_badge_" + idx}
180+
>
181+
<HomeMidSectionBadge
182+
badgeTitle={x.badgeTitle}
183+
badgeBody={x.badgeBody}
184+
bodyRowClasses={x.bodyRowClasses}
185+
bodyColClasses={x.bodyColClasses}
186+
badgeClasses={x.badgeClasses}
187+
badgeDark={x.badgeDark}
188+
/>
189+
</Col>
190+
))}
191+
</div>
190192
</Row>
191193
</Col>
192194
);

0 commit comments

Comments
 (0)