rea-tool-design
MOmorluto/rea486k近 7 天新增 8,943 个 star
Design and build marketing surfaces — landing pages, blogs, docs sites, changelogs — with motion restraint, performance, and SEO built in. Use when creating or reviewing a landing page, homepage, hero section, pricing page, blog, documentation site, or changelog; when tempted to add scroll animations, parallax, or carousels; or when setting up fonts, static generation, RSS, or CTAs for a marketing site. Triggers on: landing page, marketing site, marketing page, homepage, hero section, pricing page, blog, blog post, docs, documentation site, changelog, RSS feed, SEO, CTA, call to action, sign up button, get started, scroll animation, fade-in on scroll, parallax, carousel, scroll hijacking, intro animation, page load animation, font preload, layout shift, static generation, SSG, code snippet, copy code button, copy as markdown, nav dropdown, header navigation, waitlist.
Marketing pages earn more animation budget than product UI — a visitor sees a landing page once, not a hundred times a day — but the budget is still small, and most sites overspend it. The pages that convert are fast, readable, and honest: content in the DOM, fonts that don't shift, motion that maps to what the user is doing. Restraint is the house style here, from Emil Kowalski's design engineering practice: skip the scroll theatrics, ship the page pre-rendered, and spend your effort on the details visitors feel but never name. When implementing anything below, match the project's existing styling system — Tailwind, plain CSS, CSS Modules, CSS-in-JS — rather than introducing a new one; and match its framework conventions (the examples use Next.js/React, but the principles are framework-agnostic).
sessionStorage so returning within a session skips them, and new sessions see them fresh.Marketing pages can be more elaborate than product UI, but the same discipline applies.
Never add:
All of these move without the user asking. Motion disconnected from input feels like the page is performing at you.
Intro animations (hero reveals, logo sequences) are fine — once. Skip them on subsequent page views within the same session:
useEffect(() => {
const hasSeenIntro = sessionStorage.getItem('hasSeenIntro');
if (hasSeenIntro) {
setSkipIntro(true);
} else {
sessionStorage.setItem('hasSeenIntro', 'true');
}
}, []);
Use sessionStorage, not localStorage — the intro should play again on a genuinely new visit, just not on every internal navigation.
Preload fonts so text doesn't reflow when the webfont lands:
import { preload } from 'react-dom';
// In app initialization
preload('/fonts/inter-var.woff2', { as: 'font', type: 'font/woff2' });
Preload above-the-fold images:
<link rel="preload" as="image" href="/hero-image.webp" />
Statically generate all content pages. Blog, changelog, docs, and any frequently updated data: build time + revalidation, never request-time fetching:
// Next.js example
export async function generateStaticParams() {
const posts = await getPosts();
return posts.map((post) => ({ slug: post.slug }));
}
export const revalidate = 3600; // Revalidate every hour
Submenu content that appears on hover must still exist in the DOM at all times — visually hidden, not mounted-on-hover. This keeps the HTML structure real for SEO and accessibility:
<!-- Content exists in DOM, just visually hidden -->
<nav>
<button aria-expanded="false">Products</button>
<div class="submenu" aria-hidden="true">
<!-- Full content here, not dynamically loaded -->
</div>
</nav>
CTAs adapt to auth state — a logged-in user being told to "Sign Up" is a dead end:
| State | CTA |
|---|---|
| Logged out | "Get Started" or "Sign Up" |
| Logged in | "Go to Dashboard" or "Open App" |
<Button href={isLoggedIn ? '/dashboard' : '/signup'}>
{isLoggedIn ? 'Go to Dashboard' : 'Get Started'}
</Button>
.md URLs (e.g. /docs/getting-started.md returns raw markdown). This serves both humans and the LLMs increasingly reading your docs.RSS feeds exist at predictable paths:
/blog/rss.xml
/changelog/rss.xml
Balance headings so multi-line titles don't leave a stranded word:
article h1, article h2 {
text-wrap: balance;
}
Decorative illustrations built from DOM elements need three things: an accessible name, no text selection, and no pointer interference:
<div
role="img"
aria-label="Illustration showing data flow"
className="illustration"
style={{
userSelect: 'none',
pointerEvents: 'none',
}}
/>
Skip pointerEvents: 'none' only if the illustration is interactive.
sessionStorage.md URLs)text-wrap: balance on article headingsaria-label, disabled selection, disabled pointer eventsMOmorluto/rea486k近 7 天新增 8,943 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
AFaffaan-m/ECC315k近 7 天新增 4,381 个 star
NEnextlevelbuilder/ui-ux-pro-max-skill157k近 7 天新增 3,225 个 star
NEnextlevelbuilder/ui-ux-pro-max-skill157k近 7 天新增 3,225 个 star
THthedotmack/claude-mem121k近 7 天新增 1,626 个 star