feat(launchpad): embed M4 demonstration video and update links structure

This commit is contained in:
Achintha Isuru
2026-03-05 16:42:11 -05:00
parent 03f8793e31
commit 456ead3960
3 changed files with 23 additions and 2 deletions

View File

@@ -48,8 +48,9 @@ async function loadLinks() {
<div class="space-y-3">
${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 `
<a ${hrefAttr} ${onclickAttr}