diff --git a/.github/assets/logo.png b/.github/assets/logo.png index 3f7c09a86..dea02c592 100644 Binary files a/.github/assets/logo.png and b/.github/assets/logo.png differ diff --git a/scripts/capture_hero.sh b/scripts/capture_hero.sh new file mode 100755 index 000000000..00ef9cbf8 --- /dev/null +++ b/scripts/capture_hero.sh @@ -0,0 +1,96 @@ +#!/bin/bash + +# Capture Hero Logo +# Screenshots the website hero logo element and copies it to .github/assets/logo.png +# +# Usage: +# ./scripts/capture_hero.sh # auto-detect port or start dev server +# ./scripts/capture_hero.sh 3000 # use specific port + +set -e + +GREEN='\033[0;32m' +YELLOW='\033[1;33m' +RED='\033[0;31m' +CYAN='\033[0;36m' +NC='\033[0m' + +ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)" +WEBSITE_DIR="$ROOT_DIR/website" +CAPTURE_SCRIPT="$WEBSITE_DIR/capture-hero.mjs" +OUTPUT="$WEBSITE_DIR/static/img/hero-logo.png" +TARGET="$ROOT_DIR/.github/assets/logo.png" + +started_server=false + +cleanup() { + if $started_server; then + echo -e "${YELLOW}Stopping dev server (pid $server_pid)...${NC}" + kill "$server_pid" 2>/dev/null || true + wait "$server_pid" 2>/dev/null || true + fi +} +trap cleanup EXIT + +# Check if a port is serving the Docusaurus site (look for "skillshare" in response) +is_docusaurus() { + curl -s "http://localhost:$1" 2>/dev/null | grep -q "skillshare" +} + +# --- 1. Detect or start dev server --- +if [ -n "$1" ]; then + PORT="$1" + echo -e "${CYAN}Using specified port: $PORT${NC}" +else + PORT="" + for p in 3002 3001 3000; do + if is_docusaurus "$p"; then + PORT=$p + echo -e "${CYAN}Detected Docusaurus on port $PORT${NC}" + break + fi + done + + if [ -z "$PORT" ]; then + echo -e "${YELLOW}No Docusaurus dev server detected, starting one...${NC}" + cd "$WEBSITE_DIR" + npm start -- --port 3099 &>/dev/null & + server_pid=$! + started_server=true + PORT=3099 + + for i in $(seq 1 30); do + if is_docusaurus "$PORT"; then + break + fi + if [ "$i" -eq 30 ]; then + echo -e "${RED}Dev server failed to start within 30s${NC}" + exit 1 + fi + sleep 1 + done + echo -e "${GREEN}Dev server ready on port $PORT${NC}" + fi +fi + +# --- 2. Ensure playwright is available --- +if ! node -e "require('playwright')" 2>/dev/null; then + echo -e "${YELLOW}Installing playwright...${NC}" + cd "$WEBSITE_DIR" + npm install --no-save playwright >/dev/null 2>&1 + npx playwright install chromium >/dev/null 2>&1 + echo -e "${GREEN}Playwright installed${NC}" +fi + +# --- 3. Capture --- +echo -e "${CYAN}Capturing hero logo from localhost:$PORT ...${NC}" +cd "$WEBSITE_DIR" +PORT="$PORT" node "$CAPTURE_SCRIPT" + +# --- 4. Copy to README logo --- +cp "$OUTPUT" "$TARGET" +echo -e "${GREEN}Copied to $TARGET${NC}" + +# --- 5. Show result --- +size=$(wc -c < "$TARGET" | tr -d ' ') +echo -e "${GREEN}Done!${NC} $(( size / 1024 ))KB → .github/assets/logo.png" diff --git a/website/capture-hero.mjs b/website/capture-hero.mjs new file mode 100644 index 000000000..79f791cf8 --- /dev/null +++ b/website/capture-hero.mjs @@ -0,0 +1,83 @@ +import { chromium } from 'playwright'; +import { fileURLToPath } from 'url'; +import path from 'path'; + +const __dirname = path.dirname(fileURLToPath(import.meta.url)); +const PORT = process.env.PORT || 3002; + +async function main() { + const browser = await chromium.launch({ headless: true }); + const page = await browser.newPage({ + viewport: { width: 1280, height: 900 }, + deviceScaleFactor: 3, + }); + + await page.goto(`http://localhost:${PORT}`, { waitUntil: 'networkidle' }); + await page.waitForTimeout(3000); + + // Kill animations, force visibility — keep original backgrounds + await page.addStyleTag({ + content: ` + *, *::before, *::after { + animation: none !important; + transition: none !important; + } + ` + }); + + await page.evaluate(() => { + const patterns = ['heroLogoSparkle', 'heroConnector', 'heroUnderline', 'heroTitle', 'heroSubtitle']; + document.querySelectorAll('*').forEach(el => { + const cls = el.className; + if (typeof cls === 'string') { + for (const p of patterns) { + if (cls.includes(p)) { + el.style.opacity = '1'; + el.style.clipPath = 'none'; + break; + } + } + } + }); + }); + + const logoImg = page.locator('img[class*="heroLogo"]'); + await logoImg.waitFor({ state: 'visible', timeout: 10000 }); + const heroWrapper = logoImg.locator('..'); + + // Hide title/connector/underline so only logo + ring remain + await page.evaluate(() => { + const hidePatterns = ['heroConnector', 'heroTitle', 'heroUnderline', 'heroSubtitle']; + document.querySelectorAll('*').forEach(el => { + const cls = el.className; + if (typeof cls === 'string') { + for (const p of hidePatterns) { + if (cls.includes(p)) { + el.style.display = 'none'; + break; + } + } + } + }); + }); + + const wrapperBox = await heroWrapper.boundingBox(); + // Ring: inset -18px. Shadow: translate(4px,4px) + inset -18px. Sparkles: ~14px outside. + const expand = 28; + const logoPath = path.join(__dirname, 'static', 'img', 'hero-logo.png'); + await page.screenshot({ + path: logoPath, + // Keep original paper-warm background (no omitBackground) + clip: { + x: Math.max(0, wrapperBox.x - expand), + y: Math.max(0, wrapperBox.y - expand), + width: wrapperBox.width + expand * 2, + height: wrapperBox.height + expand * 2, + }, + }); + console.log(`Saved: ${logoPath}`); + + await browser.close(); +} + +main().catch(console.error); diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index 54ac7a925..d317bb30a 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -66,7 +66,7 @@ const config: Config = { themeConfig: { image: 'img/social-card.png', colorMode: { - defaultMode: 'dark', + defaultMode: 'light', respectPrefersColorScheme: false, }, navbar: { @@ -100,7 +100,7 @@ const config: Config = { ], }, footer: { - style: 'dark', + style: 'light', links: [ { title: 'Documentation', diff --git a/website/src/css/custom.css b/website/src/css/custom.css index d784ff03d..9b8fcf0f2 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -1,45 +1,69 @@ /** - * skillshare Design System v2.0 - * Modern Tech Theme with Multi-color Accents - * Typography: JetBrains Mono (code/headings) + IBM Plex Sans (body) - * Colors: Inspired by Logo (Blue + Orange + Yellow + Green) + * skillshare Design System — Hand-Drawn Edition + * Light: paper texture, pencil lines, post-it accents + * Dark: chalkboard green, chalk-white text, dashed borders + * Typography: Kalam (headings) + IBM Plex Sans (body) + JetBrains Mono (code) */ -@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap'); +@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Patrick+Hand&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap'); /* ======================================== - LIGHT MODE (default) + LIGHT MODE — Paper ======================================== */ :root { - /* Primary palette - Blue (gear in logo) */ - --ifm-color-primary: #2563eb; - --ifm-color-primary-dark: #1d4ed8; - --ifm-color-primary-darker: #1e40af; - --ifm-color-primary-darkest: #1e3a8a; - --ifm-color-primary-light: #3b82f6; - --ifm-color-primary-lighter: #60a5fa; - --ifm-color-primary-lightest: #93c5fd; + /* Hand-drawn palette */ + --color-paper: #fdfbf7; + --color-paper-warm: #faf6ee; + --color-pencil: #2d2d2d; + --color-pencil-light: #5a5a5a; + --color-muted: #e5e0d8; + --color-muted-dark: #8a8478; + --color-accent: #ff4d4d; + --color-blue: #2d5da1; + --color-blue-light: #4a7ec4; + --color-postit: #fff9c4; + --color-postit-dark: #fff3a0; + --color-success: #2e8b57; + --color-success-light: #d4edda; + --color-warning: #d4870e; + --color-warning-light: #fff3cd; + --color-danger: #c0392b; + --color-danger-light: #f8d7da; + --color-info: #2d5da1; + --color-info-light: #d6e4f0; - /* Logo-inspired accent colors */ - --color-blue: #3B82F6; - --color-orange: #F97316; - --color-yellow: #FBBF24; - --color-green: #22C55E; - --color-green-dark: #16A34A; + /* Wobbly border-radius */ + --radius-wobbly: 255px 15px 225px 15px / 15px 225px 15px 255px; + --radius-wobbly-sm: 125px 10px 115px 10px / 10px 115px 10px 125px; + --radius-wobbly-md: 185px 12px 165px 12px / 12px 165px 12px 185px; + --radius-wobbly-btn: 255px 25px 225px 25px / 25px 225px 25px 255px; - /* Background colors - Light */ - --ifm-background-color: #f8fafc; - --ifm-background-surface-color: #ffffff; - --ifm-navbar-background-color: rgba(255, 255, 255, 0.85); - --ifm-footer-background-color: #0f172a; + /* Hard shadows (no blur) */ + --shadow-sm: 3px 3px 0px 0px rgba(45, 45, 45, 0.12); + --shadow-md: 4px 4px 0px 0px #2d2d2d; + --shadow-lg: 8px 8px 0px 0px #2d2d2d; + --shadow-hover: 2px 2px 0px 0px #2d2d2d; - /* Text colors - Light */ - --ifm-font-color-base: #0f172a; - --ifm-font-color-secondary: #475569; + /* Map to Docusaurus IFM vars */ + --ifm-color-primary: #2d5da1; + --ifm-color-primary-dark: #27528e; + --ifm-color-primary-darker: #244d86; + --ifm-color-primary-darkest: #1e3f6e; + --ifm-color-primary-light: #3368b4; + --ifm-color-primary-lighter: #366dbc; + --ifm-color-primary-lightest: #4a7ec4; + + --ifm-background-color: #fdfbf7; + --ifm-background-surface-color: #faf6ee; + --ifm-navbar-background-color: rgba(253, 251, 247, 0.92); + --ifm-footer-background-color: var(--color-paper-warm); + + --ifm-font-color-base: #2d2d2d; + --ifm-font-color-secondary: #5a5a5a; /* Typography */ + --ifm-heading-font-family: 'Kalam', cursive; --ifm-font-family-base: 'IBM Plex Sans', system-ui, -apple-system, sans-serif; - --ifm-heading-font-family: 'JetBrains Mono', 'SF Mono', monospace; --ifm-font-family-monospace: 'JetBrains Mono', 'Fira Code', monospace; --ifm-font-weight-semibold: 600; @@ -47,94 +71,108 @@ --ifm-code-font-size: 95%; --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.08); - /* Custom properties for components */ + /* Custom component vars */ --card-bg: #ffffff; - --card-bg-hover: #f1f5f9; - --card-border: rgba(15, 23, 42, 0.1); - --card-border-hover: rgba(15, 23, 42, 0.2); + --card-bg-hover: var(--color-paper-warm); + --card-border: var(--color-pencil); + --card-border-hover: var(--color-blue); --install-bg: #0f172a; --install-border: rgba(255, 255, 255, 0.1); --code-color: #94a3b8; - --prompt-color: #3b82f6; - --muted-text: #64748b; - --hero-gradient-start: #f8fafc; - --hero-gradient-end: #e2e8f0; - --icon-bg: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%); - --icon-border: rgba(59, 130, 246, 0.3); - --icon-color: #3b82f6; - - /* Gradient presets */ - --gradient-brand: linear-gradient(90deg, var(--color-blue), var(--color-orange), var(--color-yellow)); - --gradient-cta: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%); + --prompt-color: #2e8b57; + --muted-text: #8a8478; } /* ======================================== - DARK MODE + DARK MODE — Warm Parchment Night ======================================== */ [data-theme='dark'] { - /* Primary palette - Blue (brighter for dark bg) */ - --ifm-color-primary: #3b82f6; - --ifm-color-primary-dark: #2563eb; - --ifm-color-primary-darker: #1d4ed8; - --ifm-color-primary-darkest: #1e40af; - --ifm-color-primary-light: #60a5fa; - --ifm-color-primary-lighter: #93c5fd; - --ifm-color-primary-lightest: #bfdbfe; + --color-paper: #1a1816; + --color-paper-warm: #242120; + --color-pencil: #f0ece1; + --color-pencil-light: #ccc8bc; + --color-muted: #3d3835; + --color-muted-dark: #9a918a; + --color-accent: #ff6b6b; + --color-blue: #e8a84c; + --color-blue-light: #f0be6e; + --color-postit: rgba(232, 168, 76, 0.18); + --color-postit-dark: rgba(240, 190, 110, 0.22); + --color-success: #6dca8e; + --color-success-light: rgba(109, 202, 142, 0.18); + --color-warning: #f0b850; + --color-warning-light: rgba(240, 184, 80, 0.18); + --color-danger: #f06860; + --color-danger-light: rgba(240, 104, 96, 0.18); + --color-info: #7db8e8; + --color-info-light: rgba(125, 184, 232, 0.18); - /* Logo-inspired accent colors (brighter for dark mode) */ - --color-blue: #60A5FA; - --color-orange: #FB923C; - --color-yellow: #FCD34D; - --color-green: #4ADE80; - --color-green-dark: #22C55E; + /* Softer shadows on dark bg */ + --shadow-sm: 3px 3px 0px 0px rgba(0, 0, 0, 0.4); + --shadow-md: 4px 4px 0px 0px rgba(0, 0, 0, 0.55); + --shadow-lg: 8px 8px 0px 0px rgba(0, 0, 0, 0.55); + --shadow-hover: 2px 2px 0px 0px rgba(0, 0, 0, 0.4); - /* Background colors - Dark with blue tint */ - --ifm-background-color: #0f172a; - --ifm-background-surface-color: #1e293b; - --ifm-navbar-background-color: rgba(15, 23, 42, 0.9); - --ifm-footer-background-color: #0f172a; + /* IFM overrides — amber/gold as primary */ + --ifm-color-primary: #e8a84c; + --ifm-color-primary-dark: #e49a34; + --ifm-color-primary-darker: #e09328; + --ifm-color-primary-darkest: #c47b18; + --ifm-color-primary-light: #ecb664; + --ifm-color-primary-lighter: #eebe70; + --ifm-color-primary-lightest: #f2d098; - /* Text colors - Dark */ - --ifm-font-color-base: #f8fafc; - --ifm-font-color-secondary: #94a3b8; + --ifm-background-color: #1a1816; + --ifm-background-surface-color: #242120; + --ifm-navbar-background-color: rgba(26, 24, 22, 0.97); + --ifm-footer-background-color: #151311; - /* Code */ - --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); + --ifm-font-color-base: #f0ece1; + --ifm-font-color-secondary: #ccc8bc; - /* Custom properties for components */ - --card-bg: rgba(30, 41, 59, 0.6); - --card-bg-hover: rgba(30, 41, 59, 0.9); - --card-border: rgba(255, 255, 255, 0.08); - --card-border-hover: rgba(59, 130, 246, 0.4); - --install-bg: rgba(15, 23, 42, 0.8); - --install-border: rgba(59, 130, 246, 0.3); - --code-color: #94a3b8; - --prompt-color: var(--color-green); - --muted-text: #64748b; - --hero-gradient-start: #0f172a; - --hero-gradient-mid: #1e3a5f; - --hero-gradient-end: #1e293b; - --icon-bg: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(96, 165, 250, 0.05) 100%); - --icon-border: rgba(96, 165, 250, 0.3); - --icon-color: #60a5fa; - - /* Gradient presets */ - --gradient-brand: linear-gradient(90deg, var(--color-blue), var(--color-orange), var(--color-yellow)); - --gradient-cta: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%); + --card-bg: rgba(36, 33, 32, 0.7); + --card-bg-hover: rgba(36, 33, 32, 0.95); + --card-border: rgba(240, 236, 225, 0.3); + --card-border-hover: var(--color-blue); + --install-bg: rgba(20, 18, 16, 0.95); + --install-border: rgba(232, 168, 76, 0.4); + --code-color: #ccc8bc; + --prompt-color: var(--color-success); + --muted-text: #9a918a; } /* ======================================== BASE STYLES ======================================== */ -/* Headings use JetBrains Mono */ -h1, h2, h3, h4, h5, h6 { - font-family: var(--ifm-heading-font-family); +/* Dot grid background */ +html { + background-color: var(--ifm-background-color); } -/* Smooth theme transitions */ -html { - transition: background-color 0.3s ease, color 0.3s ease; +body { + background-image: radial-gradient(var(--color-muted) 1px, transparent 1px); + background-size: 24px 24px; +} + +[data-theme='dark'] body { + background-image: radial-gradient(rgba(61, 56, 53, 0.6) 1px, transparent 1px); +} + +/* Selection color: post-it yellow */ +::selection { + background-color: var(--color-postit); + color: var(--color-pencil); +} + +[data-theme='dark'] ::selection { + background-color: rgba(232, 168, 76, 0.35); + color: var(--color-pencil); +} + +/* Headings in Kalam */ +h1, h2, h3, h4, h5, h6 { + font-family: var(--ifm-heading-font-family); } /* ======================================== @@ -142,12 +180,28 @@ html { ======================================== */ .navbar { box-shadow: none; - border-bottom: 1px solid var(--card-border); + border-bottom: 2px dashed var(--color-muted-dark); backdrop-filter: blur(12px); + padding: 0.25rem 0; +} + +.navbar__title { + font-family: 'Kalam', cursive; + font-weight: 700; + font-size: 1.3rem; +} + +.navbar__link { + font-size: 0.95rem; + font-weight: 500; +} + +.navbar__items .navbar__link { + padding: 0.5rem 0.75rem; } /* ======================================== - MOBILE SIDEBAR - 強制全屏 + MOBILE SIDEBAR — full screen ======================================== */ @media (max-width: 996px) { :root { @@ -163,36 +217,20 @@ html { overflow: hidden !important; } - [data-theme='dark'] .navbar-sidebar { - background: #0f172a !important; - } - .navbar-sidebar__items { background: var(--ifm-background-color) !important; width: 100vw !important; } - [data-theme='dark'] .navbar-sidebar__items { - background: #0f172a !important; - } - .navbar-sidebar__item { background: var(--ifm-background-color) !important; width: 100vw !important; min-width: 100vw !important; } - [data-theme='dark'] .navbar-sidebar__item { - background: #0f172a !important; - } - .navbar-sidebar__brand { background: var(--ifm-background-color) !important; } - - [data-theme='dark'] .navbar-sidebar__brand { - background: #0f172a !important; - } } .navbar-sidebar__brand { @@ -201,11 +239,6 @@ html { width: 100% !important; } -[data-theme='dark'] .navbar-sidebar__brand { - background: #0f172a; -} - -/* 確保 sidebar 連結可見 */ .navbar-sidebar .menu__link { color: var(--ifm-font-color-base); padding: 0.75rem 1rem; @@ -216,49 +249,52 @@ html { } /* ======================================== - FOOTER (Enhanced) + FOOTER ======================================== */ .footer { - border-top: 1px solid rgba(255, 255, 255, 0.1); + background-color: var(--ifm-footer-background-color); + border-top: none; position: relative; overflow: hidden; } -/* Gradient accent line at top */ +/* Accent line at top */ .footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; - height: 2px; - background: var(--gradient-brand); - opacity: 0.8; + height: 3px; + background: linear-gradient(90deg, var(--color-blue), var(--color-accent), var(--color-warning)); + opacity: 0.7; } -.footer--dark { - background-color: var(--ifm-footer-background-color); +[data-theme='dark'] .footer::before { + opacity: 0.6; } -/* Footer container spacing */ .footer .container { padding-top: 1.5rem; } -/* Footer column titles */ .footer__title { - font-family: var(--ifm-heading-font-family); - font-size: 0.75rem; - font-weight: 600; + font-family: 'Kalam', cursive; + font-size: 0.85rem; + font-weight: 700; text-transform: uppercase; - letter-spacing: 0.1em; - color: #94a3b8; + letter-spacing: 0.08em; + color: var(--color-muted-dark); margin-bottom: 0.75rem; position: relative; display: inline-block; } -/* Subtle underline accent for titles */ +[data-theme='dark'] .footer__title { + color: var(--color-pencil-light); +} + +/* Dashed underline accent */ .footer__title::after { content: ''; position: absolute; @@ -266,87 +302,66 @@ html { left: 0; width: 24px; height: 2px; - background: var(--color-blue); - border-radius: 1px; - opacity: 0.6; + border-bottom: 2px dashed var(--color-blue); } -/* Footer links styling */ .footer__link-item { - color: #94a3b8; + color: var(--color-pencil-light); font-size: 0.85rem; padding: 0.2rem 0; display: inline-block; transition: all 0.2s ease; - position: relative; + text-decoration: none; +} + +[data-theme='dark'] .footer__link-item { + color: var(--color-muted-dark); } .footer__link-item:hover { - color: #60a5fa; - transform: translateX(4px); + color: var(--color-blue); + text-decoration: underline; + text-decoration-style: wavy; + text-underline-offset: 3px; } -/* Arrow indicator on hover */ -.footer__link-item::before { - content: ''; - position: absolute; - left: -12px; - top: 50%; - transform: translateY(-50%); - width: 0; - height: 0; - border-left: 4px solid transparent; - border-right: 0; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - opacity: 0; - transition: all 0.2s ease; -} - -.footer__link-item:hover::before { - opacity: 1; - border-left-color: var(--color-blue); - left: -8px; -} - -/* Footer links list */ .footer__items { display: flex; flex-direction: column; gap: 0.1rem; } -/* Footer column */ .footer__col { padding: 0 1rem; + border-right: 1px dashed var(--color-muted); +} + +.footer__col:last-child { + border-right: none; } -/* Copyright section */ .footer__bottom { margin-top: 1rem; padding-top: 0.75rem; - border-top: 1px solid rgba(255, 255, 255, 0.06); + border-top: 1px dashed var(--color-muted); } .footer__copyright { - color: #475569; + color: var(--color-muted-dark); font-size: 0.85rem; text-align: center; } -/* External link icon for footer */ .footer__link-item[href^="http"]::after { - content: ' ↗'; + content: ' \2197'; font-size: 0.7em; opacity: 0.5; - transition: opacity 0.2s ease; } .footer__link-item[href^="http"]:hover::after { opacity: 1; } -/* Responsive footer */ @media (max-width: 996px) { .footer .container { padding-top: 2rem; @@ -356,6 +371,12 @@ html { .footer__col { padding: 1rem 0; + border-right: none; + border-bottom: 1px dashed var(--color-muted); + } + + .footer__col:last-child { + border-bottom: none; } .footer__title { @@ -364,257 +385,90 @@ html { } /* ======================================== - CODE BLOCKS - ======================================== */ -.prism-code { - border-radius: 8px; -} - -/* ======================================== - LINKS & BUTTONS + LINKS ======================================== */ a { transition: color 0.2s ease; } +.markdown a { + color: var(--color-blue); + text-decoration: underline; + text-decoration-style: wavy; + text-underline-offset: 3px; +} + +.markdown a:hover { + color: var(--color-accent); +} + +/* ======================================== + BUTTONS — Hand-drawn style + ======================================== */ .button { - transition: all 0.2s ease; + transition: all 0.15s ease; cursor: pointer; - font-weight: 500; + font-weight: 600; + border-radius: var(--radius-wobbly-btn); } .button:hover { - transform: translateY(-2px); + transform: translate(2px, 2px); } -/* Primary button - Green gradient (like "run/sync" action) */ +/* Primary: green */ .button--primary { - background: var(--gradient-cta); - border: none; + background: var(--color-success); + border: 2px solid var(--color-pencil); color: #ffffff; - box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25); + box-shadow: var(--shadow-md); } .button--primary:hover { - background: linear-gradient(135deg, #16A34A 0%, #15803D 100%); - box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35); + background: #257a4a; + box-shadow: var(--shadow-hover); color: #ffffff; } -/* Secondary button - theme aware with gradient border */ +.button--primary:active { + box-shadow: none; + transform: translate(4px, 4px); +} + +/* Secondary: dashed border */ .button--secondary { background-color: transparent; - border: 1px solid var(--card-border); - color: var(--ifm-font-color-base); - position: relative; + border: 2px dashed var(--color-pencil); + color: var(--color-pencil); + box-shadow: var(--shadow-sm); } .button--secondary:hover { - background-color: var(--card-bg); - border-color: var(--card-border-hover); - color: var(--ifm-font-color-base); + background-color: var(--color-paper-warm); + border-color: var(--color-blue); + color: var(--color-pencil); + box-shadow: none; } [data-theme='dark'] .button--secondary { - border-color: rgba(255, 255, 255, 0.15); - background: rgba(255, 255, 255, 0.03); + border-color: var(--color-pencil-light); + color: var(--color-pencil); } [data-theme='dark'] .button--secondary:hover { - background: rgba(255, 255, 255, 0.08); - border-color: rgba(59, 130, 246, 0.5); + background: rgba(232, 168, 76, 0.1); + border-color: var(--color-blue); } /* ======================================== - HERO SECTION + DOCS SIDEBAR ======================================== */ -.hero { - padding: 4rem 0; - background: linear-gradient(180deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%); -} - -[data-theme='dark'] .hero { - background: - radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent), - linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-mid) 50%, var(--hero-gradient-end) 100%); -} - -/* ======================================== - FEATURE CARDS (Glassmorphism) - ======================================== */ -.feature-card { - background: var(--card-bg); - border: 1px solid var(--card-border); - border-radius: 16px; - padding: 1.5rem; - transition: all 0.25s ease; - backdrop-filter: blur(10px); -} - -.feature-card:hover { - background: var(--card-bg-hover); - border-color: var(--card-border-hover); - transform: translateY(-4px); - box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); -} - -[data-theme='dark'] .feature-card { - background: rgba(30, 41, 59, 0.5); - backdrop-filter: blur(12px); - border: 1px solid rgba(255, 255, 255, 0.08); -} - -[data-theme='dark'] .feature-card:hover { - background: rgba(30, 41, 59, 0.8); - border-color: rgba(59, 130, 246, 0.3); - box-shadow: - 0 12px 40px rgba(0, 0, 0, 0.3), - 0 0 0 1px rgba(59, 130, 246, 0.1); -} - -/* Feature icon with gradient background */ -[data-theme='dark'] .feature-card:nth-child(1) .featureIconWrapper, -[data-theme='dark'] .feature-card:nth-child(1) > div:first-child { - background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05)); - border-color: rgba(59, 130, 246, 0.3); -} - -[data-theme='dark'] .feature-card:nth-child(2) .featureIconWrapper, -[data-theme='dark'] .feature-card:nth-child(2) > div:first-child { - background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.05)); - border-color: rgba(249, 115, 22, 0.3); -} - -[data-theme='dark'] .feature-card:nth-child(3) .featureIconWrapper, -[data-theme='dark'] .feature-card:nth-child(3) > div:first-child { - background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05)); - border-color: rgba(34, 197, 94, 0.3); -} - -/* ======================================== - INSTALL COMMAND BOX - (Always dark for terminal aesthetic) - ======================================== */ -.install-command { - background: var(--install-bg); - border: 1px solid var(--install-border); - border-radius: 8px; - padding: 1rem 1.5rem; - font-family: var(--ifm-font-family-monospace); - display: flex; - align-items: center; - justify-content: space-between; - gap: 1rem; -} - -.install-command code { - background: none; - padding: 0; - color: var(--code-color); -} - -.install-command .prompt { - color: var(--prompt-color); -} - -/* ======================================== - COPY BUTTON - ======================================== */ -.copy-button { - background: transparent; - border: 1px solid rgba(255, 255, 255, 0.2); - color: #94a3b8; - padding: 0.5rem 1rem; - border-radius: 6px; - cursor: pointer; - transition: all 0.2s ease; - font-size: 0.875rem; -} - -.copy-button:hover { - background: rgba(255, 255, 255, 0.1); - color: #f8fafc; -} - -/* ======================================== - DEMO SECTION - ======================================== */ -.demo-container { - max-width: 960px; - margin: 0 auto; - border-radius: 12px; - overflow: hidden; - box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); - border: 1px solid var(--card-border); -} - -[data-theme='dark'] .demo-container { - box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); -} - -.demo-container img { - width: 100%; - height: auto; - display: block; -} - -/* ======================================== - SUPPORTED CLIS SECTION - ======================================== */ -.cli-logos { - display: flex; - flex-wrap: wrap; - justify-content: center; - gap: 2rem; - align-items: center; -} - -.cli-logos span { - font-size: 1rem; - color: var(--muted-text); - transition: color 0.2s ease; -} - -.cli-logos span:hover { - color: var(--ifm-font-color-secondary); -} - -/* ======================================== - ACCESSIBILITY - ======================================== */ -@media (prefers-reduced-motion: reduce) { - html { - transition: none; - } - - .button:hover { - transform: none; - } - - .feature-card:hover { - transform: none; - } -} - -/* Focus states for keyboard navigation */ -.button:focus-visible, -.copy-button:focus-visible, -a:focus-visible { - outline: 2px solid var(--ifm-color-primary); - outline-offset: 2px; -} - -/* ======================================== - DOCS PAGE STYLES - ======================================== */ - -/* Sidebar */ .theme-doc-sidebar-container { - border-right: 1px solid var(--card-border) !important; + border-right: 2px dashed var(--color-muted) !important; } [data-theme='dark'] .theme-doc-sidebar-container { - border-right-color: rgba(255, 255, 255, 0.06) !important; + border-right-color: var(--color-muted) !important; } .menu__link { @@ -624,39 +478,51 @@ a:focus-visible { } .menu__link:hover:not(.menu__link--active) { - background: var(--card-bg-hover); + background: var(--color-paper-warm); } [data-theme='dark'] .menu__link:hover:not(.menu__link--active) { - background: rgba(59, 130, 246, 0.1); + background: rgba(232, 168, 76, 0.08); } .menu__link--active { - background: rgba(59, 130, 246, 0.1); - color: var(--ifm-color-primary); - font-weight: 500; + background: var(--color-postit); + color: #2d2d2d; + font-weight: 600; + border: 1px solid var(--color-pencil); } [data-theme='dark'] .menu__link--active { - background: rgba(59, 130, 246, 0.15); + background: rgba(232, 168, 76, 0.15); color: var(--color-blue); + border: 1px solid rgba(232, 168, 76, 0.35); } -/* Sidebar category labels */ +/* Category labels in Kalam */ .menu__list-item-collapsible { border-radius: 8px; } +.menu__list-item-collapsible > .menu__link { + font-family: 'Kalam', cursive; + font-weight: 700; +} + .menu__list-item-collapsible:hover { - background: var(--card-bg-hover); + background: var(--color-paper-warm); } [data-theme='dark'] .menu__list-item-collapsible:hover { - background: rgba(255, 255, 255, 0.03); + background: rgba(232, 168, 76, 0.08); +} + +/* Expanded category has a subtle chalk underline */ +.menu__list-item-collapsible .menu__link--sublist-caret { + font-size: 0.95rem; } /* ======================================== - DOCS CONTENT AREA + DOCS CONTENT ======================================== */ .markdown { --ifm-heading-margin-bottom: 0.75rem; @@ -671,85 +537,269 @@ a:focus-visible { .markdown h2 { font-size: 1.5rem; padding-bottom: 0.5rem; - border-bottom: 1px solid var(--card-border); + border-bottom: 2px dashed var(--color-muted); } [data-theme='dark'] .markdown h2 { - border-bottom-color: rgba(255, 255, 255, 0.08); + border-bottom-color: var(--color-muted); } .markdown h3 { font-size: 1.25rem; } -/* Better paragraph spacing */ .markdown p { line-height: 1.75; margin-bottom: 1.25rem; } /* ======================================== - CODE BLOCKS (Enhanced) + CODE BLOCKS — Hand-drawn ======================================== */ .prism-code { - border-radius: 12px !important; + border-radius: var(--radius-wobbly-sm) !important; font-size: 0.875rem; line-height: 1.6; } -/* Code block container */ div[class*="codeBlockContainer"] { - border-radius: 12px; + border-radius: var(--radius-wobbly-sm); overflow: hidden; - box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); - border: 1px solid var(--card-border); + box-shadow: 4px 4px 0px 0px #101827; + border: 2px solid #101827; margin: 1.5rem 0; } [data-theme='dark'] div[class*="codeBlockContainer"] { - box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); - border-color: rgba(255, 255, 255, 0.08); + box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.55); + border-color: rgba(240, 236, 225, 0.25); } -/* Code block title bar */ div[class*="codeBlockTitle"] { - background: var(--card-bg) !important; - border-bottom: 1px solid var(--card-border); + background: var(--color-paper-warm) !important; + border-bottom: 1px dashed var(--color-muted-dark); font-family: var(--ifm-font-family-monospace); font-size: 0.8rem; padding: 0.625rem 1rem; } [data-theme='dark'] div[class*="codeBlockTitle"] { - background: rgba(30, 41, 59, 0.8) !important; - border-bottom-color: rgba(255, 255, 255, 0.08); + background: rgba(36, 33, 30, 0.8) !important; + border-bottom-color: var(--color-muted); } /* Inline code */ code:not([class*="prism"]) { - background: rgba(59, 130, 246, 0.1); - color: var(--ifm-color-primary); - padding: 0.15rem 0.4rem; - border-radius: 4px; + background: #f3eee2; + color: var(--color-blue); + padding: 0.12rem 0.45rem; + border-radius: 6px; font-size: 0.875em; font-weight: 500; + border: 1px dashed var(--color-muted-dark); + box-shadow: 1px 1px 0 rgba(45, 45, 45, 0.08); } [data-theme='dark'] code:not([class*="prism"]) { - background: rgba(96, 165, 250, 0.15); + background: rgba(50, 44, 40, 0.8); color: var(--color-blue); + border-color: rgba(240, 236, 225, 0.2); } /* ======================================== - TABLE OF CONTENTS (TOC) + TABLES — Hand-drawn + ======================================== */ +table { + display: table; + width: 100%; + border-collapse: separate; + border-spacing: 0; + margin: 1.5rem 0; + border-radius: 10px; + overflow: hidden; + border: 2px solid var(--color-pencil); + box-shadow: var(--shadow-sm); + background: var(--color-paper-warm); +} + +[data-theme='dark'] table { + border-color: rgba(240, 236, 225, 0.25); + background: rgba(36, 33, 32, 0.5); +} + +th { + background: var(--color-postit); + font-family: 'Kalam', cursive; + font-weight: 700; + font-size: 0.85rem; + padding: 0.75rem 1rem; + text-align: left; + color: var(--color-pencil); +} + +[data-theme='dark'] th { + background: rgba(61, 56, 53, 0.8); + color: var(--color-pencil); +} + +td { + padding: 0.75rem 1rem; + border-top: 1px dashed var(--color-muted-dark); +} + +[data-theme='dark'] td { + border-top-color: var(--color-muted); +} + +th + th, +td + td { + border-left: 1px dashed var(--color-muted-dark); +} + +[data-theme='dark'] th + th, +[data-theme='dark'] td + td { + border-left-color: var(--color-muted); +} + +/* ======================================== + ADMONITIONS — Hand-drawn + ======================================== */ +.admonition { + border-radius: var(--radius-wobbly-sm); + border: none; + box-shadow: var(--shadow-sm); +} + +.admonition-heading h5 { + font-family: 'Kalam', cursive; + font-size: 0.95rem; + text-transform: uppercase; + letter-spacing: 0.04em; +} + +/* Note / Info */ +.admonition-note, +.admonition-info { + background: var(--color-info-light); + border-left: 4px solid var(--color-blue); +} + +[data-theme='dark'] .admonition-note, +[data-theme='dark'] .admonition-info { + background: var(--color-info-light); +} + +/* Tip */ +.admonition-tip { + background: var(--color-success-light); + border-left: 4px solid var(--color-success); +} + +[data-theme='dark'] .admonition-tip { + background: var(--color-success-light); +} + +/* Warning / Caution */ +.admonition-warning, +.admonition-caution { + background: var(--color-warning-light); + border-left: 4px dashed var(--color-warning); +} + +[data-theme='dark'] .admonition-warning, +[data-theme='dark'] .admonition-caution { + background: var(--color-warning-light); +} + +/* Danger */ +.admonition-danger { + background: var(--color-danger-light); + border-left: 4px solid var(--color-danger); +} + +[data-theme='dark'] .admonition-danger { + background: var(--color-danger-light); +} + +/* ======================================== + BLOCKQUOTE — Hand-drawn + ======================================== */ +blockquote { + border-left: 3px solid var(--color-blue); + background: var(--color-paper-warm); + padding: 0.75rem 1.25rem; + margin: 1.5rem 0; + border-radius: 0 8px 8px 0; + font-style: italic; + color: var(--ifm-font-color-secondary); +} + +[data-theme='dark'] blockquote { + background: rgba(232, 168, 76, 0.06); + border-left-color: var(--color-blue); +} + +/* ======================================== + PAGINATION (prev/next) + ======================================== */ +.pagination-nav__link { + border: 2px dashed var(--color-pencil); + border-radius: var(--radius-wobbly-sm); + padding: 1rem 1.25rem; + transition: all 0.15s ease; + box-shadow: var(--shadow-sm); +} + +.pagination-nav__link:hover { + border-color: var(--color-blue); + box-shadow: var(--shadow-hover); + transform: translate(1px, 1px); +} + +[data-theme='dark'] .pagination-nav__link { + border-color: rgba(240, 236, 225, 0.25); + background: rgba(36, 33, 32, 0.4); +} + +[data-theme='dark'] .pagination-nav__link:hover { + border-color: var(--color-blue); + background: rgba(36, 33, 32, 0.6); +} + +.pagination-nav__label { + font-family: 'Kalam', cursive; + font-weight: 700; +} + +/* ======================================== + BREADCRUMBS + ======================================== */ +.breadcrumbs__link { + background: transparent; + padding: 0.25rem 0.5rem; + border-radius: 6px; + transition: all 0.2s ease; + font-family: 'Kalam', cursive; +} + +.breadcrumbs__link:hover { + background: var(--color-paper-warm); +} + +[data-theme='dark'] .breadcrumbs__link:hover { + background: rgba(232, 168, 76, 0.08); +} + +/* ======================================== + TABLE OF CONTENTS ======================================== */ .table-of-contents { - border-left: 1px solid var(--card-border); + border-left: 2px dashed var(--color-muted); padding-left: 1rem; } [data-theme='dark'] .table-of-contents { - border-left-color: rgba(255, 255, 255, 0.08); + border-left-color: var(--color-muted); } .table-of-contents__link { @@ -763,235 +813,38 @@ code:not([class*="prism"]) { .table-of-contents__link:hover { color: var(--ifm-font-color-base); - background: rgba(59, 130, 246, 0.08); + background: var(--color-paper-warm); } .table-of-contents__link--active { - color: var(--ifm-color-primary); - font-weight: 500; + color: var(--color-blue); + font-weight: 600; + text-decoration: underline; + text-decoration-style: wavy; + text-underline-offset: 3px; } [data-theme='dark'] .table-of-contents__link--active { color: var(--color-blue); } -/* ======================================== - ADMONITIONS (提示框) - ======================================== */ -.admonition { - border-radius: 12px; - border: none; - box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); -} - -[data-theme='dark'] .admonition { - box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2); -} - -.admonition-heading h5 { - font-family: var(--ifm-heading-font-family); - font-size: 0.9rem; - text-transform: uppercase; - letter-spacing: 0.05em; -} - -/* Note */ -.admonition-note { - background: rgba(59, 130, 246, 0.08); - border-left: 4px solid var(--color-blue); -} - -[data-theme='dark'] .admonition-note { - background: rgba(59, 130, 246, 0.12); -} - -/* Tip */ -.admonition-tip { - background: rgba(34, 197, 94, 0.08); - border-left: 4px solid var(--color-green); -} - -[data-theme='dark'] .admonition-tip { - background: rgba(34, 197, 94, 0.12); -} - -/* Warning */ -.admonition-warning, .admonition-caution { - background: rgba(249, 115, 22, 0.08); - border-left: 4px solid var(--color-orange); -} - -[data-theme='dark'] .admonition-warning, -[data-theme='dark'] .admonition-caution { - background: rgba(249, 115, 22, 0.12); -} - -/* Danger */ -.admonition-danger { - background: rgba(239, 68, 68, 0.08); - border-left: 4px solid #EF4444; -} - -[data-theme='dark'] .admonition-danger { - background: rgba(239, 68, 68, 0.12); -} - -/* Info */ -.admonition-info { - background: rgba(59, 130, 246, 0.08); - border-left: 4px solid var(--color-blue); -} - -[data-theme='dark'] .admonition-info { - background: rgba(59, 130, 246, 0.12); -} - -/* ======================================== - TABLES - ======================================== */ -table { - display: table; - width: 100%; - border-collapse: collapse; - margin: 1.5rem 0; - border-radius: 12px; - overflow: hidden; - box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); - border: 1px solid var(--card-border); -} - -[data-theme='dark'] table { - box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2); - border-color: rgba(255, 255, 255, 0.08); -} - -th { - background: var(--card-bg); - font-family: var(--ifm-heading-font-family); - font-weight: 600; - font-size: 0.85rem; - text-transform: uppercase; - letter-spacing: 0.03em; - padding: 0.875rem 1rem; - text-align: left; -} - -[data-theme='dark'] th { - background: rgba(30, 41, 59, 0.6); -} - -td { - padding: 0.75rem 1rem; - border-top: 1px solid var(--card-border); -} - -[data-theme='dark'] td { - border-top-color: rgba(255, 255, 255, 0.06); -} - -tr:hover td { - background: var(--card-bg-hover); -} - -[data-theme='dark'] tr:hover td { - background: rgba(59, 130, 246, 0.05); -} - -/* ======================================== - BLOCKQUOTE - ======================================== */ -blockquote { - border-left: 4px solid var(--color-blue); - background: rgba(59, 130, 246, 0.05); - padding: 1rem 1.25rem; - margin: 1.5rem 0; - border-radius: 0 8px 8px 0; - font-style: italic; - color: var(--ifm-font-color-secondary); -} - -[data-theme='dark'] blockquote { - background: rgba(59, 130, 246, 0.08); -} - -/* ======================================== - PAGINATION (底部上下頁導航) - ======================================== */ -.pagination-nav__link { - border: 1px solid var(--card-border); - border-radius: 12px; - padding: 1rem 1.25rem; - transition: all 0.2s ease; -} - -.pagination-nav__link:hover { - border-color: var(--card-border-hover); - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); -} - -[data-theme='dark'] .pagination-nav__link { - border-color: rgba(255, 255, 255, 0.08); - background: rgba(30, 41, 59, 0.3); -} - -[data-theme='dark'] .pagination-nav__link:hover { - border-color: rgba(59, 130, 246, 0.3); - background: rgba(30, 41, 59, 0.5); -} - -.pagination-nav__label { - font-family: var(--ifm-heading-font-family); - font-weight: 600; -} - /* ======================================== SEARCH BOX ======================================== */ .DocSearch-Button { - border-radius: 10px !important; - background: var(--card-bg) !important; - border: 1px solid var(--card-border) !important; + border-radius: var(--radius-wobbly-sm) !important; + background: var(--color-paper-warm) !important; + border: 2px dashed var(--color-muted-dark) !important; } [data-theme='dark'] .DocSearch-Button { - background: rgba(30, 41, 59, 0.5) !important; - border-color: rgba(255, 255, 255, 0.08) !important; + background: rgba(36, 33, 30, 0.5) !important; + border-color: var(--color-muted) !important; } .DocSearch-Button:hover { - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important; -} - -[data-theme='dark'] .DocSearch-Button:hover { - border-color: rgba(59, 130, 246, 0.3) !important; -} - -/* ======================================== - BREADCRUMBS - ======================================== */ -.breadcrumbs__link { - background: transparent; - padding: 0.25rem 0.5rem; - border-radius: 6px; - transition: all 0.2s ease; -} - -.breadcrumbs__link:hover { - background: var(--card-bg-hover); -} - -[data-theme='dark'] .breadcrumbs__link:hover { - background: rgba(59, 130, 246, 0.1); -} - -/* ======================================== - DOCS VERSION BADGE - ======================================== */ -.badge { - border-radius: 6px; - font-family: var(--ifm-font-family-monospace); - font-size: 0.75rem; - font-weight: 500; + border-color: var(--color-blue) !important; + box-shadow: var(--shadow-sm) !important; } /* ======================================== @@ -1000,11 +853,48 @@ blockquote { button[class*="copyButton"] { border-radius: 6px; background: rgba(255, 255, 255, 0.05); - border: 1px solid rgba(255, 255, 255, 0.1); + border: 1px dashed rgba(255, 255, 255, 0.2); transition: all 0.2s ease; } button[class*="copyButton"]:hover { - background: rgba(59, 130, 246, 0.2); - border-color: rgba(59, 130, 246, 0.4); + background: rgba(232, 168, 76, 0.2); + border-color: var(--color-blue); +} + +/* ======================================== + BADGE + ======================================== */ +.badge { + border-radius: var(--radius-wobbly-sm); + font-family: var(--ifm-font-family-monospace); + font-size: 0.75rem; + font-weight: 500; +} + +/* ======================================== + HERO (Docusaurus default hero class) + ======================================== */ +.hero { + padding: 4rem 0; + background: transparent; +} + +/* ======================================== + ACCESSIBILITY + ======================================== */ +@media (prefers-reduced-motion: reduce) { + html { + transition: none; + } + + .button:hover { + transform: none; + } +} + +.button:focus-visible, +a:focus-visible { + outline: 2px solid var(--color-blue); + outline-offset: 2px; } diff --git a/website/src/pages/index.module.css b/website/src/pages/index.module.css index 595b5f8fa..a4989de51 100644 --- a/website/src/pages/index.module.css +++ b/website/src/pages/index.module.css @@ -1,68 +1,295 @@ /* ======================================== - Hero Section + Hero Section — Hand-drawn ======================================== */ .hero { padding: 6rem 0 4rem; text-align: center; - background: linear-gradient(180deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%); position: relative; overflow: hidden; } -/* Subtle animated gradient orb in background (dark mode only) */ -:global([data-theme='dark']) .hero::before { - content: ''; +/* Shared group: logo + connector + title + underline act as one visual unit */ +.heroGroup { + display: flex; + flex-direction: column; + align-items: center; + margin-bottom: 0.25rem; +} + +/* Logo wrapper: sketchy dashed circle frame */ +.heroLogoWrapper { + position: relative; + display: inline-block; + margin-bottom: 0; + animation: logoEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; +} + +/* The dashed ring behind the logo */ +.heroLogoRing { position: absolute; - top: -50%; - left: 50%; - transform: translateX(-50%); - width: 800px; - height: 800px; - background: radial-gradient( - circle, - rgba(59, 130, 246, 0.12) 0%, - rgba(249, 115, 22, 0.06) 40%, - transparent 70% - ); + inset: -18px; + border: 3px dashed var(--color-muted-dark); + border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; + opacity: 0.5; + transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); pointer-events: none; } +:global([data-theme='dark']) .heroLogoRing { + border-color: rgba(232, 168, 76, 0.35); +} + +.heroLogoWrapper:hover .heroLogoRing { + inset: -24px; + opacity: 0.8; + border-color: var(--color-blue); + transform: rotate(3deg); +} + +:global([data-theme='dark']) .heroLogoWrapper:hover .heroLogoRing { + border-color: var(--color-blue); +} + +/* Decorative pen marks / sparkles around the logo */ +.heroLogoSparkle { + position: absolute; + font-size: 1.2rem; + color: var(--color-muted-dark); + pointer-events: none; + opacity: 0; + animation: sparkleFadeIn 0.8s ease forwards; +} + +:global([data-theme='dark']) .heroLogoSparkle { + color: rgba(232, 168, 76, 0.5); +} + +.heroLogoSparkle:nth-child(2) { + top: -10px; + right: -8px; + animation-delay: 0.4s; +} + +.heroLogoSparkle:nth-child(3) { + bottom: 8px; + left: -14px; + animation-delay: 0.6s; + font-size: 0.9rem; +} + +.heroLogoSparkle:nth-child(4) { + top: 12px; + left: -10px; + animation-delay: 0.8s; + font-size: 0.8rem; +} + +@keyframes sparkleFadeIn { + 0% { opacity: 0; transform: scale(0) rotate(-20deg); } + 100% { opacity: 1; transform: scale(1) rotate(0deg); } +} + +.heroLogoWrapper:hover .heroLogoSparkle { + animation: sparkleWiggle 0.4s ease-in-out; +} + +@keyframes sparkleWiggle { + 0% { transform: rotate(0deg); } + 25% { transform: rotate(12deg); } + 50% { transform: rotate(-10deg); } + 75% { transform: rotate(6deg); } + 100% { transform: rotate(0deg); } +} + +/* The actual logo image */ .heroLogo { width: 220px; height: auto; - margin-bottom: 0.5rem; - filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15)); + display: block; + transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); + animation: logoFloat 4s ease-in-out infinite; +} + +@keyframes logoFloat { + 0%, 100% { transform: translateY(0) rotate(0deg); } + 25% { transform: translateY(-4px) rotate(0.5deg); } + 75% { transform: translateY(3px) rotate(-0.5deg); } +} + +@keyframes logoEntrance { + 0% { + opacity: 0; + transform: scale(0.3) rotate(-8deg); + } + 100% { + opacity: 1; + transform: scale(1) rotate(0deg); + } +} + +.heroLogoWrapper:hover .heroLogo { + animation: none; + transform: rotate(-3deg) scale(1.06); +} + +/* Hard offset shadow for the dashed ring — consistent with design system */ +.heroLogoShadow { + position: absolute; + inset: -18px; + border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; + border: 3px dashed transparent; + background: rgba(45, 45, 45, 0.05); + transform: translate(4px, 4px); + z-index: -1; + pointer-events: none; transition: transform 0.3s ease; } -.heroLogo:hover { - transform: scale(1.05); +:global([data-theme='dark']) .heroLogoShadow { + background: rgba(0, 0, 0, 0.18); +} + +.heroLogoWrapper:hover .heroLogoShadow { + inset: -24px; + transform: translate(3px, 3px); +} + +/* Hide sparkles and connector on small screens */ +@media (max-width: 640px) { + .heroLogoSparkle { + display: none; + } + + .heroLogoRing { + inset: -12px; + border-width: 2px; + } + + .heroLogo { + width: 180px; + } + + .heroConnector { + display: none; + } +} + +/* Hand-drawn drop connector between logo and title */ +.heroConnector { + width: 32px; + height: 16px; + color: var(--color-muted-dark); + opacity: 0; + animation: connectorFadeIn 0.4s ease 0.5s forwards; + flex-shrink: 0; +} + +:global([data-theme='dark']) .heroConnector { + color: rgba(232, 168, 76, 0.4); +} + +@keyframes connectorFadeIn { + 0% { opacity: 0; transform: scaleY(0); } + 100% { opacity: 0.6; transform: scaleY(1); } } .heroTitle { + font-family: 'Kalam', cursive; font-size: 3rem; font-weight: 700; - margin-bottom: 1rem; - color: var(--ifm-font-color-base); - letter-spacing: -0.02em; + margin-bottom: 0; + color: var(--color-pencil); + letter-spacing: -0.01em; + opacity: 0; + animation: titleSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards; } -/* Multi-color gradient text effect - only in dark mode */ +/* Chalk white in dark mode — no gradient text */ :global([data-theme='dark']) .heroTitle { - background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #94a3b8 100%); - -webkit-background-clip: text; - -webkit-text-fill-color: transparent; - background-clip: text; + color: var(--color-pencil); +} + +/* Accent highlight on "AI CLI skills" — post-it yellow background */ +.heroTitleAccent { + position: relative; + white-space: nowrap; +} + +.heroTitleAccent::before { + content: ''; + position: absolute; + left: -4px; + right: -4px; + bottom: 2px; + height: 40%; + background: var(--color-postit); + border-radius: 3px; + z-index: -1; + transform: rotate(-0.5deg); +} + +:global([data-theme='dark']) .heroTitleAccent::before { + background: rgba(232, 168, 76, 0.22); +} + +@keyframes titleSlideIn { + 0% { + opacity: 0; + transform: translateY(12px); + } + 100% { + opacity: 1; + transform: translateY(0); + } +} + +/* Hand-drawn wavy underline below the title */ +.heroUnderline { + width: min(320px, 70%); + height: 12px; + color: var(--color-blue); + opacity: 0; + animation: underlineDraw 0.6s ease 0.65s forwards; + margin-top: 2px; + margin-bottom: 0.75rem; +} + +:global([data-theme='dark']) .heroUnderline { + color: var(--color-blue); +} + +@keyframes underlineDraw { + 0% { + opacity: 0; + clip-path: inset(0 100% 0 0); + } + 100% { + opacity: 0.7; + clip-path: inset(0 0 0 0); + } } .heroSubtitle { font-size: 1.25rem; - color: var(--ifm-font-color-secondary); + color: var(--color-pencil-light); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6; + opacity: 0; + animation: subtitleFadeIn 0.5s ease 0.7s forwards; +} + +@keyframes subtitleFadeIn { + 0% { + opacity: 0; + transform: translateY(8px); + } + 100% { + opacity: 1; + transform: translateY(0); + } } /* ======================================== @@ -85,69 +312,67 @@ gap: 0.4rem; padding: 0.5rem 1rem; background: transparent; - border: 1px solid var(--card-border); - border-radius: 8px; + border: 2px dashed var(--color-muted-dark); + border-radius: var(--radius-wobbly-sm); color: var(--muted-text); font-size: 0.8rem; font-weight: 500; cursor: pointer; - transition: all 0.2s ease; + transition: all 0.15s ease; } .installTab:hover { - background: rgba(59, 130, 246, 0.08); - border-color: rgba(59, 130, 246, 0.3); - color: var(--ifm-font-color-base); + background: var(--color-paper-warm); + border-color: var(--color-pencil); + color: var(--color-pencil); } .installTabActive { - background: rgba(59, 130, 246, 0.15); - border-color: rgba(59, 130, 246, 0.4); - color: var(--ifm-color-primary); + background: var(--color-postit); + border: 2px solid var(--color-pencil); + color: var(--color-pencil); + font-weight: 600; } :global([data-theme='dark']) .installTab { - border-color: rgba(255, 255, 255, 0.1); + border-color: rgba(240, 236, 225, 0.25); + color: var(--color-pencil-light); } :global([data-theme='dark']) .installTab:hover { - background: rgba(59, 130, 246, 0.15); - border-color: rgba(59, 130, 246, 0.4); + background: rgba(232, 168, 76, 0.12); + border-color: var(--color-blue); + color: var(--color-pencil); } :global([data-theme='dark']) .installTabActive { - background: rgba(59, 130, 246, 0.2); - border-color: rgba(59, 130, 246, 0.5); - color: #60A5FA; + background: rgba(232, 168, 76, 0.18); + border: 2px solid var(--color-blue); + color: var(--color-pencil); } /* ======================================== - Install Command (Always terminal-style dark) + Install Command — Terminal style ======================================== */ .installCommand { display: inline-flex; align-items: center; gap: 1rem; background: rgba(15, 23, 42, 0.95); - border: 1px solid rgba(59, 130, 246, 0.2); - border-radius: 12px; + border: 2px solid #101827; + border-radius: var(--radius-wobbly-sm); padding: 0.875rem 1.5rem; font-family: var(--ifm-font-family-monospace); font-size: 0.875rem; max-width: 100%; overflow-x: auto; - box-shadow: - 0 4px 20px rgba(0, 0, 0, 0.15), - inset 0 1px 0 rgba(255, 255, 255, 0.05); - backdrop-filter: blur(8px); + box-shadow: 4px 4px 0px 0px #101827; } :global([data-theme='dark']) .installCommand { - background: rgba(30, 41, 59, 0.8); - border-color: rgba(59, 130, 246, 0.3); - box-shadow: - 0 4px 30px rgba(0, 0, 0, 0.3), - inset 0 1px 0 rgba(255, 255, 255, 0.03); + background: rgba(20, 18, 16, 0.95); + border: 2px solid rgba(240, 236, 225, 0.25); + box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.55); } .installCommand code { @@ -155,17 +380,19 @@ padding: 0; color: #e2e8f0; white-space: nowrap; + border: none; + box-shadow: none; } .prompt { - color: #22C55E; + color: #2e8b57; margin-right: 0.5rem; font-weight: 600; } .copyButton { background: rgba(255, 255, 255, 0.05); - border: 1px solid rgba(255, 255, 255, 0.15); + border: 1px dashed rgba(255, 255, 255, 0.2); color: #94a3b8; padding: 0.5rem 0.75rem; border-radius: 6px; @@ -179,8 +406,8 @@ } .copyButton:hover { - background: rgba(59, 130, 246, 0.15); - border-color: rgba(59, 130, 246, 0.4); + background: rgba(232, 168, 76, 0.2); + border-color: rgba(232, 168, 76, 0.5); color: #f8fafc; } @@ -191,57 +418,49 @@ flex-wrap: wrap; } +/* ======================================== + Wavy Divider + ======================================== */ +.wavyDivider { + display: block; + width: 100%; + height: 40px; + overflow: hidden; +} + +.wavyDivider svg { + width: 100%; + height: 100%; +} + /* ======================================== Why Section ======================================== */ .why { padding: 5rem 0; - background: var(--ifm-background-surface-color); + background: var(--color-paper-warm); } :global([data-theme='dark']) .why { - background: rgba(30, 41, 59, 0.3); + background: var(--color-paper-warm); } .sectionTitle { text-align: center; + font-family: 'Kalam', cursive; font-size: 2rem; margin-bottom: 0.75rem; + color: var(--color-pencil); } .sectionSubtitle { text-align: center; - color: var(--ifm-font-color-secondary); + color: var(--color-pencil-light); font-size: 1.1rem; margin-bottom: 2.5rem; line-height: 1.7; } -.sectionSubtitle a { - color: var(--ifm-color-primary); - text-decoration: none; - font-weight: 500; - padding: 0.1rem 0.3rem; - border-radius: 4px; - background: rgba(59, 130, 246, 0.08); - transition: all 0.2s ease; -} - -.sectionSubtitle a:hover { - background: rgba(59, 130, 246, 0.15); - color: var(--ifm-color-primary-dark); -} - -:global([data-theme='dark']) .sectionSubtitle a { - background: rgba(96, 165, 250, 0.15); - color: #60A5FA; -} - -:global([data-theme='dark']) .sectionSubtitle a:hover { - background: rgba(96, 165, 250, 0.25); -} - -/* Why Grid - Card Layout */ .whyGrid { display: grid; grid-template-columns: repeat(3, 1fr); @@ -252,56 +471,116 @@ .whyCard { background: var(--card-bg); - border: 1px solid var(--card-border); - border-radius: 16px; + border: 2px solid var(--color-pencil); + border-radius: var(--radius-wobbly-md); padding: 1.5rem; - transition: all 0.25s ease; + transition: all 0.15s ease; + box-shadow: var(--shadow-sm); } :global([data-theme='dark']) .whyCard { - background: rgba(30, 41, 59, 0.5); - border-color: rgba(255, 255, 255, 0.08); + background: var(--card-bg); + border-color: rgba(240, 236, 225, 0.2); } .whyCard:hover { - border-color: var(--card-border-hover); - transform: translateY(-2px); + box-shadow: var(--shadow-hover); + transform: translate(1px, 1px) rotate(-0.5deg); } :global([data-theme='dark']) .whyCard:hover { - background: rgba(30, 41, 59, 0.7); - border-color: rgba(59, 130, 246, 0.3); + background: var(--card-bg-hover); + border-color: var(--color-blue); } +/* Post-it colored icon backgrounds */ .whyIconWrapper { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; - background: rgba(59, 130, 246, 0.1); - border: 1px solid rgba(59, 130, 246, 0.2); - border-radius: 10px; - color: #3b82f6; + border-radius: 8px; margin-bottom: 1rem; + border: 1px solid var(--color-pencil); +} + +/* Icon color palette (post-it / accent tones) */ +.whyCard:nth-child(1) .whyIconWrapper { + background: #d6e4f0; + color: #2d5da1; +} + +.whyCard:nth-child(2) .whyIconWrapper { + background: #d4edda; + color: #2e8b57; +} + +.whyCard:nth-child(3) .whyIconWrapper { + background: #fff3cd; + color: #d4870e; +} + +.whyCard:nth-child(4) .whyIconWrapper { + background: #f8d7da; + color: #c0392b; +} + +.whyCard:nth-child(5) .whyIconWrapper { + background: #fff9c4; + color: #5a5a5a; +} + +.whyCard:nth-child(6) .whyIconWrapper { + background: #e8dff0; + color: #6b3fa0; } :global([data-theme='dark']) .whyIconWrapper { - background: rgba(96, 165, 250, 0.15); - border-color: rgba(96, 165, 250, 0.25); - color: #60a5fa; + border-color: var(--card-border); +} + +:global([data-theme='dark']) .whyCard:nth-child(1) .whyIconWrapper { + background: rgba(107, 163, 214, 0.18); + color: #7db8e8; +} + +:global([data-theme='dark']) .whyCard:nth-child(2) .whyIconWrapper { + background: rgba(92, 184, 122, 0.18); + color: #6dca8e; +} + +:global([data-theme='dark']) .whyCard:nth-child(3) .whyIconWrapper { + background: rgba(232, 168, 64, 0.18); + color: #e8a840; +} + +:global([data-theme='dark']) .whyCard:nth-child(4) .whyIconWrapper { + background: rgba(224, 90, 79, 0.18); + color: #e05a4f; +} + +:global([data-theme='dark']) .whyCard:nth-child(5) .whyIconWrapper { + background: rgba(232, 168, 76, 0.12); + color: #c4b8a0; +} + +:global([data-theme='dark']) .whyCard:nth-child(6) .whyIconWrapper { + background: rgba(160, 100, 220, 0.18); + color: #b088d0; } .whyCardTitle { + font-family: 'Kalam', cursive; font-size: 1rem; - font-weight: 600; + font-weight: 700; margin-bottom: 0.5rem; - color: var(--ifm-font-color-base); + color: var(--color-pencil); } .whyCardDescription { font-size: 0.875rem; - color: var(--ifm-font-color-secondary); + color: var(--color-pencil-light); line-height: 1.6; margin: 0; } @@ -318,108 +597,6 @@ } } -/* ======================================== - Features Section - ======================================== */ -.features { - padding: 5rem 0; -} - -.featureGrid { - display: grid; - grid-template-columns: repeat(3, 1fr); - gap: 1.5rem; -} - -.featureCard { - background: var(--card-bg); - border: 1px solid var(--card-border); - border-radius: 16px; - padding: 2rem; - text-align: center; - transition: all 0.25s ease; - cursor: default; - backdrop-filter: blur(10px); -} - -:global([data-theme='dark']) .featureCard { - background: rgba(30, 41, 59, 0.5); - border: 1px solid rgba(255, 255, 255, 0.08); -} - -.featureCard:hover { - background: var(--card-bg-hover); - border-color: var(--card-border-hover); - transform: translateY(-4px); - box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1); -} - -:global([data-theme='dark']) .featureCard:hover { - background: rgba(30, 41, 59, 0.8); - box-shadow: - 0 12px 40px rgba(0, 0, 0, 0.3), - 0 0 0 1px rgba(59, 130, 246, 0.1); -} - -.featureIconWrapper { - display: flex; - align-items: center; - justify-content: center; - width: 60px; - height: 60px; - margin: 0 auto 1.25rem; - background: var(--icon-bg); - border: 1px solid var(--icon-border); - border-radius: 14px; - color: var(--icon-color); - transition: all 0.25s ease; -} - -/* Icon colors matching logo palette */ -.featureCard:nth-child(1) .featureIconWrapper { - background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05)); - border-color: rgba(59, 130, 246, 0.3); - color: #3B82F6; -} - -.featureCard:nth-child(2) .featureIconWrapper { - background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05)); - border-color: rgba(249, 115, 22, 0.3); - color: #F97316; -} - -.featureCard:nth-child(3) .featureIconWrapper { - background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05)); - border-color: rgba(34, 197, 94, 0.3); - color: #22C55E; -} - -:global([data-theme='dark']) .featureCard:nth-child(1) .featureIconWrapper { - color: #60A5FA; -} - -:global([data-theme='dark']) .featureCard:nth-child(2) .featureIconWrapper { - color: #FB923C; -} - -:global([data-theme='dark']) .featureCard:nth-child(3) .featureIconWrapper { - color: #4ADE80; -} - -.featureTitle { - font-size: 1.25rem; - margin-bottom: 0.75rem; - color: var(--ifm-font-color-base); - font-weight: 600; -} - -.featureDescription { - color: var(--ifm-font-color-secondary); - font-size: 0.95rem; - line-height: 1.7; - margin: 0; -} - /* ======================================== Demo Section ======================================== */ @@ -430,34 +607,21 @@ .demoContainer { max-width: 960px; margin: 0 auto; - border-radius: 16px; + border-radius: var(--radius-wobbly-md); overflow: hidden; - box-shadow: - 0 25px 50px -12px rgba(0, 0, 0, 0.2), - 0 0 0 1px rgba(0, 0, 0, 0.05); - border: 1px solid var(--card-border); - transition: all 0.3s ease; + border: 2px solid var(--color-pencil); + box-shadow: var(--shadow-lg); + transition: all 0.2s ease; + position: relative; } .demoContainer:hover { - transform: scale(1.01); - box-shadow: - 0 30px 60px -15px rgba(0, 0, 0, 0.25), - 0 0 0 1px rgba(0, 0, 0, 0.08); + box-shadow: var(--shadow-md); + transform: translate(4px, 4px); } :global([data-theme='dark']) .demoContainer { - box-shadow: - 0 25px 50px -12px rgba(0, 0, 0, 0.5), - 0 0 0 1px rgba(59, 130, 246, 0.1); - border-color: rgba(59, 130, 246, 0.2); -} - -:global([data-theme='dark']) .demoContainer:hover { - box-shadow: - 0 30px 60px -15px rgba(0, 0, 0, 0.6), - 0 0 0 1px rgba(59, 130, 246, 0.2), - 0 0 40px rgba(59, 130, 246, 0.1); + border-color: rgba(240, 236, 225, 0.2); } .demoContainer img { @@ -466,16 +630,34 @@ display: block; } +/* Tape decoration on demo */ +.tapeDecoration { + position: absolute; + top: -6px; + left: 50%; + transform: translateX(-50%) rotate(-2deg); + width: 80px; + height: 24px; + background: rgba(255, 249, 196, 0.85); + border: 1px solid rgba(45, 45, 45, 0.15); + z-index: 2; +} + +:global([data-theme='dark']) .tapeDecoration { + background: rgba(232, 168, 76, 0.25); + border-color: rgba(232, 228, 217, 0.12); +} + /* ======================================== Web UI Highlights ======================================== */ .uiHighlights { padding: 5rem 0; - background: var(--ifm-background-surface-color); + background: var(--color-paper-warm); } :global([data-theme='dark']) .uiHighlights { - background: rgba(15, 23, 42, 0.45); + background: var(--color-paper-warm); } .uiHighlightsGrid { @@ -486,26 +668,26 @@ } .uiHighlightCard { - border: 1px solid var(--card-border); - border-radius: 14px; + border: 2px solid var(--color-pencil); + border-radius: var(--radius-wobbly-md); overflow: hidden; background: var(--card-bg); - transition: all 0.25s ease; + transition: all 0.15s ease; + box-shadow: var(--shadow-sm); } :global([data-theme='dark']) .uiHighlightCard { - background: rgba(30, 41, 59, 0.55); - border-color: rgba(255, 255, 255, 0.09); + background: var(--card-bg); + border-color: rgba(240, 236, 225, 0.2); } .uiHighlightCard:hover { - transform: translateY(-2px); - border-color: var(--card-border-hover); - box-shadow: 0 14px 32px -20px rgba(0, 0, 0, 0.45); + box-shadow: var(--shadow-hover); + transform: translate(1px, 1px); } :global([data-theme='dark']) .uiHighlightCard:hover { - border-color: rgba(59, 130, 246, 0.35); + border-color: var(--color-blue); } .uiHighlightCard img { @@ -519,14 +701,17 @@ } .uiHighlightTitle { + font-family: 'Kalam', cursive; font-size: 1rem; + font-weight: 700; margin-bottom: 0.35rem; + color: var(--color-pencil); } .uiHighlightDescription { margin: 0; font-size: 0.88rem; - color: var(--ifm-font-color-secondary); + color: var(--color-pencil-light); line-height: 1.55; } @@ -537,7 +722,7 @@ } /* ======================================== - Supported CLIs Section + Supported CLIs — Badge style ======================================== */ .supported { padding: 4rem 0 5rem; @@ -545,39 +730,48 @@ } .supportedTitle { - color: var(--ifm-font-color-secondary); - font-size: 0.8rem; + color: var(--color-pencil-light); + font-family: 'Kalam', cursive; + font-size: 0.9rem; text-transform: uppercase; - letter-spacing: 0.15em; + letter-spacing: 0.12em; margin-bottom: 1.5rem; - font-weight: 500; + font-weight: 700; } .cliLogos { display: flex; flex-wrap: wrap; justify-content: center; - gap: 2rem; + gap: 1rem; align-items: center; } .cliLogos span { - font-size: 0.95rem; - color: var(--muted-text); - transition: all 0.2s ease; - padding: 0.5rem 1rem; - border-radius: 8px; + font-size: 0.88rem; + color: var(--color-pencil-light); + transition: all 0.15s ease; + padding: 0.4rem 0.8rem; + border-radius: var(--radius-wobbly-sm); + border: 1px dashed var(--color-muted-dark); font-weight: 500; } .cliLogos span:hover { - color: var(--ifm-font-color-base); - background: rgba(59, 130, 246, 0.08); + color: var(--color-pencil); + border-color: var(--color-pencil); + background: var(--color-paper-warm); + transform: rotate(-1deg); +} + +:global([data-theme='dark']) .cliLogos span { + border-color: var(--color-muted); } :global([data-theme='dark']) .cliLogos span:hover { - background: rgba(59, 130, 246, 0.15); - color: #f8fafc; + color: var(--color-pencil); + border-color: var(--color-pencil-light); + background: rgba(232, 168, 76, 0.08); } /* ======================================== @@ -596,11 +790,6 @@ font-size: 1rem; } - .featureGrid { - grid-template-columns: 1fr; - gap: 1.5rem; - } - .installCommand { flex-direction: column; gap: 0.75rem; @@ -616,7 +805,52 @@ Accessibility ======================================== */ @media (prefers-reduced-motion: reduce) { - .featureCard:hover { + .heroLogo, + .heroLogoSparkle { + animation: none; + } + + .heroLogoWrapper { + animation: none; + } + + .heroLogoSparkle { + opacity: 1; + } + + /* Disable staggered entrance animations — show immediately */ + .heroTitle, + .heroSubtitle, + .heroConnector, + .heroUnderline { + animation: none; + opacity: 1; + } + + .heroConnector { + opacity: 0.6; + } + + .heroUnderline { + opacity: 0.7; + clip-path: none; + } + + .whyCard:hover, + .demoContainer:hover, + .cliLogos span:hover { transform: none; } + + .heroLogoWrapper:hover .heroLogo { + transform: none; + } + + .heroLogoWrapper:hover .heroLogoRing { + transform: none; + } + + .heroLogoWrapper:hover .heroLogoSparkle { + animation: none; + } } diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx index 3fd8da585..eb9c4a501 100644 --- a/website/src/pages/index.tsx +++ b/website/src/pages/index.tsx @@ -28,6 +28,32 @@ const INSTALL_COMMANDS: Record