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

المعرض

gallery-16

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

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

التثبيت

php artisan ui:add-block gallery-16

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

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

الاستخدام

Every piece of content is a prop. An image is ['src' => ..., 'alt' => ...]; leave src empty to show a placeholder. Split layout: heading and description on the start side, two square slides per view on the end side running off the page edge (one on mobile), the arrow pair and the dots below the slider.

<x-ui.blocks.gallery-16
    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'],
        ['src' => '/images/gallery/3.jpg', 'alt' => 'Photo 3'],
    ]"
    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'],
        ['src' => null, 'alt' => 'Placeholder image 3'],
        ['src' => null, 'alt' => 'Placeholder image 4'],
        ['src' => null, 'alt' => 'Placeholder image 5'],
        ['src' => null, 'alt' => 'Placeholder image 6'],
        ['src' => null, 'alt' => 'Placeholder image 7'],
    ],
    'previousLabel' => 'Previous slide',
    'nextLabel' => 'Next slide',
    'dotLabel' => 'Go to slide',
])