Skip to content

Commit

Permalink
Build page on /solutions/cloud-native-development
Browse files Browse the repository at this point in the history
  • Loading branch information
minkyngkm committed Feb 26, 2025
1 parent dd1c053 commit 76ce800
Show file tree
Hide file tree
Showing 5 changed files with 562 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sass": "1.79.0",
"vanilla-framework": "4.20.2"
"vanilla-framework": "4.21.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.16.5",
Expand Down
23 changes: 23 additions & 0 deletions static/js/modals.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,3 +309,26 @@ function getCustomFields(event) {
const textarea = document.getElementById("Comments_from_lead__c");
textarea.value = message;
}

// Fix Tab and modal js conflicts
(function () {
document.querySelectorAll(".p-tabs__link").forEach((tab) => {
tab.addEventListener("click", function (event) {
event.preventDefault();

document.querySelectorAll(".p-tabs__link").forEach((t) => {
t.setAttribute("aria-selected", "false");
t.setAttribute("tabindex", "-1");
});
this.setAttribute("aria-selected", "true");
this.removeAttribute("tabindex");

document
.querySelectorAll("[role='tabpanel']")
.forEach((panel) => (panel.style.display = "none"));
document.getElementById(
this.getAttribute("aria-controls")
).style.display = "block";
});
});
})();
34 changes: 34 additions & 0 deletions templates/solutions/cloud-native-development/form-data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"form": {
"/solutions/cloud-native-development": {
"templatePath": "/solutions/cloud-native-development/index.html",
"isModal": true,
"modalId": "cloud-native-development-modal",
"formData": {
"title": "Get in touch",
"formId": "6134",
"returnUrl": "/solutions/cloud-native-development#contact-form-success",
"product": ""
},
"fieldsets": [
{
"title": "Contact Canonical to discuss your app modernization needs and find out how our open source technologies can help you.",
"id": "about-you",
"noCommentsFromLead": true,
"fields": [
{
"type": "text",
"id": "company",
"label": "Company"
},
{
"type": "text",
"id": "title",
"label": "Job title"
}
]
}
]
}
}
}
Loading

0 comments on commit 76ce800

Please sign in to comment.