Skip to content

Commit 8855613

Browse files
committed
Registry: make Install-in-app a full-width primary button
1 parent ff7663f commit 8855613

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

packages/index.html

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -302,16 +302,14 @@ <h2 class="flex flex-wrap items-center gap-2 text-xl font-bold">${esc(p.name)} <
302302
</div>
303303
${p.dependencies?`<div><p class="mb-2 text-xs font-semibold uppercase tracking-wide text-gray-400">Dependencies</p><div class="flex flex-wrap gap-1.5">${Object.entries(p.dependencies).map(([k,v])=>`<span class="rounded-full bg-gray-100 px-2 py-0.5 text-[11px] text-gray-600 dark:bg-white/5 dark:text-gray-300">${esc(k)} ${esc(v)}</span>`).join('')}</div></div>`:''}
304304
<div>
305-
<div class="mb-3 flex items-center justify-between gap-3">
306-
<p class="text-xs font-semibold uppercase tracking-wide text-gray-400">How to install</p>
307-
<a href="basispm://install?id=${encodeURIComponent(p.id)}&name=${encodeURIComponent(p.name)}&git=${encodeURIComponent(p.gitUrl||'')}&repo=${encodeURIComponent(p.repoUrl||'')}"
308-
class="inline-flex shrink-0 items-center gap-1.5 rounded-xl bg-gradient-to-r from-brand to-purple-600 px-3.5 py-1.5 text-xs font-semibold text-white shadow hover:shadow-lg"
309-
title="Opens the Basis Package Manager app and adds this package. Requires the app installed.">
310-
<svg class="h-3.5 w-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 3v12m0 0 4-4m-4 4-4-4"/><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2"/></svg>
311-
Install in app
312-
</a>
313-
</div>
314-
<p class="mb-2 text-xs text-gray-400">Have the desktop app? <b>Install in app</b> adds it to your active project. Otherwise use one of the methods below.</p>
305+
<p class="mb-3 text-xs font-semibold uppercase tracking-wide text-gray-400">How to install</p>
306+
<a href="basispm://install?id=${encodeURIComponent(p.id)}&name=${encodeURIComponent(p.name)}&git=${encodeURIComponent(p.gitUrl||'')}&repo=${encodeURIComponent(p.repoUrl||'')}"
307+
class="mb-3 flex w-full items-center justify-center gap-2 rounded-2xl bg-gradient-to-r from-brand to-purple-600 px-5 py-4 text-base font-semibold text-white shadow hover:shadow-lg"
308+
title="Opens the Basis Package Manager app and adds this package to your active project. Requires the app installed.">
309+
<svg class="h-5 w-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 3v12m0 0 4-4m-4 4-4-4"/><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2"/></svg>
310+
Install in the Basis Package Manager
311+
</a>
312+
<p class="mb-3 text-center text-xs text-gray-400">Requires the desktop app. Prefer to do it by hand? Use one of these:</p>
315313
<div class="space-y-3">${installMethods(p)}</div>
316314
</div>
317315
<div class="flex flex-wrap gap-2">

0 commit comments

Comments
 (0)