Communitygithub.com

ZeroSum-Solutions/mishmash

暗色「关于我」版块,专为自由设计师的作品集打造,打包为单个自包含的HTML页面。

mishmash 是什么?

该项目“ZeroSum-Solutions/mishmash”是一个用于自由设计师作品集的自包含HTML页面,专门呈现“关于我”版块。其核心视觉亮点包括:一个渐变色标题、一段随页面滚动从左到右逐字亮度递增的个人简介、四个带有毛玻璃3D效果的角落图标(月亮、砖块、笑脸、光标),以及一个品红到橙色渐变的药丸形按钮。该页面专注于单独展示此版块,采用深色背景,并通过CSS自定义属性实现了便捷的颜色定制。它详细规定了字体、布局、动效及无障碍规范,例如利用`IntersectionObserver`触发元素淡入,并通过`requestAnimationFrame`实现逐字滚动亮度变化。同时,它完整支持`prefers-reduced-motion`以减少动效,并确保屏幕阅读器能正确朗读简介文本。

兼容平台~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/ZeroSum-Solutions/mishmash/tree/HEAD/design-templates/portfolio-about-section

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

作品集「关于我」— 滚动照亮简介

源自授权的 MotionSites 提示词;重构为自包含页面。

为自由设计师作品集打造的深色「关于我」版块,以单个自包含的 HTML 页面形式呈现。渐变色标题「About me」位于简介段落上方,该段落的文字会随着页面滚动从左到右逐字变亮,四周由四个毛玻璃3D角落图标(月亮、砖块、笑脸、光标)环绕,这些图标在页面加载时从左右两侧滑入,下方是一个品红到橙色的渐变药丸形按钮。版块的 min-height: 100vh 且双向居中,因此它将独自填满整个页面,没有多余装饰——这个页面存在的唯一理由就是这个版块。

工作流程

  1. 将 example.html 克隆 到用户的工作区作为工作文件。
  2. 替换简介段落 为用户的实际文案。滚动照亮脚本会在加载时重新拆分 #about-copy 中的任何纯文本为字符,因此无需其他标记更改——只需编辑句子即可。
  3. 更换四个角落图标(位于 assets/ 目录下,或放入新图标并修改 src 属性),如果用户希望使用不同的图标;保持四角构图和交替滑入方向。
  4. 保留设计系统。 接近黑色的背景、钢灰色渐变标题文字、四角图标框架以及品红到橙色的按钮渐变是核心外观——请勿手动重新着色或移除字符显示效果。
  5. 为按钮设置真实的目标链接。 它默认链接到 #contact(与原始提示词匹配);当用户拥有实际的联系版块或页面时,更新 href 属性。
  6. 保持动效的无障碍性。 页面装载时的淡入效果和滚动照亮效果在 prefers-reduced-motion 设置下都会坍缩为完全可见的静态状态,符合构建规范要求。

构建规范

调色板

  • --bg: #0c0c0c — 页面和版块背景(原始提示词从页面继承此颜色,因此只需在 html, body 上设置一次)。
  • --paragraph-color: #d7e2ea — 简介段落文字颜色。
  • --heading-grad-top: #646973 / --heading-grad-bottom: #bbccd7 — 用于「About me」标题文字从上到下的渐变颜色。
  • --accent-1: #18011f, --accent-2: #b600a8, --accent-3: #7621b0, --accent-4: #be4c00 — 联系按钮渐变 (linear-gradient(123deg, ...)) 的四个色标。这是原始设计中版块唯一的真正彩色表面(并非虚构强调色),因此渐变标点被声明为可解析的根颜色值,渐变本身使用 var() 标点编写,满足此仓库的颜色替换契约,同时不改变任何已渲染的像素。
  • --focus-ring: #b600a8 — 复用 --accent-2 作为按钮和角落图标的键盘焦点环颜色;仅在 :focus-visible 时可见,在静止渲染时从不显示。

字体

Kanit(Google Fonts,字重 300–900)是唯一使用的字体,通过 html, body 应用于整个页面。

布局

