Cloudflare Git

Repos/herdr-appPublic

main
116 lines · 10.6 KBRaw
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>kit layout</title>
<script src="./support.js"></script>
</head>
<body>
<x-dc>
<helmet>
<style>
body{margin:0}
a{color:#93a096}a:hover{color:#d8ded6}
</style>
</helmet>
<div style="position: relative; width: 1440px; height: 900px; box-sizing: border-box; display: flex; background: #141916; color: #d8ded6; font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif; font-size: 13px; overflow: hidden">

<div style="width: 268px; flex: none; display: flex; flex-direction: column; background: #171d1a; border-right: 1px solid #2a332e">
<div style="height: 44px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 76px; border-bottom: 1px solid #2a332e">
<div style="font-weight: 700; font-size: 14px">Herdr</div>
<div style="display: flex; gap: 12px; color: #93a096">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><circle cx="11" cy="11" r="7"></circle><path d="M21 21l-4.3-4.3"></path></svg>
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><rect x="3" y="4" width="18" height="16" rx="2"></rect><path d="M9 4v16"></path></svg>
</div>
</div>
<div style="display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 5px; color: #66726a; font-size: 11.5px"><span>Agents ({{agentCount}})</span>
</div>
<div style="flex: 1; min-height: 0; padding: 0 8px 10px; display: flex; flex-direction: column; gap: 2px; overflow: hidden">
<sc-for list="{{rows}}" as="a" hint-placeholder-count="3">
<div style="{{a.row}}">
<div style="position: relative; flex: none"><div style="{{a.tile}}">{{a.letter}}</div><div style="{{a.badge}}"></div></div>
<div style="flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px">
<div style="font-size: 14.5px; font-weight: 700; color: {{a.color}}; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">{{a.name}}</div>
<div style="font-size: 12px; line-height: 16px; max-height: 48px; overflow: hidden; color: {{a.color}}">{{a.activity}}</div>
</div>
<div style="flex: none; font-size: 11px; color: #66726a">{{a.age}}</div>
</div>
</sc-for>
</div>
<div style="flex: none; border-top: 1px solid #2a332e; padding-bottom: 14px">
<div style="display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 5px; color: #66726a; font-size: 11.5px"><span>Spaces ({{spaceCount}})</span><span style="font-size: 15px; color: #93a096">+</span></div>
<div style="display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px">
<sc-for list="{{spaces}}" as="s" hint-placeholder-count="12">
<div style="{{s.ring}}"><div style="{{s.tile}}">{{s.letter}}</div></div>
</sc-for>
</div>
</div>
<div style="height: 41px; flex: none; border-top: 1px solid #2a332e; display: flex; align-items: center; gap: 10px; padding: 0 14px; color: #b8c0b6; font-size: 13px">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><circle cx="12" cy="12" r="3"></circle><path d="M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1"></path></svg>Settings
</div>
</div>

<div style="flex: 1; min-width: 0; display: flex; flex-direction: column">
<div style="height: 44px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px">
<div style="height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 7px; background: #2f3431; border: 1px solid #2a332e; font-size: 12.5px"><div style="{{tabTile}}">H</div>herdr-app <span style="color: #93a096">×</span></div>
<div style="height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 7px; color: #93a096; font-size: 12.5px"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"></path><path d="M14 3v5h5"></path></svg>main.js <span style="color: #66726a">×</span></div>
<div style="flex: 1"></div>
<div style="color: #93a096">+</div>
<div style="padding: 5px 10px; border-radius: 7px; background: #2f3431; font-size: 12.5px">Files</div>
</div>
<div style="flex: 1; min-height: 0; display: flex; gap: 10px; padding: 0 10px 10px">
<div style="flex: 1; min-width: 0; display: flex; flex-direction: column; border: 1px solid #66726a; border-radius: 10px; background: #1a201d">
<div style="height: 32px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid #2a332e; font-size: 12.5px"><span style="font-weight: 600">Claude Code</span><span style="color: #93a096">~/Developer/projects/herdr-app</span></div>
<div style="flex: 1; padding: 16px 20px; font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: 12.5px; line-height: 20px; color: #b8c0b6">
<div>❯ make the activity 12px</div>
<div style="color: #66726a">● Set activity text to 12px, install, screenshot</div>
<div>&#160;</div>
<div>The activity text is now 12px, with the line spacing</div>
<div>tightened from 18px to 16px to match.</div>
</div>
</div>
<div style="width: 300px; flex: none; border: 1px solid #2a332e; border-radius: 10px; background: #1a201d">
<div style="height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid #2a332e"><span style="font-weight: 600">Files</span><span style="color: #93a096; font-size: 12px">herdr-app</span></div>
<div style="padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; color: #b8c0b6; font-size: 12.5px">
<div>▸ hooks</div><div>▸ keys</div><div>▸ layouts</div><div style="display: flex; align-items: center; height: 18px; color: #e2735f"><span>▸ mockups</span><span style="min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; font-size: 11px; display: flex; align-items: center; justify-content: center; margin-left: auto; background: #e2735f26; font-weight: 700">3</span></div><div style="display: flex; align-items: center; height: 18px; color: #e2735f"><span>▸ mods</span><span style="min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; font-size: 11px; display: flex; align-items: center; justify-content: center; margin-left: auto; background: #e2735f26; font-weight: 700">2</span></div><div>▸ themes</div><div style="display: flex; align-items: center; height: 18px; color: #e2735f"><span>CLAUDE.md</span><span style="min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; font-size: 11px; display: flex; align-items: center; justify-content: center; margin-left: auto">M</span></div><div>install.sh</div>
</div>
</div>
</div>
<div style="height: 26px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 14px; border-top: 1px solid #2a332e; color: #93a096; font-size: 11.5px"><span>This computer</span><span>● 4 agents</span><span style="flex: 1"></span><span>⌘⇧P commands</span></div>
</div>


<!-- space card: the pointer on voicebar (row 2, column 2); its column's card opens above the column's top badge, in its space's color -->
<div style="position: absolute; left: 46px; top: 754px; display: flex; flex-direction: column; align-items: flex-start">
<div style="padding: 5px 10px; border-radius: 8px; background: #792798; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.35)">voicebar</div>
<div style="width: 0; height: 0; margin-left: 7px; margin-top: -1px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid #792798"></div>
</div>
</div>
</x-dc>
<script type="text/x-dc" data-dc-script data-props='{"$preview":{"width":1440,"height":900}}'>
class Component extends DCLogic {
renderVals() {
const C = { 'herdr-app': '#c43b15', 'development': '#22a99a', 'aliasroute': '#e3814f', 'reviewsteer': '#5b8def', 'nowtimer': '#8b7cf6', 'health-check': '#3fae6a', 'cloudflare-git': '#d9649a', 'docs-sftinc-app': '#883c00', 'voicebar': '#792798', 'herdr-kit': '#09672e', 'claude-code-model-router': '#977e0d', 'snapzo': '#ad215f', 'flipd': '#8e7699' };
const tile = (color, px) => 'width: ' + px + 'px; height: ' + px + 'px; border-radius: ' + Math.round(px * 0.28) + 'px; background: ' + color + '; color: #fff; font-size: ' + Math.round(px * 0.56) + 'px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none';
const badge = (status) => {
  const base = 'position: absolute; right: -4px; bottom: -4px; width: 11px; height: 11px; border-radius: 50%; box-sizing: border-box; ';
  if (status === 'working') return base + 'background: #e3b65f; border: 2px solid #171d1a';
  if (status === 'done') return base + 'background: #93c47d; border: 2px solid #171d1a';
  if (status === 'blocked') return base + 'background: #e2735f; border: 2px solid #171d1a';
  return base + 'background: #171d1a; border: 1.5px solid #66726a';
};
// The agents in the shown order, each as its space's tile; the focused one is raised.
const agents = [['herdr-app', 'working', true], ['aliasroute', 'done', false], ['development', 'idle', false]]
  .map(([space, status, focused]) => ({ letter: space[0].toUpperCase(), tile: tile(C[space], 24), badge: badge(status),
    cell: 'width: 44px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px' + (focused ? '; background: #2c312f' : '') }));
// Every space, last used first; the shown one is raised.
const spaces = Object.keys(C).map((n, i) => ({ letter: n[0].toUpperCase(), tile: tile(C[n], 22), ring: 'padding: 2px; border-radius: 7px' + (i === 0 ? '; background: #2c312f' : i === 8 ? '; background: #3c4540; box-shadow: 0 0 0 3px #3c4540; border-radius: 7px' : '') }));
const row = (space, activity, age, st, focused) => ({ letter: space[0].toUpperCase(), tile: tile(C[space], 22), name: space, activity, age, badge: badge(st), color: st === 'idle' ? '#93a096' : '#d8ded6',
  row: 'display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 9px' + (focused ? '; background: #2c312f' : '') });
const rows = [row('herdr-app', 'Moving the spaces to the bottom of the sidebar', '<1m', 'working', true), row('aliasroute', '', '33m', 'idle'), row('development', 'Removed Add machine from the sidebar footer and republished the mockup', '51m', 'idle')];
return { agentCount: 3, spaceCount: spaces.length, rows, tabTile: tile(C['herdr-app'], 16), btn: 'width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #93a096', agents, spaces };
}
}
</script>
</body>
</html>