From da3bf1d6fa34af78d48621e7ed98e9e854af70b1 Mon Sep 17 00:00:00 2001 From: Sarah Miller Date: Wed, 16 Jul 2025 09:07:09 -0400 Subject: [PATCH 1/2] create editable card subtitle --- web-components/hero-section/hero-section.html | 2 +- web-components/hero-section/hero-section.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/web-components/hero-section/hero-section.html b/web-components/hero-section/hero-section.html index 82ab44b8..e966cd37 100644 --- a/web-components/hero-section/hero-section.html +++ b/web-components/hero-section/hero-section.html @@ -20,7 +20,7 @@

-

Coming soon

+

See details diff --git a/web-components/hero-section/hero-section.js b/web-components/hero-section/hero-section.js index 63a7dacd..6f02683c 100644 --- a/web-components/hero-section/hero-section.js +++ b/web-components/hero-section/hero-section.js @@ -70,6 +70,7 @@ function createComponent(html) { // Creates element with default values constructor() { super(); + this.highlightsub = 'Coming soon'; } /** @@ -77,7 +78,7 @@ function createComponent(html) { * @returns {Array} An array of property names. */ static get observedAttributes() { - return ['name', 'image', 'section', 'desc', 'linktext', 'link', 'linktext2', 'link2', 'highlight', 'highlightlink']; + return ['name', 'image', 'section', 'desc', 'linktext', 'link', 'linktext2', 'link2', 'highlight', 'highlightsub', 'highlightlink']; } /** @@ -114,6 +115,7 @@ function createComponent(html) { // Display highlight card if content is provided if (this.highlight != undefined) { + setContent('.highlight-sub', this.highlightsub, shadow); setContent('.highlight', this.highlight, shadow); setLink('.highlight-link', this.highlightlink, shadow, this.highlight); hero.classList.add('hero-highlight'); From 2da1b87ec98806e511b087abed67693661e8c66c Mon Sep 17 00:00:00 2001 From: Sarah Miller Date: Wed, 16 Jul 2025 09:14:34 -0400 Subject: [PATCH 2/2] update course status --- ims-education.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ims-education.html b/ims-education.html index fd74109e..dc2394ec 100644 --- a/ims-education.html +++ b/ims-education.html @@ -90,6 +90,7 @@ linktext="Sign up for an IBM ID →" link="https://login.ibm.com/authsvc/mtfim/sps/authsvc?PolicyId=urn:ibm:security:authentication:asf:basicldapuser&Target=https%3A%2F%2Flogin.ibm.com%2Foidc%2Fendpoint%2Fdefault%2Fauthorize%3FqsId%3D9fe3fe66-c22f-4c7b-8e5d-01dfc0e8defa%26client_id%3DMyIBMDallasProdCI" highlight="Implementing IMS Security" + highlightsub="New course" highlightlink="#ims-security" > @@ -321,7 +322,7 @@