Skip to content

The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.

feat(community): in-app entry points to GitHub, Discord, and open-design (#47)

Joey-nexub9f200218adb
diff --git a/src/components/tasks-sidebar.tsx b/src/components/tasks-sidebar.tsx
index fd60067e..6a499910 100644
--- a/src/components/tasks-sidebar.tsx
+++ b/src/components/tasks-sidebar.tsx
@@ -233,10 +233,36 @@ export function TasksSidebar() {
</div>
<div
- className="px-4 py-2.5 text-[10.5px] text-[var(--ink-faint)]"
+ className="flex flex-col gap-2 px-4 py-3"
style={{ borderTop: "1px solid var(--line-faint)" }}
>
- {t("tasks.footer")}
+ <span className="text-[10.5px] text-[var(--ink-faint)]">{t("tasks.footer")}</span>
+ <a
+ href="https://github.com/nexu-io/open-design"
+ target="_blank"
+ rel="noreferrer noopener"
+ className="group inline-flex w-fit items-center gap-1.5 rounded-full border px-2.5 py-1 text-[11.5px] font-medium transition-colors hover:border-[var(--ink)]/40"
+ style={{
+ background: "var(--surface)",
+ borderColor: "var(--line)",
+ color: "var(--ink-soft)",
+ }}
+ >
+ <svg
+ viewBox="0 0 24 24"
+ fill="currentColor"
+ width="12"
+ height="12"
+ className="opacity-70 transition-opacity group-hover:opacity-100"
+ >
+ <path d="M12 0C5.37 0 0 5.37 0 12c0 5.3 3.44 9.79 8.21 11.39.6.11.82-.26.82-.58v-2.04c-3.34.73-4.04-1.61-4.04-1.61-.55-1.39-1.34-1.76-1.34-1.76-1.09-.74.08-.73.08-.73 1.21.08 1.84 1.24 1.84 1.24 1.07 1.83 2.81 1.3 3.5 1 .11-.78.42-1.31.76-1.61-2.67-.3-5.47-1.34-5.47-5.95 0-1.31.47-2.39 1.24-3.23-.13-.3-.54-1.52.11-3.18 0 0 1-.32 3.3 1.23a11.45 11.45 0 0 1 6 0c2.3-1.55 3.3-1.23 3.3-1.23.65 1.66.24 2.88.11 3.18.77.84 1.24 1.92 1.24 3.23 0 4.62-2.81 5.64-5.49 5.94.43.37.81 1.1.81 2.22v3.29c0 .32.22.69.82.58A12.01 12.01 0 0 0 24 12c0-6.63-5.37-12-12-12z" />
+ </svg>
+ <span>
+ {t("community.builtBy")}{" "}
+ <span style={{ color: "var(--ink)" }}>Open Design</span>{" "}
+ <span className="text-[var(--ink-faint)]">↗</span>
+ </span>
+ </a>
</div>
</aside>
);
diff --git a/src/components/toolbar.tsx b/src/components/toolbar.tsx
index a25ab6a7..508b13af 100644
--- a/src/components/toolbar.tsx
+++ b/src/components/toolbar.tsx
@@ -39,6 +39,7 @@ export function Toolbar({
>
<div className="flex items-center gap-4">
<Brand />
+ <CommunityLinks />
<div className="hidden h-6 w-px sm:block" style={{ background: "var(--line)" }} />
<button
onClick={onOpenAgentPicker}
@@ -96,6 +97,45 @@ export function Toolbar({
);
}
+function CommunityLinks() {
+ const t = useT();
+ const linkCls =
+ "grid h-9 w-9 place-items-center rounded-full border text-[var(--ink-soft)] transition-all hover:border-[var(--ink)]/30 hover:text-[var(--ink)]";
+ const linkStyle = { background: "var(--surface)", borderColor: "var(--line)" };
+ const githubLabel = t("community.starOnGitHub");
+ const discordLabel = t("community.joinDiscord");
+ return (
+ <div className="hidden md:flex items-center gap-1.5">
+ <a
+ href="https://github.com/nexu-io/html-anything"
+ target="_blank"
+ rel="noreferrer noopener"
+ className={linkCls}
+ style={linkStyle}
+ title={githubLabel}
+ aria-label={githubLabel}
+ >
+ <svg viewBox="0 0 24 24" fill="currentColor" width="14" height="14">
+ <path d="M12 0C5.37 0 0 5.37 0 12c0 5.3 3.44 9.79 8.21 11.39.6.11.82-.26.82-.58v-2.04c-3.34.73-4.04-1.61-4.04-1.61-.55-1.39-1.34-1.76-1.34-1.76-1.09-.74.08-.73.08-.73 1.21.08 1.84 1.24 1.84 1.24 1.07 1.83 2.81 1.3 3.5 1 .11-.78.42-1.31.76-1.61-2.67-.3-5.47-1.34-5.47-5.95 0-1.31.47-2.39 1.24-3.23-.13-.3-.54-1.52.11-3.18 0 0 1-.32 3.3 1.23a11.45 11.45 0 0 1 6 0c2.3-1.55 3.3-1.23 3.3-1.23.65 1.66.24 2.88.11 3.18.77.84 1.24 1.92 1.24 3.23 0 4.62-2.81 5.64-5.49 5.94.43.37.81 1.1.81 2.22v3.29c0 .32.22.69.82.58A12.01 12.01 0 0 0 24 12c0-6.63-5.37-12-12-12z" />
+ </svg>
+ </a>
+ <a
+ href="https://discord.com/invite/qhbcCH8Am4"
+ target="_blank"
+ rel="noreferrer noopener"
+ className={linkCls}
+ style={linkStyle}
+ title={discordLabel}
+ aria-label={discordLabel}
+ >
+ <svg viewBox="0 0 24 24" fill="currentColor" width="15" height="15">
+ <path d="M20.317 4.37a19.79 19.79 0 0 0-4.885-1.515.07.07 0 0 0-.073.035c-.211.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.07.07 0 0 0-.073-.035A19.74 19.74 0 0 0 3.677 4.37a.06.06 0 0 0-.029.025C.533 9.046-.32 13.58.099 18.057a.08.08 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.08.08 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.07.07 0 0 0-.041-.099 13.1 13.1 0 0 1-1.872-.892.07.07 0 0 1-.007-.118c.126-.094.252-.192.372-.291a.07.07 0 0 1 .074-.01c3.927 1.793 8.18 1.793 12.061 0a.07.07 0 0 1 .075.009c.121.099.247.198.373.292a.07.07 0 0 1-.006.118 12.3 12.3 0 0 1-1.873.891.07.07 0 0 0-.04.1 15.83 15.83 0 0 0 1.226 1.993.07.07 0 0 0 .083.028 19.84 19.84 0 0 0 6.002-3.03.08.08 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.06.06 0 0 0-.031-.025zM8.02 15.331c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.974 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z" />
+ </svg>
+ </a>
+ </div>
+ );
+}
+
function Brand() {
const t = useT();
return (
diff --git a/src/components/welcome-modal.tsx b/src/components/welcome-modal.tsx
index 11dc49ca..a1e8a565 100644
--- a/src/components/welcome-modal.tsx
+++ b/src/components/welcome-modal.tsx
@@ -228,6 +228,41 @@ export function WelcomeModal({ onClose }: Props) {
)}
</div>
+ {/* Community links — brand names only, no translation needed. */}
+ <div
+ className="px-8 py-3 flex items-center justify-center gap-2 text-[11.5px] text-[var(--ink-mute)]"
+ style={{ borderTop: "1px solid var(--line-faint)" }}
+ >
+ <a
+ href="https://github.com/nexu-io/html-anything"
+ target="_blank"
+ rel="noreferrer noopener"
+ className="rounded-full px-3 py-1 border transition-colors hover:text-[var(--ink)] hover:border-[var(--ink)]/30"
+ style={{ borderColor: "var(--line)" }}
+ >
+ ★ GitHub
+ </a>
+ <a
+ href="https://discord.com/invite/qhbcCH8Am4"
+ target="_blank"
+ rel="noreferrer noopener"
+ className="rounded-full px-3 py-1 border transition-colors hover:text-[var(--ink)] hover:border-[var(--ink)]/30"
+ style={{ borderColor: "var(--line)" }}
+ >
+ Discord
+ </a>
+ <a
+ href="https://github.com/nexu-io/open-design"
+ target="_blank"
+ rel="noreferrer noopener"
+ className="rounded-full px-3 py-1 border transition-colors hover:text-[var(--ink)] hover:border-[var(--ink)]/30"
+ style={{ borderColor: "var(--line)" }}
+ title={t("community.upstreamHint")}
+ >
+ open-design ↗
+ </a>
+ </div>
+
{/* Footer */}
<div
className="px-8 py-5 flex items-center justify-between gap-4"
diff --git a/src/lib/i18n.ts b/src/lib/i18n.ts
index a8c61bd1..a80ed246 100644
--- a/src/lib/i18n.ts
+++ b/src/lib/i18n.ts
@@ -224,6 +224,12 @@ export interface Dict {
"tasks.defaultName": string;
"tasks.matchTooltip": string;
+ // Community / upstream link entry points
+ "community.starOnGitHub": string;
+ "community.joinDiscord": string;
+ "community.upstreamHint": string;
+ "community.builtBy": string;
+
// Export menu
"export.button": string;
"export.section.platform": string;
@@ -540,6 +546,11 @@ const en: Dict = {
"tasks.defaultName": "Task {n}",
"tasks.matchTooltip": "{a} / {b} match",
+ "community.starOnGitHub": "Star on GitHub",
+ "community.joinDiscord": "Join Discord",
+ "community.upstreamHint": "The upstream design system this is built on",
+ "community.builtBy": "Built by",
+
"export.button": "⤓ Export / Copy ▾",
"export.section.platform": "Copy to platform",
"export.section.raw": "Copy raw",
@@ -850,6 +861,11 @@ const zhCN: Dict = {
"tasks.defaultName": "任务 {n}",
"tasks.matchTooltip": "{a} / {b} 匹配",
+ "community.starOnGitHub": "在 GitHub 上 Star",
+ "community.joinDiscord": "加入 Discord",
+ "community.upstreamHint": "本项目所基于的上游设计系统",
+ "community.builtBy": "基于",
+
"export.button": "⤓ 导出 / 复制 ▾",
"export.section.platform": "复制到平台",
"export.section.raw": "复制原始内容",