دليل المستودع: معيار تحويل زر CTA ثابت أسفل شاشة الجوال
صفحة تعريفية مستقلة بمستودع معيار تحويل زر CTA ثابت أسفل شاشة الجوال. توضّح ما الذي يحاول حله، ولمن يناسب، وما الملفات التي ستجدها قبل الانتقال إلى المصدر.
المشكلة التي يعالجها
يوضح التوثيق الأصلي نطاق المشكلة بهذا الوصف:
Develop a high-performance mobile sticky CTA component (sticky_cta.js): 1) Uses modern IntersectionObserver (0 scroll event listeners) for 60fps performance and zero INP penalty, 2) Automatically detects when native CTA is visible and hides smoothly, 3) Supports bilingual RTL/LTR layouts with countdown timer and price display, 4) Complete HTML demo and performance test suite.لمن صُمم؟
الجمهور المحدد في README: BOTH operating in high-growth e-commerce, digital publishing, and direct-response marketing across Saudi Arabia, UAE, and Egypt.
محتويات المستودع
الملفات الأساسية التي يسردها قسم بنية المستودع في README:
css/sticky_cta.cssdemo/index.htmldocs/performance-benchmark-inp.mddocs/sticky-cta-ab-test-results.mdexamples/demo_storefront.htmlLICENSEREADME.mdsrc/sticky_cta.csssrc/sticky_cta.jssrc/sticky_cta_logic.jstests/component.test.jstests/test_sticky_cta.py
طريقة مراجعته واستخدامه
- ابدأ بقراءة README وتأكد أن المشكلة المذكورة تطابق احتياجك الفعلي.
- افحص الملفات المذكورة أعلاه؛ أسماء الملفات توضح مكان البيانات والأدوات والقوالب والاختبارات.
- اتبع Quick Start الموجود في README، وتحقق من المتطلبات قبل تشغيل أي أمر.
- قارن المخرجات بعينة موثقة، وراجع القيود قبل استخدامها في قرار أو عمل عميل.
أمثلة أوامر البدء من README: python -m unittest discover -s tests · node --test tests/*.test.js
النطاق والقيود
- iOS Safe Area Inset Accommodation: Persistent bottom CTAs must include 'padding-bottom: env(safe-area-inset-bottom)' to prevent overlap with native iOS home indicators.
- Screen Real Estate Budget: Fixed bottom bar height should be tested at the actual viewport and text scale so it does not obscure essential content.
- Scroll-Directional Visibility: Bar reveals on subtle scroll-up or maintains persistent presence with smooth opacity transition.
هذه الصفحة تلخص التوثيق المتاح ولا تثبت أداءً أو نتيجة تجارية. تحقق من صلاحية البيانات والمتطلبات قبل الاستخدام.