一个 <section id="about">,min-height: 100vh,flex 列布局,双向居中,padding: 80px 20px,在 640px / 768px 断点处分别变为 80px 32px / 80px 40px:

  1. 四个装饰性角落图片(position: absolute, z-0, aria-hidden)— 月亮(左上角)、笑脸图标(左下角)、乐高风格砖块(右上角)和光标箭头图标(右下角)。每个图片都有响应式宽度(两个较大角落:120px → 160px → 210px;另外两个:100px → 140px → 180px 和 130px → 170px → 220px)以及基于百分比的定位,同样在相同的两个断点处调整。
  2. 居中内容列(max-width: 896px, z-10),包含:
    • 文字组 — 渐变色 <h1>「About me」(clamp(3rem, 12vw, 160px), font-weight: 900,大写)位于简介段落之上(clamp(1rem, 2vw, 1.35rem), max-width: 560px,居中)。
    • 行动号召组 — 「Contact Me」药丸形按钮,href="#contact"。

动效清单

  • 页面装载淡入 — 四个角落图标、标题和按钮初始 opacity: 0,并带有各自的平移偏移(角落图标水平方向 ±80px;标题 y: 40px;按钮 y: 20px),通过共享的 cubic-bezier(0.25, 0.1, 0.25, 1) 曲线动画过渡到静止位置。每个元素携带自己的延迟/时长作为 CSS 自定义属性(--fade-delay, --fade-duration),因此一个共享的 .fade-in 规则可以驱动所有六个元素:角落图标的延迟/时长为 0.1s/0.15s/0.25s/0.3s 和 0.9s 时长,标题的延迟为 0s,按钮的延迟为 0.3s,两者都使用 0.7s 的默认时长。单个 IntersectionObserver(rootMargin: 50px, threshold: 0,每个元素触发一次)会触发显示——由于版块填满了初始视口,这会在页面加载后几乎立即触发。
  • 滚动照亮段落 — 简介段落会在加载时被拆分为每个字符一个 <span>。在每次滚动/调整大小事件(通过 requestAnimationFrame 合并处理)时,每个字符的“静止”滚动位置会与通过段落自身 getBuiltClientRect() 计算的进度值进行比较,使用与原始 useScroll({ offset: ['start 0.8', 'end 0.2'] }) + 逐字符 useTransform 窗口(charProgress ± 0.1/0.05,输出范围 [0.2, 1])相同的计算方法。由于版块垂直居中且高于其内容,段落首次加载时已经部分位于该滚动窗口内——这就是为什么即使在实际滚动之前,也会有一部分字符比其他字符更亮,这与参考截图完全一致。
  • 按钮悬停/激活 — 悬停时 opacity: 0.9,激活时 0.75,过渡时间 200ms,与原始规范逐位匹配。

无障碍

  • 页面只有一个标题(<h1>About me</h1>),因此对于单版块页面而言,层级结构简单正确。
  • 所有四个角落图片都带有 alt="" 和 aria-hidden="true" — 它们纯属装饰,对页面含义无贡献。
  • 简介段落的真实文本始终存在于 #about-copy 中。字符拆分版本(#about-copy-animated)是纯装饰性的副本:它初始为 hidden 和 aria-hidden="true",仅在 JavaScript 确认允许动效后才被填充并显示。当它在视觉上接管时,原始的纯文本段落会被切换为 .sr-only 而不是被移除,因此屏幕阅读器始终会朗读一句真实的句子——永远不会读出 237 个独立的字符节点,也不会在 JavaScript 未能运行时读不出任何内容。
  • 「Contact Me」按钮是一个真实的 <a> 标签,带有可见文本和使用 --focus-ring 颜色的 :focus-visible 轮廓;角落图片也带有 :focus-visible 样式作为深度防御,即使它们是不可交互的(aria-hidden,默认不可聚焦)。

减少动效

prefers-reduced-motion: reduce 在加载时检查一次,并从源头短路两个动效系统,而不仅仅是通过 CSS:当此设置生效时,每个 .fade-in 元素都会立即被标记为可见(完全跳过 IntersectionObserver),并且字符拆分段落增强会在构建任何 <span> 之前返回——留下纯文本、完全不透明的静态段落作为永久结果。伴随的 @media (prefers-reduced-motion: reduce) CSS 块强制将淡入的透明度/变换属性恢复为静止值,作为任何在媒体查询检查之前已切换类的元素的深度防御后备。

响应式

