-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhomePage.js
183 lines (177 loc) · 9.22 KB
/
homePage.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
// Major updates required
// Need to update infoDeck and infoDeckAfterLoggedIn to match template
import { getFileInfo } from "./../shared.js";
export const infoDeck = () => {
let template = "";
template += `
<div class="secondary-bg padding-bottom-1rem">
<div class="confluence-banner">
<img src="./static/images/nci-vol-10623-150.jpg" class="banner-logo" style="min-height: 120px; max-height=450px;" alt="Confluence logo">
<div class="banner-overlay-text row justify-content-center text-center">
<div class="col-xl-12">
<h1 class="banner-overlay-h1">The Breast Cancer Risk Prediction Project (BCRPP)</h1>
<div class="banner-overlay-line"></div>
<h2 class="banner-overlay-h3" style="font-size:1.7vw;"> Building an integrated, multi-ethnic breast cancer risk prediction model</h2>
</div>
</div>
</div>
<div class="container align-middle text-center" style="margin-top: 70px;">
<div class="card-deck" id="infoDeck" style="min-height: 200px;">`;
template += cardContents({
header: "Learn about BCRPP",
button: "Learn about BCRPP",
href: "#about/overview",
icon: "fa-download",
explanation: "View main goals and collaborating institutions.",
});
template += cardContents({
header: "Participating Studies",
button: "Study Description",
href: "#join",
icon: "fa-chart-bar",
explanation: "View description of prospective cohort studies.",
});
template += cardContents({
header: "Data Access",
button: "Data Access",
href: "#data_access/overview",
icon: "fa-handshake",
explanation: "View procedures for accessing data.",
});
template += cardContents({
header: "Data Dictionary",
button: "Data Dictionary",
href: "#data_exploration/dictionary",
icon: "fa-database",
explanation: "View data types collected from participating cohort studies.",
});
template += `</div>
</div>
</div>
<div class="secondary-bg inverse-triangle"></div>
<div class="container align-center">
<div class="font-size-28 font-bold font-family-helvetica our-goals mt-3 mb-2">OUR GOALS</div>
<div class="row">
<div class="col-lg-3"></div>
<div class="col-lg-6 font-size-18 align-left">To build a large-scale collaborative research resource with data from over 1.5 million women of different race/ethnic backgrounds participating in prospective cohort studies or trials to:</div>
<div class="col-lg-3"></div>
</div>
<br>
<div class="row">
<div class="col-lg-3"></div>
<div class="col-lg-6 font-size-18 align-left mb-3">
<ul>
<li>Develop comprehensive breast cancer risk prediction models for precision prevention in diverse populations</li>
<li>Validate newly developed models in integrated health care systems or breast cancer screening trials</li>
</ul>
</div>
<div class="col-lg-3"></div>
</div>
</div>
<div class="ternary-bg">
<div class="container align-left confluence-info font-family-montserrat">
<!---<div>The BCRPP is funded by the US National Cancer Institute (NCI) and coordinated by the Division of Cancer Epidemiology and Genetics (DCEG) of NCI and the Harvard T.H. Chan School of Public Health in collaboration with the NCI Cohort Consortium.</div>--->
<div>The BCRPP is funded by the US National Cancer Institute (NCI) grant number <a href="https://maps.cancer.gov/overview/DCCPSGrants/abstract.jsp?applId=10263893&term=CA249866">1U01CA249866-01</a> and the NCI Intramural Research Funds. BCRPP is coordinated by the Harvard T.H. Chan School of Public Health and the Division of Cancer Epidemiology and Genetics (DCEG) of NCI, in collaboration with the NCI Cohort Consortium.</div>
</div>
</div>
`;
document.getElementById("confluenceDiv").innerHTML = template;
};
export const infoDeckAfterLoggedIn = async () => {
const studyDescription = await getFileInfo(761599566277);
let template = "";
template += `
<div class="secondary-bg padding-bottom-1rem">
<div class="confluence-banner">
<img src="./static/images/nci-vol-10623-150.jpg" class="banner-logo" style="min-height: 120px; max-height=250px;" alt="Confluence logo">
<div class="banner-overlay-text row justify-content-center text-center">
<div class="col-md-12">
<h1 class="banner-overlay-h1">The Breast Cancer Risk Prediction Project (BCRPP)</h1>
<div class="banner-overlay-line"></div>
<h2 class="banner-overlay-h3" style="font-size:1.7vw;"> Building an integrated, multi-ethnic breast cancer risk prediction model</h2>
</div>
</div>
</div>
<div class="container align-middle text-center" style="margin-top: 70px;">
<div class="card-deck" id="infoDeck" style="min-height: 200px;">`;
if (studyDescription)
template += cardContents({
header: "Study Description",
button: "Study Description",
href: "#about/description",
icon: "fa-file-alt",
explanation: "View descriptions of participating studies.",
});
template += cardContents({
header: "Data Dictionary",
button: "Data Dictionary",
href: "#data_exploration/dictionary",
icon: "fa-database",
explanation: "View variables from participating studies.",
});
template += cardContents({
header: "Explore Data",
button: "Explore Data",
href: "#data_exploration/summary",
icon: "fa-chart-bar",
explanation: "Explore summary-level data to plan analyses.",
});
template += cardContents({
header: "Data Access",
button: "Data Access",
href: "#data_access/overview",
icon: "fa-handshake",
explanation: "View procedures for accessing data.",
});
template += `</div>
</div>
</div>
<div class="secondary-bg inverse-triangle"></div>
<div class="container align-center">
<div class="font-size-28 font-bold font-family-montserrat our-goals mt-3 mb-2">OUR GOALS</div>
<div class="row">
<div class="col-lg-3"></div>
<div class="col-lg-6 font-size-18 align-left">To build a large-scale collaborative research resource with data from over 1.5 million women of different race/ethnic backgrounds participating in prospective cohort studies or trials to:</div>
<div class="col-lg-3"></div>
</div>
<br>
<div class="row">
<div class="col-lg-3"></div>
<div class="col-lg-6 font-size-18 align-left mb-3">
<ul>
<li>Develop comprehensive breast cancer risk prediction models for precision prevention in diverse populations</li>
<li>Validate newly developed models in integrated health care systems or breast cancer screening trials</li>
</ul>
</div>
<div class="col-lg-3"></div>
</div>
</div>
<div class="ternary-bg">
<div class="container align-left confluence-info font-family-montserrat">
<!---<div>The BCRPP is funded by the US National Cancer Institute (NCI) and coordinated by the Division of Cancer Epidemiology and Genetics (DCEG) of NCI and the Harvard T.H. Chan School of Public Health in collaboration with the NCI Cohort Consortium.</div>--->
<div>The BCRPP is funded by the US National Cancer Institute (NCI) grant number <a href="https://maps.cancer.gov/overview/DCCPSGrants/abstract.jsp?applId=10263893&term=CA249866">1U01CA249866-01</a> and the NCI Intramural Research Funds. BCRPP is coordinated by the Harvard T.H. Chan School of Public Health and the Division of Cancer Epidemiology and Genetics (DCEG) of NCI, in collaboration with the NCI Cohort Consortium.</div>
</div>
</div>
`;
document.getElementById("confluenceDiv").innerHTML = template;
};
const cardContents = (obj) => {
return `
<div class="col-xl card confluence-cards" style="min-width:225px">
<div class="primary-bg rounded-circle" style="margin-top: -40px; padding: 10px;">
<i class="fas ${obj.icon} fa-2x icon-padding font-white"></i>
</div>
<div class="card-body">
<div class="card-title" style="color: #333B4D">
<div class="font-size-28"><b>${obj.header}</b></div>
</div>
<p class="text-secondary card-text font-size-14">
${obj.explanation}
</p>
</div>
<div class="white-bg border-top-0 card-footer" style="width: 100%;">
<a class="stretched-link font-white my-2 border border-0 font-bold btn primary-bg" style="width: 90%;" href="${obj.href}" style="text-decoration: none;">${obj.button}</a>
</div>
</div>
`;
};