-
Notifications
You must be signed in to change notification settings - Fork 8
/
detail-page.html
397 lines (390 loc) · 15.3 KB
/
detail-page.html
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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Program Detail Page- Example page</title>
<!-- CSS only -->
<!-- FONTAWESOME loaded from CDN 'kit' URL -->
<script
src="https://kit.fontawesome.com/35fb12a3a9.js"
crossorigin="anonymous"
></script>
<link
rel="stylesheet"
href="https://asu.github.io/asu-unity-stack/@asu/unity-bootstrap-theme/css/unity-bootstrap-theme.bundle.css"
/>
<!-- *************************************************************** -->
<!-- Load React. -->
<script
src="https://unpkg.com/react@17/umd/react.production.min.js"
crossorigin
></script>
<script
src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"
crossorigin
></script>
<!-- *************************************************************** -->
<!-- include bundled scripts from packages -->
<script src="../dist/degreePages.umd.js"></script>
<!-- MOCK RFI form component -->
<!-- <script src="../__mocks__/RequestInfoForm/index.js"></script> -->
<style>
div#my-request-form-info-id {
position: relative;
}
div#my-request-form-info-id:after {
content: "Sample\a Request Information ";
position: absolute;
left: 50%;
top: 50%;
font-size: 30px;
box-shadow: 3px 3px 15px 5px #000000;
border-radius: 5px;
padding: 10px;
/* background: #f9c629; */
background: #ffffff;
transform: translate(-50%) rotate(-45deg);
/* Text color */
color: rgba(0, 0, 0, 0.2);
/* Text styles */
font-size: 2rem;
font-weight: bold;
text-transform: uppercase;
white-space: pre;
text-align: center;
}
#my-request-form-info-id img {
width: inherit;
mix-blend-mode: luminosity;
opacity: 0.7;
}
</style>
</head>
<body>
<!-- Provide target divs for two carousels. Must have unique ids or class name. -->
<div id="degreePageContainer"></div>
<div id="my-request-form-info-id" class="container">
<img src="./assets/img/request-form-information.png" />
</div>
<script>
/**
* This exmaple show how to use a degree page component
* from a static HTML page with plain vanilla JS
*/
// Setup and initialize component.
// ====================================================================================
// TEST: this is just an example which shows how to parse the page URL querystring
// to get the acadPlan
// ====================================================================================
const queryAcadPllan = new URL(window.location.href).searchParams.get(
"acadPlan"
);
// ====================================================================================
AsuDegreePages.initProgramDetailPage({
targetSelector: "#degreePageContainer",
props: {
appPathFolder: "http://localhost:3000/dist",
dataSource: {
endpoint: "https://degrees.apps.asu.edu/t5/service",
method: "findDegreeByAcadPlan",
init: "false",
acadPlan: queryAcadPllan || "BABUSGLBA", // any valid acadPlan code
// acadPlan: "LSBISBIS", // this has marketText
// acadPlan: "ESBMEMDBSE", // this does not have required courses
},
anchorMenu: {
// atAGlance: true,
applicationRequirements: true,
nextSteps: true,
affordingCollege: true,
careerOutlook: true,
globalOpportunity: true,
externalAnchors: [
{
targetIdName: "my-request-form-info-id",
text: "Request Information",
},
],
},
// anchorMenu: {
// atAGlance: true,
// applicationRequirements: true,
// changeMajorRequirements: true,
// nextSteps: true,
// affordingCollege: true,
// flexibleDegreeOptions: true,
// careerOutlook: true,
// exampleCareers: true,
// customizeYourCollegeExperience: true,
// globalOpportunity: true,
// attendOnline: true,
// programContactInfo: true,
// externalAnchors: [
// {
// targetIdName: "my-request-form-info-id",
// text: "Request Information",
// },
// ],
// },
hero: {
// OPTIONAL
// image: {
// url: DOMAIN_URL + "/programs/resources/images/ds_header_undergrad.jpg",
// altText: "Undergraduate Degrees",
// size: "medium",
// },
title: {
text: "Undergraduate Degrees",
highlightColor: "gold",
},
},
introContent: {
// hideMarketText: true,
// hideProgramDesc: true,
// hideRequiredCourses: true,
breadcrumbs: [
{
text: "Academic programs",
url: "#",
},
{
text: "Undergraduate degrees",
url: "listing-page.html",
},
{
text: "Degree title",
url: "detail-page.html",
isActive: true,
},
],
image: {
url: "https://source.unsplash.com/random/1200x750",
altText:
"Random image. REPLACE with appropriate alt text for accessibility.",
},
// optional
// video: {
// url: "/assets/video/stock-video-person-drawing.mp4",
// altText: "",
// vttUrl: "",
// },
// optional, override market text
// contents: [
// {
// text: `Can you imagine yourself hosting successful events and meetings?
// Then this program is right for you. Earn a degree that showcases your advanced knowledge of event programming, operations, financial management and marketing.
// The instructors work in all aspects of the event industry.`,
// },
// ],
},
atAGlance: {
// hide: true,
offeredBy: {
text: "Herberger Instite for Design and the Arts",
url: "#",
},
locations: [
{
text: "Tempe campus",
url: "#",
},
{
text: "West Valley campus",
url: "#",
},
{
text: "Online",
url: "#",
},
{
text: "ASU Local@Los Angeles",
url: "#",
},
],
firstRequirementMathCourse: "MAT 142 - College Mathematics",
mathIntensity: "General",
timeCommitment: "120 credit hours(about 4 years)",
},
// applicationRequirements: {
// hide: true,
// },
// changeMajorRequirements: {
// hide: true,
// },
nextSteps: {
cards: {
learnMore: {
icon: "info-circle",
title: "Lear more about our programs",
content:
"Tell us what type of student you are and we'll get you the information you need.",
buttonLink: {
label: "Request information",
ariaLabel: "Request information",
color: "maroon",
href: "https://admission.asu.edu/contact/request-info",
},
},
apply: {
icon: "file-alt",
title: "Apply to program",
content:
"Arizona State University invites freshman, transfer, international, graduate and online students to apply for admission using our online application.",
buttonLink: {
label: "Apply now",
ariaLabel: "Apply now",
color: "maroon",
href: "https://admission.asu.edu/apply",
},
},
visit: {
icon: "map-marker-alt",
title: "Visit our campus",
content:
"An Experience ASU visit includes a presentation on admissions, scholarships and financial aid, student housing, getting involved on campus and much more.You will also go on a student-led walking tour of campus.",
buttonLink: {
label: "Schedule a visit",
ariaLabel: "Schedule a visit",
color: "maroon",
href: "https://visit.asu.edu/",
},
},
},
},
// affordingCollege: {
// hide: true,
// },
// flexibleDegreeOptions: {
// hide: true,
// },
careerOutlook: {
// OPTIONAL
image: {
url: "https://source.unsplash.com/random/1200x750",
altText:
"Random image. REPLACE with appropriate alt text for accessibility.",
},
},
// OPTIONAL
// exampleCareers: {
// hide: true,
// },
globalOpportunity: {
// OPTIONAL
image: {
url: "https://source.unsplash.com/random/1200x750",
altText:
"Random image. REPLACE with appropriate alt text for accessibility.",
},
},
// OPTIONAL
whyChooseAsu: {
sectionIntroText:
"ASU offers students excellent academics and unique opportunities to customize your college experience and give you an edge, including undergraduate research, internships, access to state-of-the-art facilities, and opportunities to work with world-class faculty and scientists.",
cards: {
faculty: {
image: {
url: `https://source.unsplash.com/random/600x600?career`,
altText:
"Random image. REPLACE with appropriate alt text for accessibility.",
},
title: "World-class faculty",
text: "The ASU faculty is at the forefront nationally in advancing research and discovery. Our faculty members inspire new ways of thinking, innovating and solving problems socially, culturally and economically in our region and in the international community.",
button: {
label: "Faculty excellence",
color: "maroon",
href: "https://www.asu.edu/academics/faculty-excellence",
},
},
programs: {
image: {
url: `https://source.unsplash.com/random/600x600?job`,
altText:
"Random image. REPLACE with appropriate alt text for accessibility.",
},
title: "Highly ranked programs",
text: "A leading service ranking the excellence and innovation of the nation’s top universities, U.S. News & World Report rates many ASU programs among the top 25 in the country, including more than thirty programs ranked in the nation's top 10.",
button: {
label: "ASU rankings",
color: "maroon",
href: "https://www.asu.edu/rankings",
},
},
research: {
image: {
url: `https://source.unsplash.com/random/600x600?career`,
altText:
"Random image. REPLACE with appropriate alt text for accessibility.",
},
title: "Research opportunities",
text: "Students have the opportunity to work with mentors who are experts in their fields and establish professional connections that may last a lifetime. Engage in meaningful research and gain experience that may make you more competitive in the job market.",
button: {
label: "Research opportunities",
color: "maroon",
href: "https://provost.asu.edu/uresearch",
},
},
inclusion: {
image: {
url: `https://source.unsplash.com/random/600x600?online`,
altText:
"Random image. REPLACE with appropriate alt text for accessibility.",
},
title: "An inclusive environment",
text: "ASU defines our success not by whom we exclude, but by whom we include and how our students succeed. Our educational programs are designed to broaden access to a quality education and support our students’ success.",
button: {
label: "ASU Charter",
color: "maroon",
href: "https://www.asu.edu/about/charter-mission",
},
},
mentors: {
image: {
url: `https://source.unsplash.com/random/600x600?classroom`,
altText:
"Random image. REPLACE with appropriate alt text for accessibility.",
},
title: "Mentor network",
text: "Students have access to a powerful online network of diverse mentors. Engaging with the ASU Mentor Network can help to build connections with professionals, both locally and globally, who share career advice, networks, and their own success stories.",
button: {
label: "ASU Mentor network",
color: "maroon",
href: "https://mentorship.asu.edu",
},
},
honors: {
image: {
url: `https://source.unsplash.com/random/600x600?school`,
altText:
"Random image. REPLACE with appropriate alt text for accessibility.",
},
title: "Global education",
text: "ASU offers more than 300 Global Education programs in over 65 different countries. Whether you are interested in studying abroad, internships, research or service learning, there's a program for you!",
button: {
label: "Explore",
color: "maroon",
href: "https://goglobal.asu.edu",
},
},
},
},
attendOnline: {
// OPTIONAL
image: {
url: "https://source.unsplash.com/random/1200x750",
altText:
"Random image. REPLACE with appropriate alt text for accessibility.",
},
},
programContactInfo: {
departmentUrl: "#",
emailUrl: "#",
},
},
});
</script>
<script src="./js/example-helper.js"></script>
</body>
</html>