انتقل إلى المحتوى
الأدلة
التنقل
التنبيهات
الطبقات العائمة
التخطيط
عرض البيانات
النماذج
.md

المعرض

gallery-10

شريط صور بعرض الصفحة الكامل أسفل عنوان في المنتصف، مع أسهم دائرية فوق حافتي الصورة ونقاط في الأسفل.

فتح بملء الشاشة

التثبيت

php artisan ui:add-block gallery-10

أمر واحد يثبّت ملف Blade الخاص بالقالب وكل مكوّن يعتمد عليه. اعرضه في تخطيطك كالتالي <x-ui.blocks.gallery-10 />.

المكونات المضمّنة

الاستخدام

Every piece of content is a prop. An image is ['src' => ..., 'alt' => ...]; leave src empty to show a placeholder. A full-bleed slider under a centred header: one image per view, round arrows over the image edges from md up, and dots at the bottom.

<x-ui.blocks.gallery-10
    heading="Our work"
    description="A few recent projects."
    :images="[
        ['src' => '/images/gallery/1.jpg', 'alt' => 'Photo 1'],
        ['src' => '/images/gallery/2.jpg', 'alt' => 'Photo 2'],
    ]"
    previous-label="Previous image"
    next-label="Next image"
/>

الخصائص

كل خاصية مع قيمتها الافتراضية. مرّر أيًّا منها كسمة، واستخدم : لربط قيمة PHP.

@props([
    'heading' => 'Image Gallery',
    'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
    'images' => [
        ['src' => null, 'alt' => 'Placeholder image 1'],
        ['src' => null, 'alt' => 'Placeholder image 2'],
    ],
    'previousLabel' => 'Previous slide',
    'nextLabel' => 'Next slide',
    'dotLabel' => 'Go to slide',
])