Skip to content

Commit 0e7240c

Browse files
committed
instructor led course sample
1 parent 5c5c424 commit 0e7240c

3 files changed

Lines changed: 23 additions & 28 deletions

File tree

ims-education.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,25 @@ <h1>IMS courses</h1>
675675
<section id="live" class="white-bg card-section">
676676
<div><h2>Instructor-led</h2></div>
677677
<p>No instructor-led courses are currently available for enrollment. Please check back to see if new courses are available.</p>
678+
679+
<!-- EX: IMS Fundamentals -->
680+
<course-card
681+
id="ims-fundamentals"
682+
name="IMS Fundamentals"
683+
desc="Learn about the main components of IBM IMS: IMS Database Manager (IMS DB),
684+
IMS Transaction Manager (IMS TM), and common system services for IMS DB and
685+
IMS TM. Learn how these components work and interact with applications, how
686+
IMS databases differ from each other and differ from relational databases
687+
message types, security, maintenance, troubleshooting, and more."
688+
imgsrc="wp-content/icons/icon_education.svg"
689+
selfpaced="false"
690+
level="Beginner"
691+
cost="None"
692+
badge="Yes"
693+
time="32 hours"
694+
link="https://learn.ibm.com/course/view.php?id=8829"
695+
>
696+
</course-card>
678697
</section>
679698

680699
<!-- =========================== FAQ =========================== -->

web-components/course-card/course-card.css

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,8 @@ img {
4848
.inline-g p {
4949
padding: 0em;
5050
margin: 0em;
51-
/* font-weight: bold; */
5251
}
5352

54-
/* .inline-g span {
55-
font-weight: normal;
56-
} */
57-
5853
/* Styling for course card */
5954
.course-card {
6055
margin: 1em 0em;
@@ -86,11 +81,6 @@ img {
8681
align-items: center;
8782
}
8883

89-
/* .inline-g {
90-
display: grid;
91-
grid-template-columns: 1fr 6fr;
92-
} */
93-
9484
.inline-g div {
9585
display: grid;
9686
grid-template-columns: repeat(4, 1fr);

web-components/course-card/course-card.js

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ function createComponent(html) {
4747
const courseImg = shadow.querySelector('.course-img');
4848
courseImg.src = this.imgsrc;
4949
courseImg.setAttribute('alt', `${this.name} badge`);
50+
if (this.selfpaced != 'true') {
51+
const courseCard = shadow.querySelector('.course-card');
52+
courseCard.style.alignItems = 'flex-start';
53+
}
5054

5155
// Set course name
5256
setContent('.course-name', this.name, shadow);
@@ -65,24 +69,6 @@ function createComponent(html) {
6569
setContent('.course-time', this.time, shadow);
6670
// Set course link
6771
setLink('.course-link', this.link, this.name, shadow);
68-
69-
// Hide live course if not available
70-
// if (this.livelevel == undefined) {
71-
// const liveCourse = shadow.querySelector('.live-course');
72-
// const liveCourseLink = shadow.querySelector('.live-link');
73-
// liveCourse.style.display = liveCourseLink.style.display = "none";
74-
// } else {
75-
// // Set course level
76-
// setContent('.live-level', this.livelevel, shadow);
77-
// // Set course cost
78-
// setContent('.live-cost', this.livecost, shadow);
79-
// // Set course badge
80-
// setContent('.live-badge', this.livebadge, shadow);
81-
// // Set course time
82-
// setContent('.live-time', this.livetime, shadow);
83-
// // Set course link
84-
// setLink('.live-link', this.livelink, this.name, shadow);
85-
// }
8672
}
8773
}
8874

0 commit comments

Comments
 (0)