Skip to content

Commit d12a11f

Browse files
committed
closer match to HEAL style
1 parent 7154d11 commit d12a11f

16 files changed

+300
-124
lines changed

README.md

+16-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

22

3-
This is the base REPOSITORY for Gen3.2 data commons.
3+
This is the NextJS application for the HEAL Data Commons.
44

55

66
## Getting Started
7-
Gen3 Data Commons using the Gen3 Frontend Framework is a matter of the following:
7+
The HEAL Data Commons develop quick startup:
88

9-
* create a clone of [Gen3 Data Commons Application](https://github.com/uc-cdis/commons-frontend-app/)  
9+
* create a clone of [HEAL Data Commons](https://github.com/uc-cdis/heal-data-commons)
1010

1111
* Configure the commons by editing the configuration files in the ```config```
1212

@@ -16,11 +16,11 @@ Gen3 Data Commons using the Gen3 Frontend Framework is a matter of the following
1616

1717
Changes to the Gen3 Data Commons Application can be pulled from the Common Frontend Repository. You need configure git to pull from the Common Frontend Repository.
1818
```bash
19-
git remote add upstream https://github.com/uc-cdis/commons-frontend-app.git
19+
git remote add upstream https://github.com/uc-cdis/heal-data-commons.git
2020
```
2121
or
2222
```bash
23-
git remote add upstream [email protected]:uc-cdis/commons-frontend-app.git
23+
git remote add upstream [email protected]:uc-cdis/heal-data-commons.git
2424
```
2525

2626
changes to ```main``` can be pulled from the Common Frontend Repository by running:
@@ -34,12 +34,12 @@ This documentation is currently less complete than we would like, but we will be
3434

3535
## Installation
3636

37-
The minimum node version is set to v20.11.0 only from an LTS perspective.
37+
The minimum node version is set to v20.71.0.
3838
Node can be downloaded from the official Node.js site. You may also consider using a [Node version manager](https://docs.npmjs.com/cli/v7/configuring-npm/install#using-a-node-version-manager-to-install-nodejs-and-npm).
3939
Your version of Node may not ship with npm v10. To install it, run:
4040

4141
```bash
42-
npm install npm@10.2.4 -g
42+
npm install npm@10.8.2 -g
4343
```
4444

4545
Note: if you see this error:
@@ -51,7 +51,7 @@ you can run ```npx next telemetry disable```
5151

5252
Alternatively, you can use `nvm` to install the correct version of npm:
5353
```bash
54-
nvm install 20.11.0
54+
nvm install 20.17.0
5555
```
5656

5757
### Install Dependencies
@@ -78,3 +78,11 @@ You build a Docker image by:
7878
```bash
7979
docker build .
8080
```
81+
82+
## Configuration
83+
84+
All of the configuration files are located in ```config```. As HEAL is current only used for the landing page the
85+
configuration that are used are:
86+
87+
* navigation.json
88+
* footer.json

config/heal/alternate_colors/dark.json

-9
This file was deleted.

config/heal/alternate_colors/pallet2.json

-11
This file was deleted.

config/heal/alternate_colors/urban.json

-9
This file was deleted.

config/heal/banner.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"message": "[View the latest studies that have shared data with the HEAL Data Platform!](/landing/newly-available-datasets)",
4+
"level": "MESSAGE",
5+
"dismissible": true,
6+
"isExternalLink": false,
7+
"id": 0
8+
},
9+
{
10+
"message": "Our helpdesk has moved! Starting 8/21, please contact us at [[email protected]](mailto:[email protected])",
11+
"level": "MESSAGE",
12+
"dismissible": false,
13+
"isExternalLink": false,
14+
"id": 0
15+
}
16+
]

config/heal/footer.json

+178-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,185 @@
11
{
2-
"footerRightLogos": [
3-
[
2+
"classNames": {
3+
"mode": "replace",
4+
"root": "bg-navigation-footer px-8 py-4"
5+
},
6+
"rightSection": {
7+
"className": "flex justify-start items-start",
8+
"columns": [
9+
{
10+
"rows": [
11+
{
12+
"Section": {
13+
"className": "flex justify-start items-start",
14+
"columns": [
15+
{
16+
"classNames": {
17+
"root": "pl-8",
18+
"heading": "font-bold text-xl text-white font-heading",
19+
"rowItem": "heal-link-footer flex flex-col font-medium text-sm p-0.5 text-white font-content"
20+
},
21+
"heading": "Contact",
22+
"rows": [
23+
{
24+
"Link": {
25+
"text": "About Us",
26+
"href": "/landing/about-us",
27+
"linkType": "gen3ff"
28+
}
29+
},
30+
{
31+
"Link": {
32+
"text": "Contact",
33+
"href": "/landing/contact",
34+
"linkType": "gen3ff"
35+
}
36+
}
37+
]
38+
},
39+
{
40+
"classNames": {
41+
"root": "pl-10",
42+
"heading": "font-bold text-xl text-white font-heading",
43+
"rowItem": "heal-link-footer flex flex-col font-medium text-sm p-0.5 text-white font-content"
44+
},
45+
"heading": "Help",
46+
"rows": [
47+
{
48+
"Link": {
49+
"text": "User Guides",
50+
"href": "/documentation"
51+
}
52+
},
53+
{
54+
"Link": {
55+
"text": "Tutorials",
56+
"href": "/documentation/platform_tutorial_videos"
57+
}
58+
},
59+
{
60+
"Link": {
61+
"text": "FAQ",
62+
"href": "/documentation/faqs"
63+
}
64+
}
65+
]
66+
},
67+
{
68+
"classNames": {
69+
"root": "pl-10",
70+
"heading": "font-bold text-xl text-white font-heading",
71+
"rowItem": "heal-link-footer flex flex-col font-medium text-sm p-0.5 text-white font-content"
72+
},
73+
"heading": "Platform",
74+
"rows": [
75+
{
76+
"Link": {
77+
"text": "Workspaces",
78+
"href": "/workspace",
79+
"linkType": "portal"
80+
}
81+
},
82+
{
83+
"Link": {
84+
"text": "Discovery",
85+
"href": "/discovery",
86+
"linkType": "portal"
87+
}
88+
},
89+
{
90+
"Link": {
91+
"text": "Profile",
92+
"href": "/identity",
93+
"linkType": "portal"
94+
}
95+
}
96+
]
97+
}
98+
]
99+
}
100+
},
101+
{
102+
"Links": {
103+
"className": "pt-1 m-1 text-right text-xs text-white font-content",
104+
"links": [
105+
{
106+
"text": "NIH HEAL Initiative",
107+
"href": "https://heal.nih.gov/"
108+
},
109+
{
110+
"text": "HHS Responsible Disclosure Form",
111+
"href": "https://hhs.responsibledisclosure.com/hc/en-us"
112+
}
113+
]
114+
}
115+
}
116+
]
117+
}
118+
]
119+
},
120+
"leftSection": {
121+
"className": "flex items-start",
122+
"columns": [
4123
{
5-
"logo": "/images/gen3.png",
6-
"width": 132,
7-
"height": 60,
8-
"description": "Gen3 Logo"
124+
"classNames": {
125+
"mode": "replace",
126+
"root": "flex flex-col mr-8 justify-between"
127+
},
128+
"rows": [
129+
{
130+
"Icon": {
131+
"className": "mb-4",
132+
"logo": "/images/gen3.png",
133+
"width": 80,
134+
"height": 40,
135+
"description": "Gen3 Logo"
136+
}
137+
},
138+
{
139+
"Icon": {
140+
"logo": "/images/createdby.png",
141+
"width": 120,
142+
"height": 38,
143+
"description": "created by CTDS at the University of Chicago"
144+
}
145+
}
146+
]
9147
},
10148
{
11-
"logo": "/images/createdby.png",
12-
"width": 170,
13-
"height": 60,
14-
"description": "Created by CTDS"
149+
"classNames": {
150+
"root": "flex flex-col justify-center mr-8"
151+
},
152+
"rows": [
153+
{
154+
"Icon": {
155+
"logo": "/images/logo.png",
156+
"width": 164,
157+
"height": 100,
158+
"description": "NIH HEAL Logo"
159+
}
160+
}
161+
]
162+
},
163+
{
164+
"classNames": {
165+
"mode": "replace",
166+
"root": "w-1/5 text-xs text-white text-left font-content"
167+
},
168+
"rows": [
169+
{
170+
"Label": {
171+
"className": "p-1",
172+
"text": "The HEAL Data Platform is funded by the NIH HEAL Initiative."
173+
}
174+
},
175+
{
176+
"Label": {
177+
"className": "p-1",
178+
"text": "NIH HEAL Initiative and Helping to End Addiction Long-term are service marks of the U.S. Department of Health and Human Services."
179+
}
180+
}
181+
]
15182
}
16183
]
17-
]
184+
}
18185
}

0 commit comments

Comments
 (0)