diff --git a/internal/launchpad/assets/data/links.json b/internal/launchpad/assets/data/links.json index 08bc2bea..b10af39b 100644 --- a/internal/launchpad/assets/data/links.json +++ b/internal/launchpad/assets/data/links.json @@ -1,4 +1,21 @@ [ + { + "title": "Demonstrations", + "iconColorClass": "bg-cyan-100", + "iconPath": "assets/images/icon-video.svg", + "links": [ + { + "title": "KROW Platform - M4 Demonstration", + "url": "https://www.youtube.com/embed/hD-Ngt5xfSc", + "badge": "Demo", + "badgeColorClass": "bg-cyan-500", + "containerClass": "bg-gradient-to-r from-cyan-50 to-blue-100 hover:from-cyan-100 hover:to-blue-200", + "iconClass": "w-2 h-2 bg-cyan-500 rounded-full", + "textHoverClass": "group-hover:text-cyan-700", + "isVideo": true + } + ] + }, { "title": "Applications", "iconColorClass": "bg-primary-100", diff --git a/internal/launchpad/assets/images/icon-video.svg b/internal/launchpad/assets/images/icon-video.svg new file mode 100644 index 00000000..3f7d6840 --- /dev/null +++ b/internal/launchpad/assets/images/icon-video.svg @@ -0,0 +1,3 @@ + + + diff --git a/internal/launchpad/assets/js/links-loader.js b/internal/launchpad/assets/js/links-loader.js index 47f20edf..8a5eb6cd 100644 --- a/internal/launchpad/assets/js/links-loader.js +++ b/internal/launchpad/assets/js/links-loader.js @@ -48,8 +48,9 @@ async function loadLinks() {
${group.links.map(link => { const isPrototype = link.url.startsWith('/prototypes/'); - const hrefAttr = isPrototype ? 'href="#"' : `href="${link.url}" target="_blank"`; - const onclickAttr = isPrototype ? `onclick="event.preventDefault(); showView('iframe', this, '${link.url}', '${link.title}')"` : ''; + const isVideo = link.isVideo === true; + const hrefAttr = (isPrototype || isVideo) ? 'href="#"' : `href="${link.url}" target="_blank"`; + const onclickAttr = (isPrototype || isVideo) ? `onclick="event.preventDefault(); showView('iframe', this, '${link.url}', '${link.title}')"` : ''; return `