feat(launchpad): embed M4 demonstration video and update links structure
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user