Basinfy/Basinfy-SaaS-Studio / .claude/skills/saas-frontend-taste
saas-frontend-taste
VerifiedDesign, refine, and verify SaaS screens with anti-slop copy and responsive layout checks.
assets/ui/apps/fragment.js
View on GitHub// apps: hairlines run from the product's mark to every app; one app connects per cycle (about 3.2 s):
// the lit line goes out, the next app's line lights and runs toward it, its tile takes the accent ring
// and shows its name; then the next app
import { loop, withLoop } from '../ui.js';
export default function init(root, opts = {}) {
const svg = root.querySelector('.ui-field__lines');
const hub = root.querySelector('.ui-field__hub');
const tiles = [...root.querySelectorAll('.ui-field__tile')];
if (!svg || !hub || !tiles.length) return null;
const order = (opts.order || [2, 9, 0, 4, 11, 6]).filter(i => i < tiles.length);
if (!order.length) order.push(0);
let paths = [], cur = -1;
const show = i => {
cur = i;
tiles.forEach((t, k) => t.classList.toggle('is-on', k === i));
paths.forEach((p, k) => p.classList.toggle('is-on', k === i));
};
function lines() {
const r = root.getBoundingClientRect(), h = hub.getBoundingClientRect();
const hx = h.left - r.left + h.width / 2, hy = h.top - r.top + h.height / 2;
svg.setAttribute('viewBox', `0 0 ${r.width} ${r.height}`);
svg.innerHTML = tiles.map(t => {
const b = t.getBoundingClientRect();
const x = b.left - r.left + b.width / 2, y = b.top - r.top + b.height / 2;
// an elbow: out of the hub sideways, then to the tile, with one soft corner
const mx = hx + (x - hx) * 0.5;
return `<path d="M${hx} ${hy} C${mx} ${hy} ${mx} ${y} ${x} ${y}"/>`;
}).join('');
paths = [...svg.children];
show(cur);
}
lines();
const ro = new ResizeObserver(lines);
ro.observe(root);
let k = 0;
// one cycle (2.8 s): three apps take the ring in turn, the last held 0.38 s
const ctl = loop(root, async api => {
for (let n = 0; n < 3; n++) {
show(-1);
await api.wait(200);
show(order[++k % order.length]);
await api.wait(n < 2 ? 900 : 380);
}
}, { still: () => { k = 0; show(order[0]); } });
return withLoop(ctl, () => { ro.disconnect(); ctl.destroy(); });
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |