kwakseongjae/oh-my-design / .claude/skills/omd-aphrodite
omd:aphrodite
VerifiedMaximum-craft one-page landing — the wow bar. omd:landing 의 구조 위에 마감(서체 조달·그레인·깊이·색보정·스크롤 타임라인)과 최고급 에셋을 얹고, 랜딩 검사 전 항목 통과를 합격선으로 삼는다. Trigger: '와우', '압도적인', '최고급', '쇼케이스용', 'aphrodite', '데모용 랜딩', '이거 자랑할 거야'.
docs/design-excellence/fx-library/persistent-expand/snippet.js
View on GitHub// fx: persistent-expand — 자동 순환 + 클릭 고정. 호버는 여는 장치가 아니다. 구현: oh-my-design (MIT).
;(function (global) {
function mountExpand(root = document, { autoMs = 5200 } = {}) {
const reduce = matchMedia('(prefers-reduced-motion: reduce)').matches;
const offs = [];
for (const el of root.querySelectorAll('.fx-pex')) {
const panels = [...el.querySelectorAll('.fx-pex__panel')];
if (!panels.length) continue;
const ms = parseInt(el.dataset.fxAuto || autoMs, 10);
let i = Math.max(0, panels.findIndex(p => p.classList.contains('is-open')));
let pinned = false, hover = false, live = false, timer = 0;
panels.forEach((p, k) => {
if (!p.hasAttribute('tabindex') && p.tagName !== 'BUTTON') p.tabIndex = 0;
if (p.tagName !== 'BUTTON') { p.setAttribute('role', 'button'); }
p.setAttribute('aria-expanded', String(k === i));
});
const show = (k) => {
i = (k + panels.length) % panels.length;
panels.forEach((p, n) => {
p.classList.toggle('is-open', n === i);
p.setAttribute('aria-expanded', String(n === i));
});
};
const stop = () => { clearInterval(timer); timer = 0; };
const start = () => {
stop();
if (reduce || pinned || hover || !live || ms <= 0) return;
timer = setInterval(() => show(i + 1), ms);
};
const pin = (k) => { pinned = true; el.classList.add('is-pinned'); show(k); stop(); };
const unpin = () => { pinned = false; el.classList.remove('is-pinned'); start(); };
panels.forEach((p, k) => {
// 클릭 = 지속 열림. 호버로는 열리지 않는다.
p.addEventListener('click', () => { (pinned && k === i) ? unpin() : pin(k); });
p.addEventListener('keydown', (e) => {
if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); (pinned && k === i) ? unpin() : pin(k); }
else if (e.key === 'ArrowRight' || e.key === 'ArrowDown') { e.preventDefault(); pin((k + 1) % panels.length); panels[i].focus(); }
else if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') { e.preventDefault(); pin((k - 1 + panels.length) % panels.length); panels[i].focus(); }
});
// 포커스는 명시적 의도다 — 키보드만으로 완결된다.
p.addEventListener('focus', () => { if (!pinned) show(k); });
});
el.addEventListener('keydown', (e) => { if (e.key === 'Escape' && pinned) { unpin(); } });
el.addEventListener('pointerenter', (e) => { if (e.pointerType === 'mouse') { hover = true; stop(); } });
el.addEventListener('pointerleave', (e) => { if (e.pointerType === 'mouse') { hover = false; start(); } });
const io = new IntersectionObserver(([en]) => { // 화면 밖에서는 타이머를 끈다
live = en.isIntersecting;
live ? start() : stop();
}, { rootMargin: '10% 0px' });
io.observe(el);
show(i);
offs.push(() => { io.disconnect(); stop(); });
}
return () => offs.forEach(f => f());
}
global.fxLib = Object.assign(global.fxLib || {}, { mountExpand });
})(window);
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |