الشاشة المقسومة Split Screen
صفحة مقسومة إلى نصفين: صورة أو رسالة في جانب، ونموذج أو محتوى في الجانب الآخر.
display: grid; grid-template-columns: 1fr 1frمتى تستخدمه
لصفحات تسجيل الدخول والمقارنات.
خطأ شائع
لا تُبقِه نصفين على الهاتف.
إمكانية الوصول
Stack the halves on small screens, with the important half first.
اسمه في الكود
| HTML/CSS | display: grid; grid-template-columns: 1fr 1fr |
|---|---|
| React | grid-cols-2 |
| Jetpack Compose | Row(Modifier.weight(1f)) x2 |
| SwiftUI | HStack / ViewThatFits |
برومبت جاهز لوكيل البرمجة
Add a Split Screen to this screen.
What it is: A page divided in two halves: an image or message on one side, a form or content on the other.
Implement with: display: grid; grid-template-columns: 1fr 1fr (HTML/CSS).
Accessibility: Stack the halves on small screens, with the important half first.
When to use it: For sign-in pages and comparisons.
Avoid: Don’t keep two columns on mobile.
Reuse the project's existing design tokens, spacing and component conventions.
أو ركّب صفحة كاملة من هذا العنصر وغيره →
البرومبت بالإنجليزية لأنها الأدق مع Claude Code وأمثاله.