来源仓库:jxc/ai-fresh-delivery 来源提交:f0b1a180e2deb7e4673b9d1c8542619f7bc0f73d 快照树: 09f679334ff38f0ff25e907961c94a8223bcaedd(与来源 HEAD 工作树逐字节一致,3801 个文件) 按约定本仓库不带任何历史提交:来源仓库的历史中含真实凭据 (生产 SSH 私钥 deploy/id_rsa_tencent、server/.env、.env.tencent/.env.production/.env.gitea、 deploy/小程序AppSecret.txt,其中 MP_APPSECRET / S3 AccessKey 经哈希比对与线上同值), 整包推送会把这些凭据永久带入本仓库,故只取「当前版本」的单提交快照。 供应商系统后续开发自本提交开始。
3.7 KiB
name, version, description, keywords, author, style_type
| name | version | description | keywords | author | style_type | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| split-screen | 1.0.0 | Split Screen design style for web interfaces |
|
StyleKit | layout |
Split Screen Style
Overview
左右对称或不对称的分屏布局,通过对比和平衡创造视觉张力,常用于产品展示、品牌故事、比较页面。
Philosophy
Split Screen(分屏布局)是一种将视口分为两个或多个区域的布局方式,通过对比创造视觉张力和叙事效果。
Design Tokens
Border
- Width:
border-0 - Color:
border-zinc-300 - Radius:
rounded-none
Shadow
- Small:
shadow-none - Medium:
shadow-none - Large:
shadow-none - Hover:
shadow-none
Typography
- Heading:
font-bold tracking-tight - Body:
font-sans - Hero:
text-4xl md:text-6xl lg:text-7xl - H1:
text-3xl md:text-5xl - Body:
text-base md:text-lg
Spacing
- Section:
py-0 - Container:
px-8 md:px-12 lg:px-16 - Card:
p-8 lg:p-16
Colors
- Primary BG:
bg-black - Secondary BG:
bg-white - Primary Text:
text-white - Primary Button:
bg-black text-white
Component Recipes
Button
-
Base:
font-semibold transition-colors duration-200 -
Primary:
bg-black text-white -
Secondary:
bg-white text-black border-2 border-black -
Outline:
bg-transparent text-black border-2 border-zinc-300 -
Hover:
hover:bg-zinc-800
Card
-
Base:
flex flex-col justify-center transition-all duration-200 -
Default:
bg-white text-zinc-900 -
Dark:
bg-black text-white -
Accent:
bg-gradient-to-br from-purple-600 to-blue-600 text-white -
Hover:
hover:opacity-95
Input
- Base:
w-full bg-transparent border-b-2 border-zinc-300 text-lg placeholder:text-zinc-400 focus:outline-none transition-colors duration-200 - Default: ``
- Dark:
text-white border-white/30 placeholder:text-white/50
Forbidden Patterns
These classes must NEVER be used in Split Screen style:
-
rounded-lg -
rounded-xl -
rounded-2xl -
rounded-full -
shadow-sm -
shadow-md -
shadow-lg -
shadow-xl -
Pattern:
^rounded-(?!none) -
Pattern:
^shadow-(?!none)
Why:
rounded-lg: Split Screen uses sharp edges for strong visual dividersshadow-lg: Split Screen relies on contrast between panels, not shadows
Do's
- 使用 CSS Grid 或 Flexbox 实现分屏 grid grid-cols-2
- 大屏幕保持分屏,小屏幕堆叠 lg:grid-cols-2 grid-cols-1
- 使用对比色或互补内容
- 一侧视觉元素,一侧文字内容
- 保持两侧视觉重量平衡
- 添加过渡动画增强体验
- 考虑分屏滚动锁定效果
Don'ts
- 禁止两侧内容完全相同(无意义分屏)
- 禁止移动端仍保持分屏(太窄)
- 禁止两侧视觉重量严重失衡
- 禁止忽略内容阅读顺序
- 禁止分割线过于突兀
Layout Archetypes
landing-hero-centered: Centered headline, subtitle, and CTA. Clean and focused.landing-hero-split: Text on left, image/visual on right. Great for product showcases.landing-hero-fullscreen: Full viewport hero with background image or color. High impact.landing-video-hero: Full-screen video background with overlay text. High impact for product demos.landing-saas-pricing: Complete SaaS pricing page with hero, pricing tiers, FAQ, and CTA.landing-waitlist: Minimal pre-launch page with email collection and countdown.
Example Usage
Generate a landing page with:
- Style: split-screen
- Archetype: landing-hero-centered
- Sections: hero, features, cta, footer
- Components: heading (hero variant), button (primary, lg), card (default)
Example Prompts:
- "品牌展示页"
- "产品对比页"
- "作品集项目页"
Generated by StyleKit · https://stylekit.dev Style: 分屏布局 (Split Screen)