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

المعرض

gallery-11

شريط صور بنسبة 16:9 داخل الحاوية تظهر فيه الشريحة التالية جزئيًا عند الحافة، مع أسهم نصفها خارج الحافتين ونقاط في الأسفل.

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

التثبيت

php artisan ui:add-block gallery-11

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

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

الاستخدام

Every piece of content is a prop. An image is ['src' => ..., 'alt' => ...]; leave src empty to show a placeholder. A contained 16:9 slider, one image per view with the next one peeking past the container edge. Arrows sit half outside the edges from md up, dots below.

<x-ui.blocks.gallery-11
    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'],
    ],
    'previousLabel' => 'Previous slide',
    'nextLabel' => 'Next slide',
    'dotLabel' => 'Go to slide',
])