断点与原始的 Tailwind sm/md 比例(640px / 768px)一致:版块内边距、两个内容列间距层级、四个角落图标的大小和位置、以及按钮的内边距/字体大小,都在两个断点处进行调整。简介段落的 max-width: 560px 限制意味着其换行宽度在该尺寸以上与断点无关。已在真实(非无头)Chrome 浏览器中于 1440×900 和 375×812 分辨率下验证:无水平滚动条、无控制台错误、所有四个图片均已加载。

关于验证方法的说明:无头 Chrome 的 --screenshot 标志会静默地将非常窄的 --window-size 请求(375px 被渲染为内部约 500px 的视口,然后按比例缩小到请求的输出图片)进行截断,这在 QA 期间产生了错误的“溢出”报告。通过一个真实的、尺寸正确的 Chrome 窗口(window.innerWidth 读回正好为 375)进行确认,显示完全没有溢出——document.documentElement.scrollWidth 在两种测试尺寸下都等于 window.innerWidth。

输出契约

在 <artifact> 标签之间输出:

<artifact identifier="portfolio-about-section" type="text/html" title="Portfolio About Me — Scroll-Brightened Bio">
<!doctype html>
<html>...</html>
</artifact>

来源说明

根据 MotionSites 无限计划订阅生成的输出(https://motionsites.ai/?prompt=portfolio-about)。上游的提示词原文仅作为设计参考,不包含在此仓库或此文件中——以上所有内容均以本项目自身的语言描述了实际构建的页面。不主张任何上游许可权利;这不是 vendored_from 条目,也没有独立的 .js 文件——所有脚本都内嵌在 example.html 中。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ZeroSum-Solutions/mishmash

Two-section scroll landing for **S.P.D**, a fictional daily-operations automation platform. Section one is a full-bleed black hero: a muted, looping period-painting video plays edge to edge behind a top-left wordmark and tagline, a top-right pill CTA, and a large right-aligned serif headline low in the frame. A cloud-plume image straddles the seam into section two, a saturated red panel holding a centered monogram, an uppercase mission line, a large script signature, two closing lines of copy, and a second looping video with a soft fade into the red. Motion is a staggered load-in fade on the hero, an IntersectionObserver reveal on the red section's content, and a scroll-linked parallax on the cloud plume — all degrading to a static, fully-visible layout under reduced motion.

ZeroSum-Solutions/mishmash

Full-screen, single-viewport (100vh, no scroll) dark hero landing page for **Asme**, a fictional no-code AI app platform. The fullscreen background is an HLS video stream from Mux, playing natively on Safari and via hls.js MediaSource on other browsers. A liquid-glass pill navbar (luminosity-blended glass with a masked `::before` gradient border) floats above an Instrument Serif hero heading and an animated email-capture CTA — "Get early access" expands to a form with a 60 ms/char typewriter placeholder, flips `ArrowRight` to `Check` on submit, and auto-resets after 4 seconds. All elements animate in on load with Motion (Framer Motion).

ZeroSum-Solutions/mishmash

A pixel-spec, dark-themed single-page marketing landing site for **Asme**, a fictional knowledge and insights platform, featuring a signature reusable `.liquid-glass` surface treatment — luminosity-blended translucent fill, 4px backdrop blur, inset top highlight, and a masked `::before` gradient border — applied consistently across the navbar pill, email capture, buttons, cards, and icon chips. The full-viewport hero loops a locally vendored `.mp4` video via a vanilla `requestAnimationFrame` opacity crossfade (fade in on `canplay`, fade out at 0.55s remaining, 100ms gap restart). Four scroll-triggered sections animate in with Framer Motion `useInView`: About, Featured Video, Innovation × Vision (video + two columns sliding from opposite sides), and Services (two glass cards with hover-zoom video). Instrument Serif display type sits against pure black throughout.

ZeroSum-Solutions/mishmash

A premium, dark-cinematic landing page for **Aura**, a fictional AI-native email client, featuring a looping fullscreen background video, a gradient-clip shiny headline, a macOS-style menu bar mockup, a realistic inbox preview, and a custom liquid-glass card treatment. The multi-section layout covers navbar, hero, menu bar, inbox mockup, feature triage, logo cloud, testimonials, pricing, and a final CTA — targeting the AI productivity app and SaaS landing page use case.

ZeroSum-Solutions/mishmash

A modern React landing page for a fictional broadcast-grade live video platform featuring a full-screen adaptive HLS video background, a glassmorphic navigation header, and hero content pinned to the bottom-left corner. Dark cinematic aesthetic with Gloock display serif, Archivo body, JetBrains Mono telemetry labels, and an aurora-green signal accent — ideal as a live streaming platform or video SaaS landing page template.

ZeroSum-Solutions/mishmash

A single-screen marketing landing page for "dot.", a calm-messaging product that links you with one anonymous peer for a single message each day. The hero is a full-screen looping background video of a phone, fronted by an animated Instrument Serif headline and a typewriter effect that types and deletes short messages ("Are you here?", "Yes, I am.", "Speak soon.") positioned to sit on the phone's on-screen display — evoking a quiet, analog rhythm. A floating pill navbar with a glinting "Link up" CTA completes the single-screen composition.

ZeroSum-Solutions/mishmash

A single-page "scrollytelling" landing page called Step Into Wonder: a 4.8-screen pinned scroll sequence where painted curtains part over a glowing crystal-cave portal, the world zooms and the portal irises open toward a sky beyond, then a giant arc of nine pastel destination cards sweeps across the closing scroll like a slow ferris wheel. Serif display headlines (Viaoda Libre) pair with a plain sans body face (Imprima) over a near-black stage, with mouse parallax on every layer and a dignified static fallback under reduced motion.

ZeroSum-Solutions/mishmash

Full landing page for the fictional AI workflow-automation platform **FlowMate** — a fixed left sidebar with a logo mark and section nav, a translucent blurred navbar, a large serif hero headline, a liquid-glass chat-composer card overlaid on a looping ambient video, a six-card feature grid, and an auto-rotating three-up cards carousel, all on an off-white minimalist palette with one indigo-violet chromatic accent.

ZeroSum-Solutions/mishmash

A single-page landing page for GroundAI, an interior-design AI product, built with TanStack Start v1 on file-based routing, React 19, TypeScript, Tailwind CSS v4, framer-motion for all animation, and lucide-react for icons. The page is composed of four stacked sections: a full-bleed autoplaying video hero with spring-animated header, expanding glass nav pill, and word-by-word animated description; a CSS marquee of partner brand wordmarks; a CraftExperiences section with a spring-driven style carousel, a skeleton-morphing chat card, and a staggered adaptable list; and a two-column testimonials block with animated word reveals.

ZeroSum-Solutions/mishmash

Produce a print-grade single-page kami (紙 / 纸) document — warm parchment canvas, ink-blue accent, serif at one weight, no italic, no cool grays. The output reads like a professional white paper or studio one-pager, not an app UI. Multilingual by design (EN · zh-CN · ja). One self-contained HTML file, zero dependencies.

ZeroSum-Solutions/mishmash

A single-page, desktop-only dark hero landing for the fictional studio **Kubric™**, built on **TanStack Start v1 + React 19 + Vite 7 + Tailwind v4** with file-based routing. Features a looping background video with a progressive 8-layer `backdrop-filter` blur at the bottom, an animated SVG logo with arc stroke-dashoffset reveals, a glass nav pill, a character-by-character headline reveal, a vertical right-side section nav, and a white "About us" card. Everything animates in on first load once the background video is ready.

ZeroSum-Solutions/mishmash

ProFolioX is a static reproduction of the current Lexington Themes portfolio template. It combines a fixed desktop sidebar, responsive mobile navigation, Geist typography, light and dark themes, animated project cards, searchable content, and editorial portfolio layouts.

ZeroSum-Solutions/mishmash

Warm, editorial single-page landing for **Velar.**, a fictional luxury real-estate brand. A deep-teal typewriter preloader gives way to a sky-backdrop hero ("Live in Irreplaceable") with a cutout building image that rises from below on load, then a scroll-driven centerpiece: as the user scrolls, that same building drifts upward and scales to 1.45x while pinning toward the bottom of a sticky black statement section with count-up stats. A hover-expand five-tile video gallery slides up over the statement section, and a bronze-gradient "Inquire" close finishes the page. Syne (display) pairs with Inter (body) throughout, on a warm off-white ground with one chromatic bronze accent.

ZeroSum-Solutions/mishmash

A full-screen, cinematic hero landing page for a creative agency called Mainframe, featuring a fixed background video that scrubs forward and backward in response to horizontal mouse movement, an AI-assistant-themed blurred intro label, a typewriter-animated headline, and a row of pill-shaped action buttons with a clipboard copy email link. The design pairs HelveticaNowDisplay-Medium headings with HelveticaNowDisplayW01-Rg body text, both vendored locally for offline use. Built with React 19, TypeScript, Vite, and Tailwind CSS v3.

ZeroSum-Solutions/mishmash

A cinematic, single-section landing hero for mėntality, a fictional mental-health resources product. The page pairs a full-bleed background video that gradient-masks into a soft `#edeef5` base with a glassmorphic, fixed navigation bar, built in React 19 + Vite and animated with Motion (formerly Framer Motion). Notable techniques include `backdrop-blur` glassmorphism, a gradient mask that blends the video top into the base color, `clamp()` fluid headline sizing, an animated SVG hamburger that morphs into an X, an inline blinking "eye/pupil" pill in the headline, and an animated `pl`/`en` language toggle. Styling is Tailwind CSS 4 via the `@tailwindcss/vite` plugin (CSS-first `@theme`, no config file), with Inter and Outfit from Google Fonts.

ZeroSum-Solutions/mishmash

A pure-black (#000) monochrome landing page for Mindloop, a newsletter and content platform, where white typography does the talking — Inter for structure and Instrument Serif italics for accent words. The seven-section page flows through a fixed glass navbar, a full-viewport MP4 hero with email capture, an AI-platform awareness section, a scroll-driven word-by-word opacity reveal, a solution feature grid with a 3:1 video panel, an HLS-streamed CTA section via hls.js (with native Safari fallback), and a minimal footer — with Framer Motion entrances and a liquid-glass CSS border effect throughout.

ZeroSum-Solutions/mishmash

Cinematic single-page landing for the fictional neural-AI platform **SynapseX**. A fixed, full-viewport background video scrubs frame-by-frame as the page scrolls and progressively blurs, sitting behind a scramble-in split-corner hero headline, a 3D-tilted cinematic paragraph reveal, and a frosted-glass horizontal metrics carousel. Pure black-and-white scaffolding is punctuated by one neon-green "synaptic" accent that ties the UI to the glowing footage underneath it.

ZeroSum-Solutions/mishmash

A dark, full-bleed landing page for Neuralyn, a fictional analytics-dashboard SaaS, featuring a full-viewport hero with a scroll-linked parallax dashboard composited over a looping background video and a scroll-driven testimonial where each word lights up as you scroll. The aesthetic is pure-black background, white type, a single italic serif accent word, and a liquid-glass tag pill. Built with React 18 + Vite and TypeScript, styled with Tailwind CSS 3 and shadcn/ui-style primitives, animated via Framer Motion (`useScroll`/`useTransform`) for scroll-linked parallax and the word-by-word color reveal, with fonts self-hosted via Fontsource.

ZeroSum-Solutions/mishmash

A monochrome, editorial landing page for a fictional Natural History Museum paleontology collection, featuring a three-section continuous scroll: a full-viewport hero with a delayed background video reveal and an animated geometric "NHM" SVG logotype (per-polygon slide-up reveal), an "Explore Our World" section with scroll-revealed display heading and action pills, and a dark "Ancient Collection" chapter browser with auto-cycling fossil images and a custom SVG `feTurbulence`/`feDisplacementMap` sand-dissolve transition effect. Built with React 19, Vite 6, Tailwind CSS 4 (CSS-first config), and Motion (Framer Motion), in a strictly monochrome black/white/gray palette — no color accents.

ZeroSum-Solutions/mishmash

A single-page NFT landing site with four full-bleed sections (Hero, About, Collection, CTA) on a dark space theme. The page uses looping muted background videos, a CSS liquid-glass UI effect, a fixed grain texture overlay, and a tight color system (deep navy `#010828`, off-white `#EFF4FF`, neon green `#6FFF00`; Anton headings, Condiment cursive accents, system mono body). Showcases a three-card NFT collection grid with rarity scores and video previews.

相关技能