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

المعرض

gallery-13

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

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

التثبيت

php artisan ui:add-block gallery-13

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

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

الاستخدام

Every piece of content is a prop. An image is ['src' => ..., 'alt' => ...]; leave src empty to show a placeholder. Two square images per view with the next one peeking past the container edge (one per view on mobile). Arrows sit half outside the edges from md up, dots below.

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