mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 20:34:19 +00:00
feat(website): show the demo video on the homepage
A short video explains what skillshare does faster than the interactive string board, so the hero now pairs the copy with the framed logo and a captioned demo video. The tool list and board examples name Pi instead of Cursor to match the demo.
This commit is contained in:
+5
-3
@@ -37,7 +37,7 @@ docs/ ~100 Markdown pages, English only
|
||||
troubleshooting/ Errors, FAQ, Windows
|
||||
blog/ Blog posts (enabled, /blog)
|
||||
src/
|
||||
pages/index.tsx Homepage: interactive "string board" hero, install tabs,
|
||||
pages/index.tsx Homepage: product demo video, desktop installation,
|
||||
four-moves diagram, feature-map teaser, CTA
|
||||
pages/index.module.css Homepage styles (hand-drawn tokens from custom.css)
|
||||
pages/features.tsx /features — Feature Map: all commands grouped by job, live filter
|
||||
@@ -45,7 +45,8 @@ src/
|
||||
data/featureMap.ts Command groups shared by the homepage teaser and /features
|
||||
components/ AsciinemaPlayer
|
||||
css/custom.css Design system (tokens, typography, dark/light)
|
||||
static/img/ Screenshots, logo, social card
|
||||
static/img/ Screenshots, logo, video poster, social card
|
||||
static/video/ Homepage demo MP4 and captions
|
||||
plugins/llms-txt.ts Local plugin: writes build/llms.txt and llms-full.txt
|
||||
```
|
||||
|
||||
@@ -69,7 +70,8 @@ plugins/llms-txt.ts Local plugin: writes build/llms.txt and llms-full.t
|
||||
|
||||
## Homepage / Feature Map Notes
|
||||
|
||||
- Boards are laid out at a fixed design width (1168px) and scaled with a `ResizeObserver`; below 640px the hero board becomes a pin-chip list with the same state
|
||||
- The hero places a floating framed logo beside the copy and a responsive MP4 below it; the logo stacks below the copy on mobile. The video has native controls and a poster; both floating motion and autoplay respect `prefers-reduced-motion`
|
||||
- The four-moves board is laid out at a fixed design width (1168px) and scaled with a `ResizeObserver`; below 640px it becomes a list
|
||||
- Interactive state is local React state only (no persistence)
|
||||
- Counts (`COMMAND_COUNT`, `TARGET_COUNT`) live in `src/data/featureMap.ts`; update them when commands or targets change
|
||||
- Every `href` in `featureMap.ts` must map to an existing page under `docs/` (the build's broken-link check covers them)
|
||||
|
||||
@@ -48,19 +48,7 @@
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.hero.tools": {
|
||||
"message": "Claude Code、Codex、Cursor、OpenCode などで使えます。",
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.board.source": {
|
||||
"message": "あなたの skills をひとつの場所で管理",
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.board.edit": {
|
||||
"message": "skill を一度編集",
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.board.use": {
|
||||
"message": "各ツールで使う",
|
||||
"message": "Claude Code、Codex、Pi、OpenCode などで使えます。",
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.board.preview": {
|
||||
@@ -98,5 +86,13 @@
|
||||
"home.meta.description": {
|
||||
"message": "あなたの AI コーディング環境を、どこでも。デスクトップアプリまたは CLI で skills、agents、rules、MCP 接続、hooks をひとつの場所で管理。",
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.demo.label": {
|
||||
"message": "Skillshare デモ:一度編集して、AI コーディングツール間で同期",
|
||||
"description": "Homepage product demo"
|
||||
},
|
||||
"home.demo.download": {
|
||||
"message": "デモ動画をダウンロード",
|
||||
"description": "Homepage product demo"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,19 +48,7 @@
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.hero.tools": {
|
||||
"message": "Claude Code, Codex, Cursor, OpenCode 등에서 사용할 수 있습니다.",
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.board.source": {
|
||||
"message": "내 skills를 한곳에서 관리",
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.board.edit": {
|
||||
"message": "skill을 한 번 수정",
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.board.use": {
|
||||
"message": "각 도구에서 사용",
|
||||
"message": "Claude Code, Codex, Pi, OpenCode 등에서 사용할 수 있습니다.",
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.board.preview": {
|
||||
@@ -98,5 +86,13 @@
|
||||
"home.meta.description": {
|
||||
"message": "나의 AI 코딩 환경을, 어디서나. 데스크톱 앱이나 CLI로 skills, agents, rules, MCP 연결과 hooks를 한곳에서 관리하세요.",
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.demo.label": {
|
||||
"message": "Skillshare 데모: 한 번 수정하고 AI 코딩 도구 간에 동기화",
|
||||
"description": "Homepage product demo"
|
||||
},
|
||||
"home.demo.download": {
|
||||
"message": "데모 영상 다운로드",
|
||||
"description": "Homepage product demo"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,19 +48,7 @@
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.hero.tools": {
|
||||
"message": "适用于 Claude Code、Codex、Cursor、OpenCode 等工具。",
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.board.source": {
|
||||
"message": "你的 skills · 集中管理",
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.board.edit": {
|
||||
"message": "修改一次 skill",
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.board.use": {
|
||||
"message": "在各工具中使用",
|
||||
"message": "适用于 Claude Code、Codex、Pi、OpenCode 等工具。",
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.board.preview": {
|
||||
@@ -98,5 +86,13 @@
|
||||
"home.meta.description": {
|
||||
"message": "你的 AI 编程环境,随处可用。通过桌面 App 或 CLI,在同一个地方管理 skills、agents、rules、MCP 连接与 hooks。",
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.demo.label": {
|
||||
"message": "Skillshare 演示:修改一次,在 AI coding 工具之间同步",
|
||||
"description": "Homepage product demo"
|
||||
},
|
||||
"home.demo.download": {
|
||||
"message": "下载演示影片",
|
||||
"description": "Homepage product demo"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,19 +52,7 @@
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.hero.tools": {
|
||||
"message": "適用於 Claude Code、Codex、Cursor、OpenCode 等工具。",
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.board.source": {
|
||||
"message": "你的 skills · 集中管理",
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.board.edit": {
|
||||
"message": "修改一次 skill",
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.board.use": {
|
||||
"message": "在各工具中使用",
|
||||
"message": "適用於 Claude Code、Codex、Pi、OpenCode 等工具。",
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.board.preview": {
|
||||
@@ -102,5 +90,13 @@
|
||||
"home.meta.description": {
|
||||
"message": "你的 AI coding 環境,隨處可用。透過桌面 App 或 CLI,在同一個地方管理 skills、agents、rules、MCP 連線與 hooks。",
|
||||
"description": "Homepage product positioning"
|
||||
},
|
||||
"home.demo.label": {
|
||||
"message": "Skillshare 示範:修改一次,在 AI coding 工具之間同步",
|
||||
"description": "Homepage product demo"
|
||||
},
|
||||
"home.demo.download": {
|
||||
"message": "下載示範影片",
|
||||
"description": "Homepage product demo"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Homepage: the string board. Hand-drawn tokens come from custom.css. */
|
||||
/* Homepage: video hero and hand-drawn boards. Tokens come from custom.css. */
|
||||
|
||||
.homePage {
|
||||
--board-bg: #f6eedb;
|
||||
@@ -121,13 +121,41 @@
|
||||
}
|
||||
|
||||
.heroHead {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
|
||||
align-items: start;
|
||||
gap: 2.5rem;
|
||||
margin-bottom: 1.75rem;
|
||||
}
|
||||
|
||||
.heroLogo {
|
||||
width: clamp(240px, 28vw, 360px);
|
||||
height: auto;
|
||||
justify-self: center;
|
||||
margin-top: 1.5rem;
|
||||
border-radius: var(--radius-wobbly);
|
||||
animation: logoFloat 4s ease-in-out infinite;
|
||||
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
|
||||
}
|
||||
|
||||
.heroLogo:hover {
|
||||
animation: none;
|
||||
transform: rotate(-3deg) scale(1.06);
|
||||
}
|
||||
|
||||
@keyframes logoFloat {
|
||||
0%,
|
||||
100% {
|
||||
transform: translateY(0) rotate(0deg);
|
||||
}
|
||||
25% {
|
||||
transform: translateY(-4px) rotate(0.5deg);
|
||||
}
|
||||
75% {
|
||||
transform: translateY(3px) rotate(-0.5deg);
|
||||
}
|
||||
}
|
||||
|
||||
.heroTitle {
|
||||
font-family: 'Kalam', cursive;
|
||||
font-size: clamp(2.4rem, 5vw, 3.75rem);
|
||||
@@ -145,13 +173,14 @@
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.heroHint {
|
||||
font-size: 1.35rem;
|
||||
color: var(--color-pencil-light);
|
||||
text-align: right;
|
||||
line-height: 1.1;
|
||||
flex-shrink: 0;
|
||||
padding-bottom: 6px;
|
||||
.heroVideo {
|
||||
display: block;
|
||||
width: 100%;
|
||||
aspect-ratio: 16 / 9;
|
||||
background: var(--board-bg);
|
||||
border: 2px solid var(--card-border);
|
||||
border-radius: var(--radius-wobbly);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
@keyframes titleSlideIn {
|
||||
@@ -205,12 +234,6 @@
|
||||
animation: draw 0.9s ease-out forwards;
|
||||
}
|
||||
|
||||
.strOff {
|
||||
stroke: var(--color-muted-dark);
|
||||
stroke-dasharray: 5 7;
|
||||
opacity: 0.35;
|
||||
}
|
||||
|
||||
@keyframes draw {
|
||||
to {
|
||||
stroke-dashoffset: 0;
|
||||
@@ -289,311 +312,6 @@
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
/* Tool stickers */
|
||||
.tool {
|
||||
position: absolute;
|
||||
width: 156px;
|
||||
height: 66px;
|
||||
box-sizing: border-box;
|
||||
padding: 12px 12px 8px 14px;
|
||||
background: var(--sticker-bg);
|
||||
border: 2px solid var(--card-border);
|
||||
box-shadow: var(--shadow-md);
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
font-family: var(--ifm-font-family-base);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1px;
|
||||
color: var(--color-pencil);
|
||||
transition: box-shadow 0.12s, opacity 0.2s, filter 0.12s;
|
||||
}
|
||||
|
||||
.tool:hover {
|
||||
box-shadow: var(--shadow-hover);
|
||||
filter: brightness(0.98);
|
||||
}
|
||||
|
||||
.tool:focus-visible {
|
||||
outline: 3px solid var(--color-blue);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.toolOff {
|
||||
background: transparent;
|
||||
border-style: dashed;
|
||||
box-shadow: none;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.toolOff .pin {
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
.tool .pin {
|
||||
top: -8px;
|
||||
left: 70px;
|
||||
}
|
||||
|
||||
.toolName {
|
||||
font-weight: 600;
|
||||
font-size: 14.5px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.toolPath {
|
||||
font-family: var(--ifm-font-family-monospace);
|
||||
font-size: 10.5px;
|
||||
color: var(--color-pencil-light);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.sourceCaption {
|
||||
position: absolute;
|
||||
left: 424px;
|
||||
top: 470px;
|
||||
width: 320px;
|
||||
text-align: center;
|
||||
font-family: var(--ifm-font-family-monospace);
|
||||
font-size: 11.5px;
|
||||
color: var(--color-pencil-light);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.boardLink {
|
||||
position: absolute;
|
||||
right: 22px;
|
||||
bottom: 16px;
|
||||
font-family: 'Kalam', cursive;
|
||||
font-size: 20px;
|
||||
color: var(--color-blue);
|
||||
}
|
||||
|
||||
.counter {
|
||||
position: absolute;
|
||||
left: 24px;
|
||||
top: 300px;
|
||||
width: 118px;
|
||||
padding: 10px 12px;
|
||||
background: var(--sticker-bg);
|
||||
border: 2px solid var(--card-border);
|
||||
box-shadow: 3px 3px 0 0 var(--card-border);
|
||||
transform: rotate(-2deg);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.counterNum {
|
||||
font-family: 'Kalam', cursive;
|
||||
font-size: 44px;
|
||||
line-height: 1;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.counterLabel {
|
||||
font-family: var(--ifm-font-family-monospace);
|
||||
font-size: 10.5px;
|
||||
color: var(--color-pencil-light);
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* Source logo (same animation as before) */
|
||||
.logoWrap {
|
||||
position: absolute;
|
||||
left: 474px;
|
||||
top: 218px;
|
||||
width: 220px;
|
||||
height: 220px;
|
||||
animation: logoEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
|
||||
}
|
||||
|
||||
.logoRing {
|
||||
position: absolute;
|
||||
inset: -18px;
|
||||
border: 3px dashed var(--color-muted-dark);
|
||||
border-radius: var(--radius-wobbly);
|
||||
opacity: 0.6;
|
||||
background: rgba(253, 251, 247, 0.7);
|
||||
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
:global([data-theme='dark']) .logoRing {
|
||||
background: rgba(26, 24, 22, 0.7);
|
||||
}
|
||||
|
||||
.logoShadow {
|
||||
position: absolute;
|
||||
inset: -18px;
|
||||
border-radius: var(--radius-wobbly);
|
||||
background: rgba(45, 45, 45, 0.06);
|
||||
transform: translate(4px, 4px);
|
||||
pointer-events: none;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.logoWrap:hover .logoRing {
|
||||
inset: -24px;
|
||||
opacity: 0.9;
|
||||
border-color: var(--color-blue);
|
||||
transform: rotate(3deg);
|
||||
}
|
||||
|
||||
.logoWrap:hover .logoShadow {
|
||||
inset: -24px;
|
||||
transform: translate(3px, 3px);
|
||||
}
|
||||
|
||||
.sparkle {
|
||||
position: absolute;
|
||||
font-size: 22px;
|
||||
line-height: 1;
|
||||
color: var(--color-muted-dark);
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
animation: sparkleFadeIn 0.8s ease forwards;
|
||||
}
|
||||
|
||||
.sparkle:nth-of-type(1) {
|
||||
top: -10px;
|
||||
right: -8px;
|
||||
animation-delay: 0.4s;
|
||||
}
|
||||
|
||||
.sparkle:nth-of-type(2) {
|
||||
bottom: 8px;
|
||||
left: -14px;
|
||||
animation-delay: 0.6s;
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
.sparkle:nth-of-type(3) {
|
||||
top: 12px;
|
||||
left: -10px;
|
||||
animation-delay: 0.8s;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.logoWrap:hover .sparkle {
|
||||
animation: sparkleWiggle 0.4s ease-in-out;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.logoImg {
|
||||
position: relative;
|
||||
width: 220px;
|
||||
height: 220px;
|
||||
object-fit: contain;
|
||||
display: block;
|
||||
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
|
||||
animation: logoFloat 4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.logoWrap:hover .logoImg {
|
||||
animation: none;
|
||||
transform: rotate(-3deg) scale(1.06);
|
||||
}
|
||||
|
||||
@keyframes logoEntrance {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: scale(0.3) rotate(-8deg);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: scale(1) rotate(0deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes sparkleFadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: scale(0) rotate(-20deg);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: scale(1) rotate(0deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes sparkleWiggle {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
25% {
|
||||
transform: rotate(12deg);
|
||||
}
|
||||
50% {
|
||||
transform: rotate(-10deg);
|
||||
}
|
||||
75% {
|
||||
transform: rotate(6deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes logoFloat {
|
||||
0%,
|
||||
100% {
|
||||
transform: translateY(0) rotate(0deg);
|
||||
}
|
||||
25% {
|
||||
transform: translateY(-4px) rotate(0.5deg);
|
||||
}
|
||||
75% {
|
||||
transform: translateY(3px) rotate(-0.5deg);
|
||||
}
|
||||
}
|
||||
|
||||
/* Small screens: pin list instead of the board */
|
||||
.pinList {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.6rem;
|
||||
}
|
||||
|
||||
.pinChip {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.55rem 0.9rem 0.55rem 1.6rem;
|
||||
background: transparent;
|
||||
border: 2px dashed var(--color-muted-dark);
|
||||
border-radius: var(--radius-wobbly-sm);
|
||||
color: var(--color-pencil-light);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.pinChip .pin {
|
||||
left: 6px;
|
||||
top: 50%;
|
||||
margin-top: -8px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
opacity: 0.35;
|
||||
}
|
||||
|
||||
.pinChipOn {
|
||||
background: var(--sticker-bg);
|
||||
border: 2px solid var(--card-border);
|
||||
box-shadow: var(--shadow-hover);
|
||||
color: var(--color-pencil);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.pinChipOn .pin {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Terminal + install */
|
||||
.heroBottom {
|
||||
display: grid;
|
||||
@@ -1013,13 +731,16 @@
|
||||
}
|
||||
|
||||
.heroHead {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.heroHint {
|
||||
text-align: left;
|
||||
.heroLogo {
|
||||
width: min(100%, 280px);
|
||||
align-self: center;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.heroBottom {
|
||||
@@ -1050,16 +771,15 @@
|
||||
stroke-dashoffset: 0;
|
||||
}
|
||||
|
||||
.logoWrap,
|
||||
.logoImg,
|
||||
.sparkle,
|
||||
.heroTitle {
|
||||
animation: none;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.logoWrap:hover .logoImg,
|
||||
.logoWrap:hover .logoRing {
|
||||
.heroLogo,
|
||||
.heroLogo:hover {
|
||||
animation: none;
|
||||
transform: none;
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
|
||||
+53
-135
@@ -53,132 +53,57 @@ function ScaledBoard({
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Hero board: source logo strung to 8 of the 67 targets.
|
||||
// Product demo and CLI preview.
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
type Tool = {
|
||||
id: string;
|
||||
name: string;
|
||||
path: string;
|
||||
local: number;
|
||||
left: number;
|
||||
top: number;
|
||||
rotate: number;
|
||||
string: string;
|
||||
defaultOn: boolean;
|
||||
};
|
||||
function HeroVideo() {
|
||||
const ref = useRef<HTMLVideoElement>(null);
|
||||
useEffect(() => {
|
||||
const video = ref.current;
|
||||
if (!video) return undefined;
|
||||
const motion = window.matchMedia('(prefers-reduced-motion: reduce)');
|
||||
const update = () => {
|
||||
if (motion.matches) {
|
||||
video.pause();
|
||||
} else {
|
||||
// Native controls remain available if the browser blocks autoplay.
|
||||
void video.play().catch(() => {});
|
||||
}
|
||||
};
|
||||
update();
|
||||
motion.addEventListener('change', update);
|
||||
return () => motion.removeEventListener('change', update);
|
||||
}, []);
|
||||
|
||||
const TOOLS: Tool[] = [
|
||||
{id: 'claude', name: 'Claude Code', path: '~/.claude/skills', local: 3, left: 110, top: 60, rotate: -1.5, string: 'M584 200 Q384 177 185 74', defaultOn: true},
|
||||
{id: 'cursor', name: 'Cursor', path: '~/.cursor/skills', local: 1, left: 390, top: 30, rotate: 1, string: 'M584 200 Q524 162 465 44', defaultOn: true},
|
||||
{id: 'codex', name: 'Codex', path: '~/.agents/skills', local: 2, left: 760, top: 30, rotate: -0.8, string: 'M584 200 Q710 162 835 44', defaultOn: true},
|
||||
{id: 'gemini', name: 'Gemini CLI', path: '~/.gemini/skills', local: 0, left: 1010, top: 80, rotate: 1.6, string: 'M584 200 Q834 187 1085 94', defaultOn: true},
|
||||
{id: 'opencode', name: 'OpenCode', path: '~/.config/opencode/skills', local: 0, left: 90, top: 430, rotate: 1.2, string: 'M584 456 Q374 490 165 444', defaultOn: true},
|
||||
{id: 'copilot', name: 'GitHub Copilot', path: '~/.copilot/skills', local: 0, left: 380, top: 530, rotate: -1, string: 'M584 456 Q520 540 455 544', defaultOn: false},
|
||||
{id: 'windsurf', name: 'Windsurf', path: '~/.codeium/windsurf/skills', local: 1, left: 740, top: 530, rotate: 0.9, string: 'M584 456 Q700 540 815 544', defaultOn: false},
|
||||
{id: 'zed', name: 'Zed', path: '~/.agents/skills', local: 0, left: 1020, top: 440, rotate: -1.4, string: 'M584 456 Q840 495 1095 454', defaultOn: false},
|
||||
return (
|
||||
<video
|
||||
ref={ref}
|
||||
className={styles.heroVideo}
|
||||
controls
|
||||
muted
|
||||
loop
|
||||
playsInline
|
||||
preload="metadata"
|
||||
poster="/img/skillshare-demo-poster.jpg"
|
||||
aria-label={translate({id: 'home.demo.label', message: 'Skillshare demo: edit once, sync across AI coding tools'})}
|
||||
>
|
||||
<source src="/video/skillshare-demo.mp4" type="video/mp4" />
|
||||
<track kind="captions" src="/video/skillshare-demo.en.vtt" srcLang="en" label="English" />
|
||||
<a href="/video/skillshare-demo.mp4"><Translate id="home.demo.download">Download the demo video</Translate></a>
|
||||
</video>
|
||||
);
|
||||
}
|
||||
|
||||
const SYNC_TARGETS = [
|
||||
{id: 'claude', local: 3},
|
||||
{id: 'cursor', local: 1},
|
||||
{id: 'codex', local: 2},
|
||||
{id: 'gemini', local: 0},
|
||||
{id: 'opencode', local: 0},
|
||||
];
|
||||
|
||||
const SKILL_COUNT = 14;
|
||||
|
||||
function usePinned() {
|
||||
const [on, setOn] = useState<Record<string, boolean>>(() =>
|
||||
Object.fromEntries(TOOLS.map((t) => [t.id, t.defaultOn])),
|
||||
);
|
||||
const toggle = (id: string) => setOn((prev) => ({...prev, [id]: !prev[id]}));
|
||||
const pinned = TOOLS.filter((t) => on[t.id]);
|
||||
return {on, toggle, pinned};
|
||||
}
|
||||
|
||||
function SourceLogo() {
|
||||
return (
|
||||
<div className={styles.logoWrap}>
|
||||
<div className={styles.logoShadow} aria-hidden="true" />
|
||||
<div className={styles.logoRing} aria-hidden="true" />
|
||||
<span className={styles.sparkle} aria-hidden="true">*</span>
|
||||
<span className={styles.sparkle} aria-hidden="true">+</span>
|
||||
<span className={styles.sparkle} aria-hidden="true">*</span>
|
||||
<img className={styles.logoImg} src="/img/skillshare-logo.png" alt="skillshare" />
|
||||
<span className={`${styles.pin} ${styles.pinBlue}`} style={{left: 102, top: -26}} />
|
||||
<span className={`${styles.pin} ${styles.pinBlue}`} style={{left: 102, bottom: -26}} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function StringBoard({on, toggle, pinned}: ReturnType<typeof usePinned>) {
|
||||
return (
|
||||
<ScaledBoard width={1168} height={620} className={styles.heroBoard}>
|
||||
<svg width="1168" height="620" viewBox="0 0 1168 620" className={styles.strings} aria-hidden="true">
|
||||
{TOOLS.map((t, i) => (
|
||||
<path
|
||||
key={t.id}
|
||||
className={`${styles.str} ${on[t.id] ? styles.strOn : styles.strOff}`}
|
||||
d={t.string}
|
||||
style={{animationDelay: `${0.05 + i * 0.1}s`}}
|
||||
/>
|
||||
))}
|
||||
</svg>
|
||||
|
||||
<SourceLogo />
|
||||
<span className={styles.sourceCaption}><Translate id="home.board.source">your skills · managed in one place</Translate></span>
|
||||
|
||||
{TOOLS.map((t) => (
|
||||
<button
|
||||
key={t.id}
|
||||
type="button"
|
||||
className={`${styles.tool} ${on[t.id] ? '' : styles.toolOff}`}
|
||||
style={{left: t.left, top: t.top, transform: `rotate(${t.rotate}deg)`}}
|
||||
onClick={() => toggle(t.id)}
|
||||
aria-pressed={on[t.id]}
|
||||
aria-label={`${on[t.id] ? 'Unpin' : 'Pin'} ${t.name}`}
|
||||
>
|
||||
<span className={styles.pin} />
|
||||
<span className={styles.toolName}>{t.name}</span>
|
||||
<span className={styles.toolPath}>{t.path}</span>
|
||||
</button>
|
||||
))}
|
||||
|
||||
<span className={styles.note} style={{left: 272, top: 120, width: 130, textAlign: 'center'}}>
|
||||
<Translate id="home.board.edit">edit a skill once</Translate><br />
|
||||
<Translate id="home.board.use">use it in each tool</Translate>
|
||||
</span>
|
||||
<span className={styles.note} style={{left: 760, top: 330, width: 190}}>
|
||||
tools you don't use<br />just hang there, unlinked
|
||||
</span>
|
||||
<Link to="/docs/reference/targets/supported-targets" className={styles.boardLink}>
|
||||
+{TARGET_COUNT - TOOLS.length} more tools on the full board →
|
||||
</Link>
|
||||
|
||||
<div className={styles.counter}>
|
||||
<div className={styles.tape} style={{width: 70, height: 20, top: -10, left: 24, transform: 'rotate(-3deg)'}} aria-hidden="true" />
|
||||
<span className={styles.counterNum}>{pinned.length}</span>
|
||||
<span className={styles.counterLabel}>pinned</span>
|
||||
</div>
|
||||
</ScaledBoard>
|
||||
);
|
||||
}
|
||||
|
||||
// Small screens: same state, no strings.
|
||||
function PinList({on, toggle}: ReturnType<typeof usePinned>) {
|
||||
return (
|
||||
<div className={styles.pinList}>
|
||||
{TOOLS.map((t) => (
|
||||
<button
|
||||
key={t.id}
|
||||
type="button"
|
||||
className={`${styles.pinChip} ${on[t.id] ? styles.pinChipOn : ''}`}
|
||||
onClick={() => toggle(t.id)}
|
||||
aria-pressed={on[t.id]}
|
||||
>
|
||||
<span className={styles.pin} />
|
||||
{t.name}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function SyncTerminal({pinned}: {pinned: Tool[]}) {
|
||||
function SyncTerminal() {
|
||||
return (
|
||||
<div className={styles.termWrap}>
|
||||
<div className={styles.tape} style={{top: -14, left: 40, transform: 'rotate(-5deg)'}} aria-hidden="true" />
|
||||
@@ -192,14 +117,13 @@ function SyncTerminal({pinned}: {pinned: Tool[]}) {
|
||||
<pre className={styles.termBody}>
|
||||
<span className={styles.ok}>$</span> skillshare sync{'\n\n'}
|
||||
<span className={styles.termHead}>Syncing skills</span>{'\n'}
|
||||
{pinned.map((t) => (
|
||||
{SYNC_TARGETS.map((t) => (
|
||||
<span key={t.id}>
|
||||
<span className={styles.ok}>✓</span> {t.id}: merged ({SKILL_COUNT} linked, {t.local} local, 0 updated, 0 pruned){'\n'}
|
||||
</span>
|
||||
))}
|
||||
{pinned.length === 0 && <span className={styles.dim}>no targets pinned — click a tool on the board{'\n'}</span>}
|
||||
{'\n'}
|
||||
<span className={styles.dim}>{pinned.length} targets · {SKILL_COUNT} skills</span>
|
||||
<span className={styles.dim}>{SYNC_TARGETS.length} targets · {SKILL_COUNT} skills</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@@ -231,7 +155,6 @@ function CopyButton({text}: {text: string}) {
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function HeroSection() {
|
||||
const board = usePinned();
|
||||
return (
|
||||
<header className={styles.hero}>
|
||||
<div className="container">
|
||||
@@ -243,7 +166,7 @@ function HeroSection() {
|
||||
</Heading>
|
||||
<p className={styles.heroSubtitle}>
|
||||
<Translate id="home.hero.summary">Manage skills, agents, rules, MCP connections and hooks in one place.</Translate>{' '}
|
||||
<Translate id="home.hero.tools">For Claude Code, Codex, Cursor, OpenCode and more.</Translate>
|
||||
<Translate id="home.hero.tools">For Claude Code, Codex, Pi, OpenCode and more.</Translate>
|
||||
</p>
|
||||
<div className={`${styles.buttons} ${styles.heroActions}`}>
|
||||
<Link className="button button--primary button--lg" to="/docs/getting-started/desktop-app">
|
||||
@@ -258,18 +181,13 @@ function HeroSection() {
|
||||
<Translate id="home.desktop.platforms">macOS (Apple Silicon) · Windows · Linux</Translate>
|
||||
</p>
|
||||
</div>
|
||||
<span className={`${styles.hand} ${styles.heroHint}`}>click a tool to pin<br />or unpin it ↓</span>
|
||||
<img className={styles.heroLogo} src="/img/skillshare-logo-card.png" alt="skillshare" />
|
||||
</div>
|
||||
|
||||
<div className={styles.onlyWide}>
|
||||
<StringBoard {...board} />
|
||||
</div>
|
||||
<div className={styles.onlyNarrow}>
|
||||
<PinList {...board} />
|
||||
</div>
|
||||
<HeroVideo />
|
||||
|
||||
<div className={styles.heroBottom}>
|
||||
<SyncTerminal pinned={board.pinned} />
|
||||
<SyncTerminal />
|
||||
<div className={styles.installCol}>
|
||||
<Heading as="h2" className={styles.h2}>
|
||||
<Translate id="home.desktop.title">Start with the desktop app.</Translate>
|
||||
@@ -380,7 +298,7 @@ function FourMovesSection() {
|
||||
<span className={styles.cardSub}>pr-review → source</span>
|
||||
</Card>
|
||||
<Card left={930} top={270} width={190} height={60} rotate={-0.8} pinLeft={86}>
|
||||
<span className={styles.cardTitle}>Cursor</span>
|
||||
<span className={styles.cardTitle}>Pi</span>
|
||||
<span className={styles.cardSub}>+ 1 local skill kept</span>
|
||||
</Card>
|
||||
<Card left={930} top={418} width={190} height={60} rotate={1.3} pinLeft={86}>
|
||||
@@ -391,7 +309,7 @@ function FourMovesSection() {
|
||||
sync →<br /><span className={styles.noteCmd}>skillshare sync</span>
|
||||
</span>
|
||||
<span className={styles.note} style={{left: 760, top: 372, color: 'var(--color-danger)'}}>
|
||||
← collect<br /><span className={styles.noteCmd}>skillshare collect cursor</span>
|
||||
← collect<br /><span className={styles.noteCmd}>skillshare collect pi</span>
|
||||
</span>
|
||||
<span className={styles.note} style={{left: 40, top: 470, width: 300}}>
|
||||
merge mode never overwrites a skill the tool already had. that's the whole trick.
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 107 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
@@ -0,0 +1,23 @@
|
||||
WEBVTT
|
||||
|
||||
00:00.300 --> 00:03.300
|
||||
Every AI tool keeps its own copy of your setup.
|
||||
|
||||
00:03.500 --> 00:06.300
|
||||
Edit one, and the others fall behind.
|
||||
|
||||
00:06.600 --> 00:08.600
|
||||
skillshare keeps one source.
|
||||
|
||||
00:08.700 --> 00:12.000
|
||||
Change it once. Every tool gets it.
|
||||
|
||||
00:12.200 --> 00:14.600
|
||||
Switch tools? Your setup is already there.
|
||||
|
||||
00:14.900 --> 00:17.200
|
||||
Skills, agents, rules, MCP and hooks. One place.
|
||||
|
||||
00:17.400 --> 00:20.400
|
||||
Your AI coding setup, everywhere.
|
||||
skillshare.runkids.cc
|
||||
Binary file not shown.
Reference in New Issue
Block a user